Lines Matching refs:CodePageTable
198 &AnsiCodePage.CodePageTable); in NlsInit()
199 AnsiCodePage.CodePage = AnsiCodePage.CodePageTable.CodePage; in NlsInit()
208 &OemCodePage.CodePageTable); in NlsInit()
209 OemCodePage.CodePage = OemCodePage.CodePageTable.CodePage; in NlsInit()
469 RtlInitCodePageTable((PUSHORT)SectionMapping, &CodePageEntry->CodePageTable); in IntGetCodePageEntry()
670 PCPTABLEINFO CodePageTable; in IntMultiByteToWideCharCP() local
684 CodePageTable = &CodePageEntry->CodePageTable; in IntMultiByteToWideCharCP()
687 if ((Flags & MB_USEGLYPHCHARS) && CodePageTable->MultiByteTable[256]) in IntMultiByteToWideCharCP()
690 MultiByteTable = CodePageTable->MultiByteTable + 256 + 1; in IntMultiByteToWideCharCP()
694 MultiByteTable = CodePageTable->MultiByteTable; in IntMultiByteToWideCharCP()
698 if (CodePageTable->DBCSCodePage) in IntMultiByteToWideCharCP()
711 DBCSOffset = CodePageTable->DBCSOffsets[(UCHAR)*TempString]; in IntMultiByteToWideCharCP()
722 WideChar = CodePageTable->DBCSOffsets[DBCSOffset + *(TempString + 1)]; in IntMultiByteToWideCharCP()
724 if (WideChar == CodePageTable->UniDefaultChar && in IntMultiByteToWideCharCP()
725 … MAKEWORD(*(TempString + 1), *TempString) != CodePageTable->TransUniDefaultChar) in IntMultiByteToWideCharCP()
737 if ((WideChar == CodePageTable->UniDefaultChar && in IntMultiByteToWideCharCP()
738 *TempString != CodePageTable->TransUniDefaultChar) || in IntMultiByteToWideCharCP()
758 DBCSOffset = CodePageTable->DBCSOffsets[Char]; in IntMultiByteToWideCharCP()
774 DBCSOffset = CodePageTable->DBCSOffsets[Char]; in IntMultiByteToWideCharCP()
784 *WideCharString++ = CodePageTable->UniDefaultChar; in IntMultiByteToWideCharCP()
788 … *WideCharString++ = CodePageTable->DBCSOffsets[DBCSOffset + (UCHAR)*MultiByteString++]; in IntMultiByteToWideCharCP()
811 if ((WideChar == CodePageTable->UniDefaultChar && in IntMultiByteToWideCharCP()
812 *TempString != CodePageTable->TransUniDefaultChar) || in IntMultiByteToWideCharCP()
1102 IntIsValidSBCSMapping(PCPTABLEINFO CodePageTable, DWORD Flags, WCHAR wch, UCHAR ch) in IntIsValidSBCSMapping() argument
1106 return (CodePageTable->MultiByteTable[ch] == wch); in IntIsValidSBCSMapping()
1110 if (ch != CodePageTable->TransDefaultChar) in IntIsValidSBCSMapping()
1114 return (wch == CodePageTable->TransUniDefaultChar); in IntIsValidSBCSMapping()
1125 IntIsValidDBCSMapping(PCPTABLEINFO CodePageTable, DWORD Flags, WCHAR wch, USHORT ch) in IntIsValidDBCSMapping() argument
1128 if (ch == CodePageTable->TransDefaultChar && wch != CodePageTable->TransUniDefaultChar) in IntIsValidDBCSMapping()
1136 USHORT uOffset = CodePageTable->DBCSOffsets[ch >> 8]; in IntIsValidDBCSMapping()
1138 return (CodePageTable->DBCSOffsets[uOffset + (ch & 0xff)] == wch); in IntIsValidDBCSMapping()
1141 return (CodePageTable->MultiByteTable[ch] == wch); in IntIsValidDBCSMapping()
1169 PCPTABLEINFO CodePageTable; in IntWideCharToMultiByteCP() local
1180 CodePageTable = &CodePageEntry->CodePageTable; in IntWideCharToMultiByteCP()
1184 if (CodePageTable->DBCSCodePage) in IntWideCharToMultiByteCP()
1203 DefChar = CodePageTable->TransDefaultChar; in IntWideCharToMultiByteCP()
1218 uChar = ((PUSHORT) CodePageTable->WideCharTable)[*WideCharString]; in IntWideCharToMultiByteCP()
1221 if (!IntIsValidDBCSMapping(CodePageTable, Flags, *WideCharString, uChar)) in IntWideCharToMultiByteCP()
1248 uChar = ((PUSHORT)CodePageTable->WideCharTable)[*WideCharString]; in IntWideCharToMultiByteCP()
1251 if (!IntIsValidDBCSMapping(CodePageTable, Flags, *WideCharString, uChar)) in IntWideCharToMultiByteCP()
1287 if (((PWCHAR)CodePageTable->WideCharTable)[*WideCharString] & 0xff00) in IntWideCharToMultiByteCP()
1299 USHORT uChar = ((PUSHORT) CodePageTable->WideCharTable)[*WideCharString]; in IntWideCharToMultiByteCP()
1354 *UsedDefaultChar = !IntIsValidSBCSMapping(CodePageTable, in IntWideCharToMultiByteCP()
1357 … ((PCHAR)CodePageTable->WideCharTable)[*WideCharString]); in IntWideCharToMultiByteCP()
1367 DefChar = (CHAR)CodePageTable->TransDefaultChar; in IntWideCharToMultiByteCP()
1380 *MultiByteString = ((PCHAR)CodePageTable->WideCharTable)[*WideCharString]; in IntWideCharToMultiByteCP()
1382 if (!IntIsValidSBCSMapping(CodePageTable, Flags, *WideCharString, *MultiByteString)) in IntWideCharToMultiByteCP()
1420 *MultiByteString = ((PCHAR)CodePageTable->WideCharTable)[*WideCharString]; in IntWideCharToMultiByteCP()
2069 if (CodePageEntry->CodePageTable.DefaultChar & 0xff00) in GetCPInfo()
2071 CodePageInfo->DefaultChar[0] = (CodePageEntry->CodePageTable.DefaultChar & 0xff00) >> 8; in GetCPInfo()
2072 CodePageInfo->DefaultChar[1] = CodePageEntry->CodePageTable.DefaultChar & 0x00ff; in GetCPInfo()
2076 CodePageInfo->DefaultChar[0] = CodePageEntry->CodePageTable.DefaultChar & 0xff; in GetCPInfo()
2080 if ((CodePageInfo->MaxCharSize = CodePageEntry->CodePageTable.MaximumCharacterSize) == 2) in GetCPInfo()
2081 …memcpy(CodePageInfo->LeadByte, CodePageEntry->CodePageTable.LeadByte, sizeof(CodePageInfo->LeadByt… in GetCPInfo()
2135 lpCPInfoEx->CodePage = CodePageEntry->CodePageTable.CodePage; in GetCPInfoExW()
2136 lpCPInfoEx->UnicodeDefaultChar = CodePageEntry->CodePageTable.UniDefaultChar; in GetCPInfoExW()
2309 return AnsiCodePage.CodePageTable.CodePage; in GetACP()
2324 return OemCodePage.CodePageTable.CodePage; in GetOEMCP()
2343 return IntIsLeadByte(&CodePageEntry->CodePageTable, TestByte); in IsDBCSLeadByteEx()
2361 return IntIsLeadByte(&AnsiCodePage.CodePageTable, TestByte); in IsDBCSLeadByte()