msvcrt: Add _mbctokata_l implementation.

This commit is contained in:
Bartosz Kosiorek 2022-10-27 21:17:01 +02:00 committed by Alexandre Julliard
parent 6f9695c459
commit dbb01a74e0
8 changed files with 20 additions and 11 deletions

View file

@ -1086,7 +1086,7 @@
@ cdecl _mbctohira(long)
@ cdecl _mbctohira_l(long ptr)
@ cdecl _mbctokata(long)
@ stub _mbctokata_l
@ cdecl _mbctokata_l(long ptr)
@ cdecl _mbctolower(long)
@ cdecl _mbctolower_l(long ptr)
@ cdecl _mbctombb(long)

View file

@ -1443,7 +1443,7 @@
@ cdecl _mbctohira(long)
@ cdecl _mbctohira_l(long ptr)
@ cdecl _mbctokata(long)
@ stub _mbctokata_l
@ cdecl _mbctokata_l(long ptr)
@ cdecl _mbctolower(long)
@ cdecl _mbctolower_l(long ptr)
@ cdecl _mbctombb(long)

View file

@ -1454,7 +1454,7 @@
@ cdecl _mbctohira(long)
@ cdecl _mbctohira_l(long ptr)
@ cdecl _mbctokata(long)
@ stub _mbctokata_l
@ cdecl _mbctokata_l(long ptr)
@ cdecl _mbctolower(long)
@ cdecl _mbctolower_l(long ptr)
@ cdecl _mbctombb(long)

View file

@ -758,7 +758,7 @@
@ cdecl _mbctohira(long)
@ cdecl _mbctohira_l(long ptr)
@ cdecl _mbctokata(long)
@ stub _mbctokata_l
@ cdecl _mbctokata_l(long ptr)
@ cdecl _mbctolower(long)
@ cdecl _mbctolower_l(long ptr)
@ cdecl _mbctombb(long)

View file

@ -736,7 +736,7 @@
@ cdecl _mbctohira(long)
@ cdecl _mbctohira_l(long ptr)
@ cdecl _mbctokata(long)
@ stub _mbctokata_l
@ cdecl _mbctokata_l(long ptr)
@ cdecl _mbctolower(long)
@ cdecl _mbctolower_l(long ptr)
@ cdecl _mbctombb(long)

View file

@ -2970,17 +2970,26 @@ unsigned int CDECL _mbctohira(unsigned int c)
}
/*********************************************************************
* _mbctokata (MSVCRT.@)
* _mbctokata_l (MSVCRT.@)
*
* Converts a sjis hiragana character to katakana.
*/
unsigned int CDECL _mbctokata(unsigned int c)
unsigned int CDECL _mbctokata_l(unsigned int c, _locale_t locale)
{
if(_ismbchira(c))
if(_ismbchira_l(c, locale))
return (c - 0x829f) + 0x8340 + (c >= 0x82de ? 1 : 0);
return c;
}
/*********************************************************************
* _mbctokata (MSVCRT.@)
*/
unsigned int CDECL _mbctokata(unsigned int c)
{
return _mbctokata_l(c, NULL);
}
/*********************************************************************
* _ismbcl0_l (MSVCRT.@)
*/

View file

@ -703,7 +703,7 @@
@ cdecl _mbctohira(long)
@ cdecl _mbctohira_l(long ptr)
@ cdecl _mbctokata(long)
# stub _mbctokata_l(long ptr)
@ cdecl _mbctokata_l(long ptr)
@ cdecl _mbctolower(long)
@ cdecl _mbctolower_l(long ptr)
@ cdecl _mbctombb(long)

View file

@ -601,7 +601,7 @@
@ cdecl _mbctohira(long)
@ cdecl _mbctohira_l(long ptr)
@ cdecl _mbctokata(long)
@ stub _mbctokata_l
@ cdecl _mbctokata_l(long ptr)
@ cdecl _mbctolower(long)
@ cdecl _mbctolower_l(long ptr)
@ cdecl _mbctombb(long)
@ -1171,7 +1171,7 @@
@ cdecl _o__mbctohira(long) _mbctohira
@ cdecl _o__mbctohira_l(long ptr) _mbctohira_l
@ cdecl _o__mbctokata(long) _mbctokata
@ stub _o__mbctokata_l
@ cdecl _o__mbctokata_l(long ptr) _mbctokata_l
@ cdecl _o__mbctolower(long) _mbctolower
@ cdecl _o__mbctolower_l(long ptr) _mbctolower_l
@ cdecl _o__mbctombb(long) _mbctombb