ReactOS  0.4.14-dev-49-gfb4591c
mbslwr.c File Reference
#include <precomp.h>
#include <mbstring.h>
#include <ctype.h>
Include dependency graph for mbslwr.c:

Go to the source code of this file.

Functions

unsigned int _mbbtolower (unsigned int c)
 
unsigned int _mbctolower (unsigned int c)
 
unsigned char_mbslwr (unsigned char *x)
 

Function Documentation

◆ _mbbtolower()

unsigned int _mbbtolower ( unsigned int  c)

Definition at line 14 of file mbslwr.c.

15 {
16  if (!_ismbblead(c) )
17  return tolower(c);
18  return c;
19 }
const GLubyte * c
Definition: glext.h:8905
int __cdecl _ismbblead(unsigned int)
Definition: ismblead.c:20
#define c
Definition: ke_i.h:80
int tolower(int c)
Definition: utclib.c:902

◆ _mbctolower()

unsigned int _mbctolower ( unsigned int  c)

Definition at line 24 of file mbslwr.c.

25 {
26  return _ismbcupper (c) ? c + 0x21 : c;
27 }
_Check_return_ _CRTIMP int __cdecl _ismbcupper(_In_ unsigned int _Ch)
const GLubyte * c
Definition: glext.h:8905
#define c
Definition: ke_i.h:80

Referenced by _mbslwr().

◆ _mbslwr()

unsigned char* _mbslwr ( unsigned char x)

Definition at line 32 of file mbslwr.c.

33 {
34  unsigned char *y=x;
35 
36  if (x == NULL)
37  {
38  return NULL;
39  }
40 
41  while (*y)
42  {
43  if (!_ismbblead(*y))
44  {
45  *y = tolower(*y);
46  y++;
47  }
48  else
49  {
50  *y = _mbctolower(*(unsigned short *)y);
51  y++;
52  }
53  }
54  return x;
55 }
unsigned int _mbctolower(unsigned int c)
Definition: mbslwr.c:24
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
smooth NULL
Definition: ftsmooth.c:416
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
int __cdecl _ismbblead(unsigned int)
Definition: ismblead.c:20
int tolower(int c)
Definition: utclib.c:902