#include <corecrt_internal.h>
#include <corecrt_internal_mbstring.h>
#include <locale.h>
#include <stddef.h>
#include <string.h>
Go to the source code of this file.
◆ _mbscspn_l()
Definition at line 57 of file mbscspn.cpp.
71{
74
75 if (_loc_update.GetLocaleT()->mbcinfo->ismbcodepage == 0)
76#ifndef _RETURN_PTR
78#else
79 return (
const unsigned char *)
strpbrk((
const char *)
string, (
const char *)
charset);
80#endif
81
82
83#ifndef _RETURN_PTR
86#else
89#endif
90
91
92 for (
q = (
unsigned char *)
string; *
q ;
q++) {
93
94
96
98 if (((*
p == *
q) && (
p[1] ==
q[1])) ||
p[1] ==
'\0')
99 break;
101 }
102 else
104 break;
105 }
106
108 break;
109
112 break;
113 }
114
115#ifndef _RETURN_PTR
116 return((
size_t) (
q -
string));
117#else
118 return((*
q) ?
q :
nullptr);
119#endif
120
121}
char * strpbrk(const char *String, const char *Delimiters)
#define _ismbblead_l(_c, p)
#define _VALIDATE_RETURN(expr, errorcode, retexpr)
GLdouble GLdouble GLdouble GLdouble q
const unsigned char * charset
_Check_return_ _CRTIMP size_t __cdecl strcspn(_In_z_ const char *_Str, _In_z_ const char *_Control)
◆ size_t()
◆ charset
Initial value:{
size_t __cdecl _mbscspn_l(const unsigned char *string, const unsigned char *charset, _locale_t plocinfo)
Definition at line 127 of file mbscspn.cpp.
Referenced by _mbscspn_l().