Commit e3f9f7b3 authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Copy some missing string functions from msvcrt.

parent 17be9355
......@@ -1247,10 +1247,10 @@
@ cdecl -private -arch=i386 _CIsqrt() NTDLL__CIsqrt
@ stdcall -arch=x86_64 __C_specific_handler(ptr long ptr ptr)
@ stdcall -private -arch=x86_64 -norelay __chkstk()
# @ stub __isascii
# @ stub __iscsym
# @ stub __iscsymf
# @ stub __toascii
@ cdecl -private __isascii(long) NTDLL___isascii
@ cdecl -private __iscsym(long) NTDLL___iscsym
@ cdecl -private __iscsymf(long) NTDLL___iscsymf
@ cdecl -private __toascii(long) NTDLL___toascii
@ stdcall -private -arch=i386 -ret64 _alldiv(int64 int64)
# @ stub _alldvrm
@ stdcall -private -arch=i386 -ret64 _allmul(int64 int64)
......@@ -1284,8 +1284,8 @@
@ cdecl -private _strlwr(str)
@ cdecl -private _strnicmp(str str long)
@ cdecl -private _strupr(str)
# @ stub -private _tolower
# @ stub -private _toupper
@ cdecl -private _tolower(long) NTDLL__tolower
@ cdecl -private _toupper(long) NTDLL__toupper
@ cdecl -private _ui64toa(int64 ptr long)
@ cdecl -private _ui64tow(int64 ptr long)
@ cdecl -private _ultoa(long ptr long)
......
......@@ -415,6 +415,60 @@ int __cdecl NTDLL_isxdigit( int c )
/*********************************************************************
* __isascii (NTDLL.@)
*/
int CDECL NTDLL___isascii(int c)
{
return (unsigned)c < 0x80;
}
/*********************************************************************
* __toascii (NTDLL.@)
*/
int CDECL NTDLL___toascii(int c)
{
return (unsigned)c & 0x7f;
}
/*********************************************************************
* __iscsym (NTDLL.@)
*/
int CDECL NTDLL___iscsym(int c)
{
return (c < 127 && (isalnum(c) || c == '_'));
}
/*********************************************************************
* __iscsymf (NTDLL.@)
*/
int CDECL NTDLL___iscsymf(int c)
{
return (c < 127 && (isalpha(c) || c == '_'));
}
/*********************************************************************
* _toupper (NTDLL.@)
*/
int CDECL NTDLL__toupper(int c)
{
return c - 0x20; /* sic */
}
/*********************************************************************
* _tolower (NTDLL.@)
*/
int CDECL NTDLL__tolower(int c)
{
return c + 0x20; /* sic */
}
/*********************************************************************
* strtol (NTDLL.@)
*/
LONG __cdecl NTDLL_strtol( const char *nptr, char **endptr, int base )
......
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