update for HEAD-2003021201
[reactos.git] / lib / msvcrt / mbstring / mbslwr.c
index 0b405fd..67663ea 100644 (file)
@@ -13,33 +13,27 @@ unsigned int _mbbtolower(unsigned int c)
 
 unsigned int _mbctolower(unsigned int c)
 {
-  if ((c & 0xFF00) != 0)
-    {
-      // true multibyte case conversion needed
-      if (_ismbclower(c))
-       return c + CASE_DIFF;
-    }
-  else
+    if ((c & 0xFF00) != 0) {
+        // true multibyte case conversion needed
+        if (_ismbclower(c))
+            return c + CASE_DIFF;
+    } else {
      return _mbbtolower(c);
-
-  return 0;
+    }
+    return 0;
 }
 
 unsigned char * _mbslwr(unsigned char *x)
 {
-  unsigned char  *y=x;
+    unsigned char  *y=x;
 
-  while (*y)
-    {
-      if (!_ismbblead(*y))
-       {
-         *y = tolower(*y);
-       }
-      else
-       {
-         *y=_mbctolower(*(unsigned short *)y);
-         y++;
-       }
+    while (*y) {
+        if (!_ismbblead(*y)) {
+            *y = tolower(*y);
+           } else {
+               *y=_mbctolower(*(unsigned short *)y);
+               y++;
+        }
     }
-  return x;
+    return x;
 }