Home
last modified time | relevance | path

Searched refs:codePage (Results 1 – 25 of 28) sorted by relevance

12

/external/lzma/CPP/Common/
DStringConvert.cpp42 void MultiByteToUnicodeString2(UString &dest, const AString &src, UINT codePage) in MultiByteToUnicodeString2() argument
74 unsigned len = MultiByteToWideChar(codePage, 0, src, src.Len(), NULL, 0); in MultiByteToUnicodeString2()
82 len = MultiByteToWideChar(codePage, 0, src, src.Len(), dest.GetBuf(len), len); in MultiByteToUnicodeString2()
108 static void UnicodeStringToMultiByte2(AString &dest, const UString &src, UINT codePage, char defaul… in UnicodeStringToMultiByte2() argument
178 unsigned len = WideCharToMultiByte(codePage, 0, src, src.Len(), NULL, 0, NULL, NULL); in UnicodeStringToMultiByte2()
187 bool isUtf = (codePage == CP_UTF8 || codePage == CP_UTF7); in UnicodeStringToMultiByte2()
189 len = WideCharToMultiByte(codePage, 0, src, src.Len(), in UnicodeStringToMultiByte2()
287 UString MultiByteToUnicodeString(const AString &src, UINT codePage) in MultiByteToUnicodeString() argument
290 MultiByteToUnicodeString2(dest, src, codePage); in MultiByteToUnicodeString()
294 UString MultiByteToUnicodeString(const char *src, UINT codePage) in MultiByteToUnicodeString() argument
[all …]
DStringConvert.h9 UString MultiByteToUnicodeString(const AString &src, UINT codePage = CP_ACP);
10 UString MultiByteToUnicodeString(const char *src, UINT codePage = CP_ACP);
13 void MultiByteToUnicodeString2(UString &dest, const AString &src, UINT codePage = CP_ACP);
15 void UnicodeStringToMultiByte2(AString &dest, const UString &src, UINT codePage);
17 AString UnicodeStringToMultiByte(const UString &src, UINT codePage, char defaultChar, bool &default…
18 AString UnicodeStringToMultiByte(const UString &src, UINT codePage = CP_ACP);
26 inline UString GetUnicodeString(const AString &a, UINT codePage) in GetUnicodeString() argument
27 { return MultiByteToUnicodeString(a, codePage); } in GetUnicodeString()
28 inline UString GetUnicodeString(const char *a, UINT codePage) in GetUnicodeString() argument
29 { return MultiByteToUnicodeString(a, codePage); } in GetUnicodeString()
[all …]
DStdOutStream.cpp50 int codePage = g_CodePage; in operator <<() local
51 if (codePage == -1) in operator <<()
52 codePage = CP_OEMCP; in operator <<()
54 if (codePage == CP_UTF8) in operator <<()
57 UnicodeStringToMultiByte2(dest, s, (UINT)codePage); in operator <<()
63 int codePage = g_CodePage; in StdOut_Convert_UString_to_AString() local
64 if (codePage == -1) in StdOut_Convert_UString_to_AString()
65 codePage = CP_OEMCP; in StdOut_Convert_UString_to_AString()
66 if (codePage == CP_UTF8) in StdOut_Convert_UString_to_AString()
69 UnicodeStringToMultiByte2(temp, s, (UINT)codePage); in StdOut_Convert_UString_to_AString()
DStdInStream.cpp59 int codePage = g_CodePage; in ScanUStringUntilNewLine() local
60 if (codePage == -1) in ScanUStringUntilNewLine()
61 codePage = CP_OEMCP; in ScanUStringUntilNewLine()
62 if (codePage == CP_UTF8) in ScanUStringUntilNewLine()
65 MultiByteToUnicodeString2(dest, s, (UINT)codePage); in ScanUStringUntilNewLine()
DListFileUtils.cpp28 bool ReadNamesFromListFile2(CFSTR fileName, UStringVector &strings, UINT codePage, DWORD &lastError) in ReadNamesFromListFile2() argument
46 if (codePage == MY__CP_UTF16 || codePage == MY__CP_UTF16BE) in ReadNamesFromListFile2()
62 if (codePage == MY__CP_UTF16) in ReadNamesFromListFile2()
99 if (codePage == CP_UTF8) in ReadNamesFromListFile2()
106 MultiByteToUnicodeString2(u, s, codePage); in ReadNamesFromListFile2()
DListFileUtils.h15 bool ReadNamesFromListFile2(CFSTR fileName, UStringVector &strings, UINT codePage,
/external/angle/third_party/vulkan_memory_allocator/src/
DCommon.cpp207 bool ConvertCharsToUnicode(std::wstring *outStr, const std::string &s, unsigned codePage) in ConvertCharsToUnicode() argument
216 const int size = MultiByteToWideChar(codePage, 0, s.data(), (int)s.length(), NULL, 0); in ConvertCharsToUnicode()
225 int result = MultiByteToWideChar(codePage, 0, s.data(), (int)s.length(), buf.get(), size); in ConvertCharsToUnicode()
236 …ol ConvertCharsToUnicode(std::wstring *outStr, const char *s, size_t sCharCount, unsigned codePage) in ConvertCharsToUnicode() argument
247 int size = MultiByteToWideChar(codePage, 0, s, (int)sCharCount, NULL, 0); in ConvertCharsToUnicode()
256 int result = MultiByteToWideChar(codePage, 0, s, (int)sCharCount, buf.get(), size); in ConvertCharsToUnicode()
DCommon.h327 bool ConvertCharsToUnicode(std::wstring *outStr, const std::string &s, unsigned codePage);
328 …l ConvertCharsToUnicode(std::wstring *outStr, const char *s, size_t sCharCount, unsigned codePage);
/external/lzma/CPP/7zip/Archive/Common/
DItemNameUtils.cpp63 codePage in HasTailSlash()
71 *CharPrevExA((WORD)codePage, name, name.Ptr(name.Len()), 0); in HasTailSlash()
DItemNameUtils.h18 bool HasTailSlash(const AString &name, UINT codePage);
/external/lzma/CPP/7zip/UI/Common/
DArchiveCommandLine.cpp411 … LPCWSTR fileName, bool include, NRecursedType::EEnum type, bool wildcardMatching, Int32 codePage) in AddToCensorFromListFile() argument
417 if (!ReadNamesFromListFile2(us2fs(fileName), names, codePage, lastError)) in AddToCensorFromListFile()
452 bool thereAreSwitchIncludes, Int32 codePage) in AddToCensorFromNonSwitchesStrings() argument
470 … AddToCensorFromListFile(renamePairs, censor, s.Ptr(1), true, type, wildcardMatching, codePage); in AddToCensorFromNonSwitchesStrings()
572 Int32 codePage) in AddSwitchWildcardsToCensor() argument
613 … AddToCensorFromListFile(NULL, censor, tail, include, recursedType, wildcardMatching, codePage); in AddSwitchWildcardsToCensor()
1027 Int32 codePage = FindCharset(parser, NKey::kListfileCharSet, false, CP_UTF8); in Parse2() local
1035 parser[NKey::kInclude].PostStrings, true, recursedType, wildcardMatching, codePage); in Parse2()
1040 parser[NKey::kExclude].PostStrings, false, recursedType, wildcardMatching, codePage); in Parse2()
1074 thereAreSwitchIncludes, codePage); in Parse2()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DNumberPermutationTest.java155 String codePage = "UTF-8"; in testPermutations() local
156 BufferedReader f = TestUtil.getDataReader("numberpermutationtest.txt", codePage); in testPermutations()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberPermutationTest.java152 String codePage = "UTF-8"; in testPermutations() local
153 BufferedReader f = TestUtil.getDataReader("numberpermutationtest.txt", codePage); in testPermutations()
/external/icu/icu4c/source/test/intltest/
Dnumbertest_permutation.cpp165 const char* codePage = "UTF-8"; in testPermutations() local
166 LocalUCHARBUFPointer f(ucbuf_open(goldenFilePath.data(), &codePage, true, false, status)); in testPermutations()
Ddatadrivennumberformattestsuite.cpp34 const char *codePage = "UTF-8"; in run() local
35 LocalUCHARBUFPointer f(ucbuf_open(path.data(), &codePage, true, false, &status)); in run()
Dlocalematchertest.cpp648 const char *codePage = "UTF-8"; in testDataDriven() local
649 LocalUCHARBUFPointer f(ucbuf_open(path.data(), &codePage, true, false, errorCode)); in testDataDriven()
Drbbimonkeytest.cpp649 const char *codePage = "UTF-8"; in openBreakRules() local
650 fRuleCharBuffer.adoptInstead(ucbuf_open(path.data(), &codePage, true, false, &status)); in openBreakRules()
/external/cronet/third_party/icu/source/test/intltest/
Dnumbertest_permutation.cpp165 const char* codePage = "UTF-8"; in testPermutations() local
166 LocalUCHARBUFPointer f(ucbuf_open(goldenFilePath.data(), &codePage, true, false, status)); in testPermutations()
Ddatadrivennumberformattestsuite.cpp34 const char *codePage = "UTF-8"; in run() local
35 LocalUCHARBUFPointer f(ucbuf_open(path.data(), &codePage, true, false, &status)); in run()
Dlocalematchertest.cpp648 const char *codePage = "UTF-8"; in testDataDriven() local
649 LocalUCHARBUFPointer f(ucbuf_open(path.data(), &codePage, true, false, errorCode)); in testDataDriven()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/impl/
DUnitsTest.java558 String codePage = "UTF-8";
560 try (BufferedReader f = TestUtil.getDataReader("cldr/units/unitsTest.txt", codePage)) {
681 String codePage = "UTF-8";
684 … try (BufferedReader f = TestUtil.getDataReader("cldr/units/unitPreferencesTest.txt", codePage)) {
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/impl/
DUnitsTest.java555 String codePage = "UTF-8";
557 try (BufferedReader f = TestUtil.getDataReader("cldr/units/unitsTest.txt", codePage)) {
678 String codePage = "UTF-8";
681 … try (BufferedReader f = TestUtil.getDataReader("cldr/units/unitPreferencesTest.txt", codePage)) {
/external/lzma/C/Util/7z/
D7zMain.c160 , UINT codePage in Utf16_To_Char() argument
179 …numChars = WideCharToMultiByte(codePage, 0, (LPCWSTR)s, len, (char *)buf->data, size, &defaultChar… in Utf16_To_Char()
/external/lzma/CPP/7zip/Bundles/LzmaCon/
DLzmaAlone.cpp126 int codePage = CP_OEMCP; in Convert_UString_to_AString() local
136 UnicodeStringToMultiByte2(temp, s, (UINT)codePage); in Convert_UString_to_AString()
/external/lzma/CPP/7zip/UI/Client7z/
DClient7z.cpp70 int codePage = CP_OEMCP; in Convert_UString_to_AString() local
80 UnicodeStringToMultiByte2(temp, s, (UINT)codePage); in Convert_UString_to_AString()

12