Commit dbb01a74 authored by Bartosz Kosiorek's avatar Bartosz Kosiorek Committed by Alexandre Julliard

msvcrt: Add _mbctokata_l implementation.

parent 6f9695c4
...@@ -1086,7 +1086,7 @@ ...@@ -1086,7 +1086,7 @@
@ cdecl _mbctohira(long) @ cdecl _mbctohira(long)
@ cdecl _mbctohira_l(long ptr) @ cdecl _mbctohira_l(long ptr)
@ cdecl _mbctokata(long) @ cdecl _mbctokata(long)
@ stub _mbctokata_l @ cdecl _mbctokata_l(long ptr)
@ cdecl _mbctolower(long) @ cdecl _mbctolower(long)
@ cdecl _mbctolower_l(long ptr) @ cdecl _mbctolower_l(long ptr)
@ cdecl _mbctombb(long) @ cdecl _mbctombb(long)
......
...@@ -1443,7 +1443,7 @@ ...@@ -1443,7 +1443,7 @@
@ cdecl _mbctohira(long) @ cdecl _mbctohira(long)
@ cdecl _mbctohira_l(long ptr) @ cdecl _mbctohira_l(long ptr)
@ cdecl _mbctokata(long) @ cdecl _mbctokata(long)
@ stub _mbctokata_l @ cdecl _mbctokata_l(long ptr)
@ cdecl _mbctolower(long) @ cdecl _mbctolower(long)
@ cdecl _mbctolower_l(long ptr) @ cdecl _mbctolower_l(long ptr)
@ cdecl _mbctombb(long) @ cdecl _mbctombb(long)
......
...@@ -1454,7 +1454,7 @@ ...@@ -1454,7 +1454,7 @@
@ cdecl _mbctohira(long) @ cdecl _mbctohira(long)
@ cdecl _mbctohira_l(long ptr) @ cdecl _mbctohira_l(long ptr)
@ cdecl _mbctokata(long) @ cdecl _mbctokata(long)
@ stub _mbctokata_l @ cdecl _mbctokata_l(long ptr)
@ cdecl _mbctolower(long) @ cdecl _mbctolower(long)
@ cdecl _mbctolower_l(long ptr) @ cdecl _mbctolower_l(long ptr)
@ cdecl _mbctombb(long) @ cdecl _mbctombb(long)
......
...@@ -758,7 +758,7 @@ ...@@ -758,7 +758,7 @@
@ cdecl _mbctohira(long) @ cdecl _mbctohira(long)
@ cdecl _mbctohira_l(long ptr) @ cdecl _mbctohira_l(long ptr)
@ cdecl _mbctokata(long) @ cdecl _mbctokata(long)
@ stub _mbctokata_l @ cdecl _mbctokata_l(long ptr)
@ cdecl _mbctolower(long) @ cdecl _mbctolower(long)
@ cdecl _mbctolower_l(long ptr) @ cdecl _mbctolower_l(long ptr)
@ cdecl _mbctombb(long) @ cdecl _mbctombb(long)
......
...@@ -736,7 +736,7 @@ ...@@ -736,7 +736,7 @@
@ cdecl _mbctohira(long) @ cdecl _mbctohira(long)
@ cdecl _mbctohira_l(long ptr) @ cdecl _mbctohira_l(long ptr)
@ cdecl _mbctokata(long) @ cdecl _mbctokata(long)
@ stub _mbctokata_l @ cdecl _mbctokata_l(long ptr)
@ cdecl _mbctolower(long) @ cdecl _mbctolower(long)
@ cdecl _mbctolower_l(long ptr) @ cdecl _mbctolower_l(long ptr)
@ cdecl _mbctombb(long) @ cdecl _mbctombb(long)
......
...@@ -2970,17 +2970,26 @@ unsigned int CDECL _mbctohira(unsigned int c) ...@@ -2970,17 +2970,26 @@ unsigned int CDECL _mbctohira(unsigned int c)
} }
/********************************************************************* /*********************************************************************
* _mbctokata (MSVCRT.@) * _mbctokata_l (MSVCRT.@)
* *
* Converts a sjis hiragana character to katakana. * 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 - 0x829f) + 0x8340 + (c >= 0x82de ? 1 : 0);
return c; return c;
} }
/*********************************************************************
* _mbctokata (MSVCRT.@)
*/
unsigned int CDECL _mbctokata(unsigned int c)
{
return _mbctokata_l(c, NULL);
}
/********************************************************************* /*********************************************************************
* _ismbcl0_l (MSVCRT.@) * _ismbcl0_l (MSVCRT.@)
*/ */
......
...@@ -703,7 +703,7 @@ ...@@ -703,7 +703,7 @@
@ cdecl _mbctohira(long) @ cdecl _mbctohira(long)
@ cdecl _mbctohira_l(long ptr) @ cdecl _mbctohira_l(long ptr)
@ cdecl _mbctokata(long) @ cdecl _mbctokata(long)
# stub _mbctokata_l(long ptr) @ cdecl _mbctokata_l(long ptr)
@ cdecl _mbctolower(long) @ cdecl _mbctolower(long)
@ cdecl _mbctolower_l(long ptr) @ cdecl _mbctolower_l(long ptr)
@ cdecl _mbctombb(long) @ cdecl _mbctombb(long)
......
...@@ -601,7 +601,7 @@ ...@@ -601,7 +601,7 @@
@ cdecl _mbctohira(long) @ cdecl _mbctohira(long)
@ cdecl _mbctohira_l(long ptr) @ cdecl _mbctohira_l(long ptr)
@ cdecl _mbctokata(long) @ cdecl _mbctokata(long)
@ stub _mbctokata_l @ cdecl _mbctokata_l(long ptr)
@ cdecl _mbctolower(long) @ cdecl _mbctolower(long)
@ cdecl _mbctolower_l(long ptr) @ cdecl _mbctolower_l(long ptr)
@ cdecl _mbctombb(long) @ cdecl _mbctombb(long)
...@@ -1171,7 +1171,7 @@ ...@@ -1171,7 +1171,7 @@
@ cdecl _o__mbctohira(long) _mbctohira @ cdecl _o__mbctohira(long) _mbctohira
@ cdecl _o__mbctohira_l(long ptr) _mbctohira_l @ cdecl _o__mbctohira_l(long ptr) _mbctohira_l
@ cdecl _o__mbctokata(long) _mbctokata @ 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(long) _mbctolower
@ cdecl _o__mbctolower_l(long ptr) _mbctolower_l @ cdecl _o__mbctolower_l(long ptr) _mbctolower_l
@ cdecl _o__mbctombb(long) _mbctombb @ cdecl _o__mbctombb(long) _mbctombb
......
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