ReactOS 0.4.16-dev-937-g7afcd2a
mbslen.cpp File Reference
#include <corecrt_internal.h>
#include <corecrt_internal_mbstring.h>
#include <locale.h>
#include <string.h>
Include dependency graph for mbslen.cpp:

Go to the source code of this file.

Functions

size_t __cdecl _mbslen_l (const unsigned char *s, _locale_t plocinfo)
 
 size_t (__cdecl _mbslen)(const unsigned char *s)
 

Function Documentation

◆ _mbslen_l()

size_t __cdecl _mbslen_l ( const unsigned char s,
_locale_t  plocinfo 
)

Definition at line 35 of file mbslen.cpp.

39{
40 int n;
41 _LocaleUpdate _loc_update(plocinfo);
42
43 if (_loc_update.GetLocaleT()->mbcinfo->ismbcodepage == 0)
44 return strlen((const char *)s);
45
46 for (n = 0; *s; n++, s++) {
47 if ( _ismbblead_l(*s, _loc_update.GetLocaleT()) ) {
48 if (*++s == '\0')
49 break;
50 }
51 }
52
53 return(n);
54}
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
#define _ismbblead_l(_c, p)
GLdouble s
Definition: gl.h:2039
GLdouble n
Definition: glext.h:7729
_locale_t plocinfo
Definition: ismbbyte.cpp:75

Referenced by size_t().

◆ size_t()

size_t ( __cdecl  _mbslen) const

Definition at line 56 of file mbslen.cpp.

59{
60 return _mbslen_l(s, nullptr);
61}
size_t __cdecl _mbslen_l(const unsigned char *s, _locale_t plocinfo)
Definition: mbslen.cpp:35