ReactOS 0.4.16-dev-199-g898cc56
|
Go to the source code of this file.
Macros | |
#define | NDEBUG |
Functions | |||||||||||||||||
static NTSTATUS | CreateNlsDirectorySecurity (_Out_ PSECURITY_DESCRIPTOR SecurityDescriptor, _In_ SIZE_T DescriptorSize) | ||||||||||||||||
Creates a security descriptor for the NLS object directory. | |||||||||||||||||
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) | ||||||||||||||||
IsDBCSLeadByteEx | |||||||||||||||||
Determine if passed byte is lead byte in current ANSI code page. @implemented | |||||||||||||||||
NTSTATUS WINAPI | CreateNlsSecurityDescriptor (_Out_ PSECURITY_DESCRIPTOR SecurityDescriptor, _In_ SIZE_T DescriptorSize, _In_ ULONG AccessMask) | ||||||||||||||||
Creates a security descriptor for each NLS section. Typically used by BASESRV to give Everyone (World SID) read access to the sections. | |||||||||||||||||
BOOL WINAPI | IsDBCSLeadByteEx (UINT CodePage, BYTE TestByte) | ||||||||||||||||
BOOL WINAPI | IsDBCSLeadByte (BYTE TestByte) | ||||||||||||||||
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) | ||||||||||||||||
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, IN LANGID lang) | ||||||||||||||||
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) | ||||||||||||||||
Variables | |
static const char | UTF8Length [128] |
static const unsigned char | UTF8Mask [6] = {0x7f, 0x1f, 0x0f, 0x07, 0x03, 0x01} |
static const unsigned long | UTF8LBound [] |
static LIST_ENTRY | CodePageListHead |
static CODEPAGE_ENTRY | AnsiCodePage |
static CODEPAGE_ENTRY | OemCodePage |
static RTL_CRITICAL_SECTION | CodePageListLock |
|
static |
Creates a security descriptor for the NLS object directory.
[out] | SecurityDescriptor | |
[in] | DescriptorSize | Same parameters as for CreateNlsSecurityDescriptor(). |
Definition at line 81 of file nls.c.
Referenced by NlsInit().
NTSTATUS WINAPI CreateNlsSecurityDescriptor | ( | _Out_ PSECURITY_DESCRIPTOR | SecurityDescriptor, |
_In_ SIZE_T | DescriptorSize, | ||
_In_ ULONG | AccessMask | ||
) |
Creates a security descriptor for each NLS section. Typically used by BASESRV to give Everyone (World SID) read access to the sections.
[out] | SecurityDescriptor | A pointer to a correctly sized user-allocated buffer, that receives a security descriptor containing one ACL with one World SID. Its size should be at least equal to NLS_SECTION_SECURITY_DESCRIPTOR_SIZE. |
[in] | DescriptorSize | Size (in bytes) of the user-provided SecurityDescriptor buffer. |
[in] | AccessMask | An access mask that grants Everyone an access specific to that mask. |
Definition at line 2393 of file nls.c.
Referenced by CreateNlsDirectorySecurity(), and IntGetCodePageEntry().
Definition at line 1528 of file nls.c.
Referenced by IntGetCodePageEntry(), and IsValidCodePage().
Definition at line 2039 of file nls.c.
Referenced by GetCPInfoExW().
BOOL WINAPI GetCPInfoExA | ( | UINT | CodePage, |
DWORD | dwFlags, | ||
LPCPINFOEXA | lpCPInfoEx | ||
) |
Definition at line 2152 of file nls.c.
BOOL WINAPI GetCPInfoExW | ( | UINT | CodePage, |
DWORD | dwFlags, | ||
LPCPINFOEXW | lpCPInfoEx | ||
) |
Definition at line 2093 of file nls.c.
Referenced by GetCPInfoExA().
Definition at line 1952 of file nls.c.
Referenced by GetCPInfoExW().
BOOL WINAPI GetNlsSectionName | ( | UINT | CodePage, |
UINT | Base, | ||
ULONG | Unknown, | ||
LPSTR | BaseName, | ||
LPSTR | Result, | ||
ULONG | ResultSize | ||
) |
Definition at line 1483 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 | ||
) |
PCODEPAGE_ENTRY FASTCALL IntGetCodePageEntry | ( | UINT | CodePage | ) |
Definition at line 293 of file nls.c.
Referenced by GetCPInfo(), GetCPInfoExW(), IntMultiByteToWideCharCP(), IntWideCharToMultiByteCP(), and IsDBCSLeadByteEx().
PCODEPAGE_ENTRY FASTCALL IntGetLoadedCodePageEntry | ( | UINT | CodePage | ) |
Definition at line 257 of file nls.c.
Referenced by IntGetCodePageEntry(), and IsValidCodePage().
|
static |
Definition at line 1436 of file nls.c.
Referenced by IsDBCSLeadByte(), and IsDBCSLeadByteEx().
|
inlinestatic |
Definition at line 1125 of file nls.c.
Referenced by IntWideCharToMultiByteCP().
|
inlinestatic |
Definition at line 1102 of file nls.c.
Referenced by IntWideCharToMultiByteCP().
|
static |
Definition at line 662 of file nls.c.
Referenced by MultiByteToWideChar().
|
static |
Definition at line 856 of file nls.c.
Referenced by MultiByteToWideChar().
|
static |
Definition at line 490 of file nls.c.
Referenced by MultiByteToWideChar().
|
static |
Definition at line 1159 of file nls.c.
Referenced by WideCharToMultiByte().
|
static |
Definition at line 911 of file nls.c.
Referenced by WideCharToMultiByte().
|
static |
Definition at line 973 of file nls.c.
Referenced by WideCharToMultiByte().
Definition at line 2359 of file nls.c.
Definition at line 2337 of file nls.c.
INT WINAPI MultiByteToWideChar | ( | UINT | CodePage, |
DWORD | Flags, | ||
LPCSTR | MultiByteString, | ||
INT | MultiByteCount, | ||
LPWSTR | WideCharString, | ||
INT | WideCharCount | ||
) |
Definition at line 1763 of file nls.c.
Definition at line 151 of file nls.c.
Referenced by DllMain().
Definition at line 223 of file nls.c.
Referenced by DllMain().
Definition at line 1820 of file nls.c.
Referenced by WideCharToUtf7().
Definition at line 1837 of file nls.c.
Referenced by WideCharToUtf7().
Definition at line 1629 of file nls.c.
Referenced by MultiByteToWideChar().
INT WINAPI WideCharToMultiByte | ( | UINT | CodePage, |
DWORD | Flags, | ||
LPCWSTR | WideCharString, | ||
INT | WideCharCount, | ||
LPSTR | MultiByteString, | ||
INT | MultiByteCount, | ||
LPCSTR | DefaultChar, | ||
LPBOOL | UsedDefaultChar | ||
) |
Definition at line 2216 of file nls.c.
Definition at line 1852 of file nls.c.
Referenced by WideCharToMultiByte().
|
static |
Definition at line 46 of file nls.c.
Referenced by EngGetCurrentCodePage(), GetACP(), IntGetCodePageEntry(), IsDBCSLeadByte(), NlsInit(), and RtlGetDefaultCodePage().
|
static |
Definition at line 45 of file nls.c.
Referenced by IntGetCodePageEntry(), IntGetLoadedCodePageEntry(), NlsInit(), and NlsUninit().
|
static |
Definition at line 48 of file nls.c.
Referenced by IntGetCodePageEntry(), IntGetLoadedCodePageEntry(), NlsInit(), and NlsUninit().
|
static |
Definition at line 47 of file nls.c.
Referenced by CreateStockFonts(), EngGetCurrentCodePage(), GetOEMCP(), IntGetCodePageEntry(), NlsInit(), and RtlGetDefaultCodePage().
Definition at line 41 of file nls.c.
Referenced by IntMultiByteToWideCharUTF8().
Definition at line 25 of file nls.c.
Referenced by IntMultiByteToWideCharUTF8().