ReactOS
0.4.12-dev-714-gfaac916
|
Go to the source code of this file.
Macros | |
#define | NDEBUG |
Functions | |||||||||||||||||
GetNlsSectionName | |||||||||||||||||
Construct a name of NLS section.
@implemented | |||||||||||||||||
BOOL WINAPI | GetNlsSectionName (UINT CodePage, UINT Base, ULONG Unknown, LPSTR BaseName, LPSTR Result, ULONG ResultSize) | ||||||||||||||||
GetCPFileNameFromRegistry | |||||||||||||||||
Get file name of code page definition file.
@implemented | |||||||||||||||||
BOOL WINAPI | GetCPFileNameFromRegistry (UINT CodePage, LPWSTR FileName, ULONG FileNameSize) | ||||||||||||||||
NlsInit | |||||||||||||||||
Internal NLS related stuff initialization. | |||||||||||||||||
BOOL FASTCALL | NlsInit (VOID) | ||||||||||||||||
NlsUninit | |||||||||||||||||
Internal NLS related stuff uninitialization. | |||||||||||||||||
VOID FASTCALL | NlsUninit (VOID) | ||||||||||||||||
IntGetLoadedCodePageEntry | |||||||||||||||||
Internal function to get structure containing a code page information of code page that is already loaded.
| |||||||||||||||||
PCODEPAGE_ENTRY FASTCALL | IntGetLoadedCodePageEntry (UINT CodePage) | ||||||||||||||||
IntGetCodePageEntry | |||||||||||||||||
Internal function to get structure containing a code page information.
| |||||||||||||||||
PCODEPAGE_ENTRY FASTCALL | IntGetCodePageEntry (UINT CodePage) | ||||||||||||||||
IntMultiByteToWideCharUTF8 | |||||||||||||||||
Internal version of MultiByteToWideChar for UTF8.
| |||||||||||||||||
static INT WINAPI | IntMultiByteToWideCharUTF8 (DWORD Flags, LPCSTR MultiByteString, INT MultiByteCount, LPWSTR WideCharString, INT WideCharCount) | ||||||||||||||||
IntMultiByteToWideCharCP | |||||||||||||||||
Internal version of MultiByteToWideChar for code page tables.
| |||||||||||||||||
static INT WINAPI | IntMultiByteToWideCharCP (UINT CodePage, DWORD Flags, LPCSTR MultiByteString, INT MultiByteCount, LPWSTR WideCharString, INT WideCharCount) | ||||||||||||||||
IntMultiByteToWideCharSYMBOL | |||||||||||||||||
Internal version of MultiByteToWideChar for SYMBOL.
| |||||||||||||||||
static INT WINAPI | IntMultiByteToWideCharSYMBOL (DWORD Flags, LPCSTR MultiByteString, INT MultiByteCount, LPWSTR WideCharString, INT WideCharCount) | ||||||||||||||||
IntWideCharToMultiByteSYMBOL | |||||||||||||||||
Internal version of WideCharToMultiByte for SYMBOL.
| |||||||||||||||||
static INT WINAPI | IntWideCharToMultiByteSYMBOL (DWORD Flags, LPCWSTR WideCharString, INT WideCharCount, LPSTR MultiByteString, INT MultiByteCount) | ||||||||||||||||
IntWideCharToMultiByteUTF8 | |||||||||||||||||
Internal version of WideCharToMultiByte for UTF8.
| |||||||||||||||||
static INT WINAPI | IntWideCharToMultiByteUTF8 (UINT CodePage, DWORD Flags, LPCWSTR WideCharString, INT WideCharCount, LPSTR MultiByteString, INT MultiByteCount, LPCSTR DefaultChar, LPBOOL UsedDefaultChar) | ||||||||||||||||
IsValidSBCSMapping | |||||||||||||||||
Checks if ch (single-byte character) is a valid mapping for wch
| |||||||||||||||||
static BOOL | IntIsValidSBCSMapping (PCPTABLEINFO CodePageTable, DWORD Flags, WCHAR wch, UCHAR ch) | ||||||||||||||||
IsValidDBCSMapping | |||||||||||||||||
Checks if ch (double-byte character) is a valid mapping for wch
| |||||||||||||||||
static BOOL | IntIsValidDBCSMapping (PCPTABLEINFO CodePageTable, DWORD Flags, WCHAR wch, USHORT ch) | ||||||||||||||||
IntWideCharToMultiByteCP | |||||||||||||||||
Internal version of WideCharToMultiByte for code page tables.
| |||||||||||||||||
static INT WINAPI | IntWideCharToMultiByteCP (UINT CodePage, DWORD Flags, LPCWSTR WideCharString, INT WideCharCount, LPSTR MultiByteString, INT MultiByteCount, LPCSTR DefaultChar, LPBOOL UsedDefaultChar) | ||||||||||||||||
IntIsLeadByte | |||||||||||||||||
Internal function to detect if byte is lead byte in specific character table. | |||||||||||||||||
static BOOL WINAPI | IntIsLeadByte (PCPTABLEINFO TableInfo, BYTE Byte) | ||||||||||||||||
IsValidCodePage | |||||||||||||||||
Detect if specified code page is valid and present in the system.
| |||||||||||||||||
BOOL WINAPI | IsValidCodePage (UINT CodePage) | ||||||||||||||||
static BOOL | utf7_write_w (WCHAR *dst, int dstlen, int *index, WCHAR character) | ||||||||||||||||
static INT | Utf7ToWideChar (const char *src, int srclen, WCHAR *dst, int dstlen) | ||||||||||||||||
MultiByteToWideChar | |||||||||||||||||
Convert a multi-byte string to wide-charater equivalent.
@implemented | |||||||||||||||||
INT WINAPI | MultiByteToWideChar (UINT CodePage, DWORD Flags, LPCSTR MultiByteString, INT MultiByteCount, LPWSTR WideCharString, INT WideCharCount) | ||||||||||||||||
static BOOL | utf7_can_directly_encode (WCHAR codepoint) | ||||||||||||||||
static BOOL | utf7_write_c (char *dst, int dstlen, int *index, char character) | ||||||||||||||||
static INT | WideCharToUtf7 (const WCHAR *src, int srclen, char *dst, int dstlen) | ||||||||||||||||
UINT | GetLocalisedText (IN UINT uID, IN LPWSTR lpszDest, IN UINT cchDest) | ||||||||||||||||
BOOL WINAPI | GetCPInfo (UINT CodePage, LPCPINFO CodePageInfo) | ||||||||||||||||
BOOL WINAPI | GetCPInfoExW (UINT CodePage, DWORD dwFlags, LPCPINFOEXW lpCPInfoEx) | ||||||||||||||||
BOOL WINAPI | GetCPInfoExA (UINT CodePage, DWORD dwFlags, LPCPINFOEXA lpCPInfoEx) | ||||||||||||||||
WideCharToMultiByte | |||||||||||||||||
Convert a wide-charater string to closest multi-byte equivalent.
@implemented | |||||||||||||||||
INT WINAPI | WideCharToMultiByte (UINT CodePage, DWORD Flags, LPCWSTR WideCharString, INT WideCharCount, LPSTR MultiByteString, INT MultiByteCount, LPCSTR DefaultChar, LPBOOL UsedDefaultChar) | ||||||||||||||||
GetACP | |||||||||||||||||
Get active ANSI code page number. @implemented | |||||||||||||||||
UINT WINAPI | GetACP (VOID) | ||||||||||||||||
GetOEMCP | |||||||||||||||||
Get active OEM code page number. @implemented | |||||||||||||||||
UINT WINAPI | GetOEMCP (VOID) | ||||||||||||||||
IsDBCSLeadByteEx | |||||||||||||||||
Determine if passed byte is lead byte in current ANSI code page. @implemented | |||||||||||||||||
BOOL WINAPI | IsDBCSLeadByteEx (UINT CodePage, BYTE TestByte) | ||||||||||||||||
BOOL WINAPI | IsDBCSLeadByte (BYTE TestByte) | ||||||||||||||||
NTSTATUS WINAPI | CreateNlsSecurityDescriptor (PSECURITY_DESCRIPTOR SecurityDescriptor, ULONG Size, ULONG AccessMask) | ||||||||||||||||
BOOL WINAPI | IsValidUILanguage (LANGID langid) | ||||||||||||||||
VOID WINAPI | NlsConvertIntegerToString (ULONG Value, ULONG Base, ULONG strsize, LPWSTR str, ULONG strsize2) | ||||||||||||||||
UINT WINAPI | SetCPGlobal (UINT CodePage) | ||||||||||||||||
BOOL WINAPI | ValidateLCType (int a1, unsigned int a2, int a3, int a4) | ||||||||||||||||
BOOL WINAPI | NlsResetProcessLocale (VOID) | ||||||||||||||||
VOID WINAPI | GetDefaultSortkeySize (LPVOID lpUnknown) | ||||||||||||||||
VOID WINAPI | GetLinguistLangSize (LPVOID lpUnknown) | ||||||||||||||||
BOOL WINAPI | ValidateLocale (IN ULONG LocaleId) | ||||||||||||||||
ULONG WINAPI | NlsGetCacheUpdateCount (VOID) | ||||||||||||||||
BOOL WINAPI | IsNLSDefinedString (IN NLS_FUNCTION Function, IN DWORD dwFlags, IN LPNLSVERSIONINFO lpVersionInformation, IN LPCWSTR lpString, IN INT cchStr) | ||||||||||||||||
BOOL WINAPI | GetNLSVersion (IN NLS_FUNCTION Function, IN LCID Locale, IN OUT LPNLSVERSIONINFO lpVersionInformation) | ||||||||||||||||
BOOL WINAPI | GetNLSVersionEx (IN NLS_FUNCTION function, IN LPCWSTR lpLocaleName, IN OUT LPNLSVERSIONINFOEX lpVersionInformation) | ||||||||||||||||
Variables | |
static const char | UTF8Length [128] |
static const unsigned char | UTF8Mask [6] = {0x7f, 0x1f, 0x0f, 0x07, 0x03, 0x01} |
static LIST_ENTRY | CodePageListHead |
static CODEPAGE_ENTRY | AnsiCodePage |
static CODEPAGE_ENTRY | OemCodePage |
static RTL_CRITICAL_SECTION | CodePageListLock |
NTSTATUS WINAPI CreateNlsSecurityDescriptor | ( | PSECURITY_DESCRIPTOR | SecurityDescriptor, |
ULONG | Size, | ||
ULONG | AccessMask | ||
) |
Definition at line 2078 of file nls.c.
Referenced by _setmbcp_l(), EngGetCurrentCodePage(), get_codeset(), GetStringTypeA(), GetSupportedCP(), Global_Chr(), IPropertyStorage_fnReadMultiple(), IPropertyStorage_fnWriteMultiple(), ME_StreamOutRTFHeader(), MFDRV_ExtTextOut(), MimeInternat_ConvertString(), MimeInternat_GetDefaultCharset(), name_to_codepage(), PropertyStorage_ConstructEmpty(), PropertyStorage_ReadFromStream(), test_bitmap_font_metrics(), test_defaultcharset(), test_EnumFontFamiliesEx_default_charset(), test_file_monikers(), test_FoldStringA(), test_GdiGetCodePage(), test_GetFullPathNameA(), test_mbcp(), test_nonexistent_font(), test_text_metrics(), and test_threadcp().
Definition at line 1301 of file nls.c.
Referenced by IntGetCodePageEntry(), and IsValidCodePage().
Definition at line 1813 of file nls.c.
Referenced by _Locale_codecvt_create(), _Locale_ctype_create(), _setmbcp_l(), GetCPInfoExW(), GetKerningPairsA(), Global_Chr(), make_csconv(), ME_GetTextLengthEx(), MSVCRT__create_locale(), test_GetCPInfo(), and test_mbcp().
BOOL WINAPI GetCPInfoExA | ( | UINT | CodePage, |
DWORD | dwFlags, | ||
LPCPINFOEXA | lpCPInfoEx | ||
) |
Definition at line 1923 of file nls.c.
Referenced by init_procs(), and test_threadcp().
BOOL WINAPI GetCPInfoExW | ( | UINT | CodePage, |
DWORD | dwFlags, | ||
LPCPINFOEXW | lpCPInfoEx | ||
) |
Definition at line 1867 of file nls.c.
Referenced by AddCodePage(), GetCPInfoExA(), GetSupportedCP(), and ME_StreamOutRTFHeader().
Definition at line 1726 of file nls.c.
Referenced by GetCPInfoExW(), and NLS_GetGeoFriendlyName().
BOOL WINAPI GetNlsSectionName | ( | UINT | CodePage, |
UINT | Base, | ||
ULONG | Unknown, | ||
LPSTR | BaseName, | ||
LPSTR | Result, | ||
ULONG | ResultSize | ||
) |
Definition at line 1256 of file nls.c.
Referenced by IntGetCodePageEntry().
BOOL WINAPI GetNLSVersion | ( | IN NLS_FUNCTION | Function, |
IN LCID | Locale, | ||
IN OUT LPNLSVERSIONINFO | lpVersionInformation | ||
) |
BOOL WINAPI GetNLSVersionEx | ( | IN NLS_FUNCTION | function, |
IN LPCWSTR | lpLocaleName, | ||
IN OUT LPNLSVERSIONINFOEX | lpVersionInformation | ||
) |
Definition at line 2093 of file nls.c.
Referenced by _setmbcp_l(), ConCfgInitDefaultSettings(), ConSrvInitConsole(), EngGetCurrentCodePage(), GetKBCodePage(), GetSupportedCP(), ME_StreamOutRTFHeader(), MFDRV_ExtTextOut(), and SetUpConsoleInfo().
PCODEPAGE_ENTRY FASTCALL IntGetCodePageEntry | ( | UINT | CodePage | ) |
Definition at line 191 of file nls.c.
Referenced by GetCPInfo(), GetCPInfoExW(), IntMultiByteToWideCharCP(), IntWideCharToMultiByteCP(), and IsDBCSLeadByteEx().
PCODEPAGE_ENTRY FASTCALL IntGetLoadedCodePageEntry | ( | UINT | CodePage | ) |
Definition at line 155 of file nls.c.
Referenced by IntGetCodePageEntry(), and IsValidCodePage().
|
static |
Definition at line 1209 of file nls.c.
Referenced by IsDBCSLeadByte(), and IsDBCSLeadByteEx().
|
inlinestatic |
Definition at line 898 of file nls.c.
Referenced by IntWideCharToMultiByteCP().
|
inlinestatic |
Definition at line 875 of file nls.c.
Referenced by IntWideCharToMultiByteCP().
|
static |
Definition at line 430 of file nls.c.
Referenced by MultiByteToWideChar().
|
static |
Definition at line 629 of file nls.c.
Referenced by MultiByteToWideChar().
|
static |
Definition at line 361 of file nls.c.
Referenced by MultiByteToWideChar().
|
static |
Definition at line 932 of file nls.c.
Referenced by WideCharToMultiByte().
|
static |
Definition at line 684 of file nls.c.
Referenced by WideCharToMultiByte().
|
static |
Definition at line 746 of file nls.c.
Referenced by WideCharToMultiByte().
Definition at line 2130 of file nls.c.
Referenced by CharNextA(), COMCTL32_ChrCmpHelperA(), CopyCompAttrIMEtoClient(), IsShortName_U(), map_wparam_AtoW(), PathGetDriveNumberA(), PathIsLFNFileSpecA(), PathIsRelativeA(), PathMakePrettyA(), PathSkipRootA(), RealDefWindowProcA(), server_end_to_end_callback(), SHLWAPI_ChrCmpHelperA(), SHLWAPI_StrRChrHelperA(), SHTruncateString(), StrRChrA(), StrRChrIA(), StrRStrIA(), VkKeyScanA(), and VkKeyScanExA().
Definition at line 2108 of file nls.c.
Referenced by CharNextExA(), dbcs_mblen(), Global_Chr(), MFDRV_ExtTextOut(), START_TEST(), test_bitmap_font_glyph_index(), test_text_metrics(), and test_threadcp().
BOOL WINAPI IsNLSDefinedString | ( | IN NLS_FUNCTION | Function, |
IN DWORD | dwFlags, | ||
IN LPNLSVERSIONINFO | lpVersionInformation, | ||
IN LPCWSTR | lpString, | ||
IN INT | cchStr | ||
) |
Definition at line 1377 of file nls.c.
Referenced by AddCodePage(), ConCfgReadUserSettings(), ConDrvInitConsole(), ConDrvSetConsoleCP(), ConSrvApplyUserSettings(), fnIMultiLanguage3_ValidateCodePageEx(), make_csconv(), match_name_table_language(), MSVCRT_locale_to_LCID(), test_cp855(), test_cp932(), test_EnumCodePages(), test_IsCodePageInstallable(), test_string_conversion(), test_undefined_byte_char(), testScreenBuffer(), and validate_codepage().
INT WINAPI MultiByteToWideChar | ( | UINT | CodePage, |
DWORD | Flags, | ||
LPCSTR | MultiByteString, | ||
INT | MultiByteCount, | ||
LPWSTR | WideCharString, | ||
INT | WideCharCount | ||
) |
Definition at line 1537 of file nls.c.
VOID WINAPI NlsConvertIntegerToString | ( | ULONG | Value, |
ULONG | Base, | ||
ULONG | strsize, | ||
LPWSTR | str, | ||
ULONG | strsize2 | ||
) |
Definition at line 64 of file nls.c.
Referenced by DllMain().
Definition at line 121 of file nls.c.
Referenced by DllMain().
Definition at line 1402 of file nls.c.
Referenced by MultiByteToWideChar().
Definition at line 2175 of file nls.c.
INT WINAPI WideCharToMultiByte | ( | UINT | CodePage, |
DWORD | Flags, | ||
LPCWSTR | WideCharString, | ||
INT | WideCharCount, | ||
LPSTR | MultiByteString, | ||
INT | MultiByteCount, | ||
LPCSTR | DefaultChar, | ||
LPBOOL | UsedDefaultChar | ||
) |
Definition at line 1987 of file nls.c.
Referenced by GetCPInfoExA().
Definition at line 1626 of file nls.c.
Referenced by WideCharToMultiByte().
|
static |
Definition at line 41 of file nls.c.
Referenced by EngGetCurrentCodePage(), GetACP(), IntGetCodePageEntry(), IsDBCSLeadByte(), NlsInit(), and RtlGetDefaultCodePage().
|
static |
Definition at line 40 of file nls.c.
Referenced by IntGetCodePageEntry(), IntGetLoadedCodePageEntry(), NlsInit(), and NlsUninit().
|
static |
Definition at line 43 of file nls.c.
Referenced by IntGetCodePageEntry(), IntGetLoadedCodePageEntry(), NlsInit(), and NlsUninit().
|
static |
Definition at line 42 of file nls.c.
Referenced by CreateStockFonts(), EngGetCurrentCodePage(), GetOEMCP(), IntGetCodePageEntry(), NlsInit(), and RtlGetDefaultCodePage().
Definition at line 24 of file nls.c.
Referenced by IntMultiByteToWideCharUTF8().
Definition at line 37 of file nls.c.
Referenced by IntMultiByteToWideCharUTF8().