Commit 5b425baf authored by Bartosz Kosiorek's avatar Bartosz Kosiorek Committed by Alexandre Julliard

msvcrt: Add _ismbstrail_l implementation.

parent 80c97dc3
...@@ -1009,7 +1009,7 @@ ...@@ -1009,7 +1009,7 @@
@ cdecl _ismbslead(ptr ptr) @ cdecl _ismbslead(ptr ptr)
@ cdecl _ismbslead_l(ptr ptr ptr) @ cdecl _ismbslead_l(ptr ptr ptr)
@ cdecl _ismbstrail(ptr ptr) @ cdecl _ismbstrail(ptr ptr)
@ stub _ismbstrail_l(ptr ptr ptr) @ cdecl _ismbstrail_l(ptr ptr ptr)
@ cdecl _isnan(double) @ cdecl _isnan(double)
@ cdecl -arch=x86_64 _isnanf(float) @ cdecl -arch=x86_64 _isnanf(float)
@ cdecl _isprint_l(long ptr) @ cdecl _isprint_l(long ptr)
......
...@@ -1355,7 +1355,7 @@ ...@@ -1355,7 +1355,7 @@
@ cdecl _ismbslead(ptr ptr) @ cdecl _ismbslead(ptr ptr)
@ cdecl _ismbslead_l(ptr ptr ptr) @ cdecl _ismbslead_l(ptr ptr ptr)
@ cdecl _ismbstrail(ptr ptr) @ cdecl _ismbstrail(ptr ptr)
@ stub _ismbstrail_l @ cdecl _ismbstrail_l(ptr ptr ptr)
@ cdecl _isnan(double) @ cdecl _isnan(double)
@ cdecl -arch=x86_64 _isnanf(float) @ cdecl -arch=x86_64 _isnanf(float)
@ cdecl _isprint_l(long ptr) @ cdecl _isprint_l(long ptr)
......
...@@ -1361,7 +1361,7 @@ ...@@ -1361,7 +1361,7 @@
@ cdecl _ismbslead(ptr ptr) @ cdecl _ismbslead(ptr ptr)
@ cdecl _ismbslead_l(ptr ptr ptr) @ cdecl _ismbslead_l(ptr ptr ptr)
@ cdecl _ismbstrail(ptr ptr) @ cdecl _ismbstrail(ptr ptr)
@ stub _ismbstrail_l @ cdecl _ismbstrail_l(ptr ptr ptr)
@ cdecl _isnan(double) @ cdecl _isnan(double)
@ cdecl -arch=x86_64 _isnanf(float) @ cdecl -arch=x86_64 _isnanf(float)
@ cdecl _isprint_l(long ptr) @ cdecl _isprint_l(long ptr)
......
...@@ -681,7 +681,7 @@ ...@@ -681,7 +681,7 @@
@ cdecl _ismbslead(ptr ptr) @ cdecl _ismbslead(ptr ptr)
@ cdecl _ismbslead_l(ptr ptr ptr) @ cdecl _ismbslead_l(ptr ptr ptr)
@ cdecl _ismbstrail(ptr ptr) @ cdecl _ismbstrail(ptr ptr)
@ stub _ismbstrail_l @ cdecl _ismbstrail_l(ptr ptr ptr)
@ cdecl _isnan(double) @ cdecl _isnan(double)
@ cdecl -arch=x86_64 _isnanf(float) @ cdecl -arch=x86_64 _isnanf(float)
@ cdecl _isprint_l(long ptr) @ cdecl _isprint_l(long ptr)
......
...@@ -659,7 +659,7 @@ ...@@ -659,7 +659,7 @@
@ cdecl _ismbslead(ptr ptr) @ cdecl _ismbslead(ptr ptr)
@ cdecl _ismbslead_l(ptr ptr ptr) @ cdecl _ismbslead_l(ptr ptr ptr)
@ cdecl _ismbstrail(ptr ptr) @ cdecl _ismbstrail(ptr ptr)
@ stub _ismbstrail_l @ cdecl _ismbstrail_l(ptr ptr ptr)
@ cdecl _isnan(double) @ cdecl _isnan(double)
@ cdecl -arch=x86_64 _isnanf(float) @ cdecl -arch=x86_64 _isnanf(float)
@ cdecl _isprint_l(long ptr) @ cdecl _isprint_l(long ptr)
......
...@@ -1848,18 +1848,29 @@ int CDECL _ismbslead(const unsigned char* start, const unsigned char* str) ...@@ -1848,18 +1848,29 @@ int CDECL _ismbslead(const unsigned char* start, const unsigned char* str)
} }
/********************************************************************* /*********************************************************************
* _ismbstrail(MSVCRT.@) * _ismbstrail_l(MSVCRT.@)
*/ */
int CDECL _ismbstrail(const unsigned char* start, const unsigned char* str) int CDECL _ismbstrail_l(const unsigned char* start, const unsigned char* str, _locale_t locale)
{ {
if (!MSVCRT_CHECK_PMT(start && str))
return 0;
/* Note: this function doesn't check _ismbbtrail */ /* Note: this function doesn't check _ismbbtrail */
if ((str > start) && _ismbslead(start, str-1)) if ((str > start) && _ismbslead_l(start, str-1, locale))
return -1; return -1;
else else
return 0; return 0;
} }
/********************************************************************* /*********************************************************************
* _ismbstrail(MSVCRT.@)
*/
int CDECL _ismbstrail(const unsigned char* start, const unsigned char* str)
{
return _ismbstrail_l(start, str, NULL);
}
/*********************************************************************
* _mbbtype_l(MSVCRT.@) * _mbbtype_l(MSVCRT.@)
*/ */
int CDECL _mbbtype_l(unsigned char c, int type, _locale_t locale) int CDECL _mbbtype_l(unsigned char c, int type, _locale_t locale)
......
...@@ -630,7 +630,7 @@ ...@@ -630,7 +630,7 @@
@ cdecl _ismbslead(ptr ptr) @ cdecl _ismbslead(ptr ptr)
@ cdecl _ismbslead_l(ptr ptr ptr) @ cdecl _ismbslead_l(ptr ptr ptr)
@ cdecl _ismbstrail(ptr ptr) @ cdecl _ismbstrail(ptr ptr)
# stub _ismbstrail_l(long ptr) @ cdecl _ismbstrail_l(ptr ptr ptr)
@ cdecl _isnan(double) @ cdecl _isnan(double)
@ cdecl -arch=x86_64 _isnanf(float) @ cdecl -arch=x86_64 _isnanf(float)
@ cdecl _isprint_l(long ptr) @ cdecl _isprint_l(long ptr)
......
...@@ -501,7 +501,7 @@ ...@@ -501,7 +501,7 @@
@ cdecl _ismbslead(ptr ptr) @ cdecl _ismbslead(ptr ptr)
@ cdecl _ismbslead_l(ptr ptr ptr) @ cdecl _ismbslead_l(ptr ptr ptr)
@ cdecl _ismbstrail(ptr ptr) @ cdecl _ismbstrail(ptr ptr)
@ stub _ismbstrail_l @ cdecl _ismbstrail_l(ptr ptr ptr)
@ cdecl _isnan(double) @ cdecl _isnan(double)
@ cdecl -arch=x86_64 _isnanf(float) @ cdecl -arch=x86_64 _isnanf(float)
@ cdecl _isprint_l(long ptr) @ cdecl _isprint_l(long ptr)
...@@ -1100,7 +1100,7 @@ ...@@ -1100,7 +1100,7 @@
@ cdecl _o__ismbslead(ptr ptr) _ismbslead @ cdecl _o__ismbslead(ptr ptr) _ismbslead
@ cdecl _o__ismbslead_l(ptr ptr ptr) _ismbslead_l @ cdecl _o__ismbslead_l(ptr ptr ptr) _ismbslead_l
@ cdecl _o__ismbstrail(ptr ptr) _ismbstrail @ cdecl _o__ismbstrail(ptr ptr) _ismbstrail
@ stub _o__ismbstrail_l @ cdecl _o__ismbstrail_l(ptr ptr ptr) _ismbstrail_l
@ cdecl _o__iswctype_l(long long ptr) _iswctype_l @ cdecl _o__iswctype_l(long long ptr) _iswctype_l
@ cdecl _o__itoa(long ptr long) _itoa @ cdecl _o__itoa(long ptr long) _itoa
@ cdecl _o__itoa_s(long ptr long long) _itoa_s @ cdecl _o__itoa_s(long ptr long long) _itoa_s
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment