msvcrt: Add _mbsspnp_l implementation.

This commit is contained in:
Bartosz Kosiorek 2023-11-11 23:32:38 +01:00 committed by Alexandre Julliard
parent c94671324e
commit 65f7d5ec48
8 changed files with 21 additions and 10 deletions

View file

@ -1186,7 +1186,7 @@
@ cdecl _mbsspn(str str)
@ cdecl _mbsspn_l(str str ptr)
@ cdecl _mbsspnp(str str)
@ stub _mbsspnp_l
@ cdecl _mbsspnp_l(str str ptr)
@ cdecl _mbsstr(str str)
@ stub _mbsstr_l
@ cdecl _mbstok(str str)

View file

@ -1543,7 +1543,7 @@
@ cdecl _mbsspn(str str)
@ cdecl _mbsspn_l(str str ptr)
@ cdecl _mbsspnp(str str)
@ stub _mbsspnp_l
@ cdecl _mbsspnp_l(str str ptr)
@ cdecl _mbsstr(str str)
@ stub _mbsstr_l
@ cdecl _mbstok(str str)

View file

@ -1554,7 +1554,7 @@
@ cdecl _mbsspn(str str)
@ cdecl _mbsspn_l(str str ptr)
@ cdecl _mbsspnp(str str)
@ stub _mbsspnp_l
@ cdecl _mbsspnp_l(str str ptr)
@ cdecl _mbsstr(str str)
@ stub _mbsstr_l
@ cdecl _mbstok(str str)

View file

@ -858,7 +858,7 @@
@ cdecl _mbsspn(str str)
@ cdecl _mbsspn_l(str str ptr)
@ cdecl _mbsspnp(str str)
@ stub _mbsspnp_l
@ cdecl _mbsspnp_l(str str ptr)
@ cdecl _mbsstr(str str)
@ stub _mbsstr_l
@ cdecl _mbstok(str str)

View file

@ -836,7 +836,7 @@
@ cdecl _mbsspn(str str)
@ cdecl _mbsspn_l(str str ptr)
@ cdecl _mbsspnp(str str)
@ stub _mbsspnp_l
@ cdecl _mbsspnp_l(str str ptr)
@ cdecl _mbsstr(str str)
@ stub _mbsstr_l
@ cdecl _mbstok(str str)

View file

@ -2828,13 +2828,24 @@ size_t CDECL _mbsspn(const unsigned char* string, const unsigned char* set)
return _mbsspn_l(string, set, NULL);
}
/*********************************************************************
* _mbsspnp_l (MSVCRT.@)
*/
unsigned char* CDECL _mbsspnp_l(const unsigned char* string, const unsigned char* set, _locale_t locale)
{
if (!MSVCRT_CHECK_PMT(string && set))
return 0;
string += _mbsspn_l(string, set, locale);
return *string ? (unsigned char*)string : NULL;
}
/*********************************************************************
* _mbsspnp (MSVCRT.@)
*/
unsigned char* CDECL _mbsspnp(const unsigned char* string, const unsigned char* set)
{
string += _mbsspn( string, set );
return *string ? (unsigned char*)string : NULL;
return _mbsspnp_l(string, set, NULL);
}
/*********************************************************************

View file

@ -807,7 +807,7 @@
@ cdecl _mbsspn(str str)
@ cdecl _mbsspn_l(str str ptr)
@ cdecl _mbsspnp(str str)
# stub _mbsspnp_l(str str ptr)
@ cdecl _mbsspnp_l(str str ptr)
@ cdecl _mbsstr(str str)
# stub _mbsstr_l(str str ptr)
@ cdecl _mbstok(str str)

View file

@ -702,7 +702,7 @@
@ cdecl _mbsspn(str str)
@ cdecl _mbsspn_l(str str ptr)
@ cdecl _mbsspnp(str str)
@ stub _mbsspnp_l
@ cdecl _mbsspnp_l(str str ptr)
@ cdecl _mbsstr(str str)
@ stub _mbsstr_l
@ cdecl _mbstok(str str)
@ -1271,7 +1271,7 @@
@ cdecl _o__mbsspn(str str) _mbsspn
@ cdecl _o__mbsspn_l(str str ptr) _mbsspn_l
@ cdecl _o__mbsspnp(str str) _mbsspnp
@ stub _o__mbsspnp_l
@ cdecl _o__mbsspnp_l(str str ptr) _mbsspnp_l
@ cdecl _o__mbsstr(str str) _mbsstr
@ stub _o__mbsstr_l
@ cdecl _o__mbstok(str str) _mbstok