Implemented msvcrt._mbspbrk.
This commit is contained in:
parent
78a4134e51
commit
0dae258385
|
@ -650,3 +650,23 @@ char *_mbsrev(char *str)
|
|||
return str;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* _mbspbrk (MSVCRT.@)
|
||||
*/
|
||||
const char *_mbspbrk(const char *str, const char *accept)
|
||||
{
|
||||
const char *p;
|
||||
|
||||
while(*str)
|
||||
{
|
||||
for(p = accept; *p; p += (MSVCRT_isleadbyte(*p)?2:1) )
|
||||
{
|
||||
if (*p == *str)
|
||||
if( !MSVCRT_isleadbyte(*p) || ( *(p+1) == *(str+1) ) )
|
||||
return str;
|
||||
}
|
||||
str += (MSVCRT_isleadbyte(*str)?2:1);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -383,7 +383,7 @@ debug_channels (msvcrt)
|
|||
@ stub _mbsnicoll #(str str long)
|
||||
@ cdecl _mbsninc(str long) _mbsninc
|
||||
@ cdecl _mbsnset(str long long) _mbsnset
|
||||
@ stub _mbspbrk #(str str)
|
||||
@ cdecl _mbspbrk(str str) _mbspbrk
|
||||
@ cdecl _mbsrchr(str long) _mbsrchr
|
||||
@ cdecl _mbsrev(str) _mbsrev
|
||||
@ cdecl _mbsset(str long) _mbsset
|
||||
|
|
Loading…
Reference in New Issue