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;
}