Home
last modified time | relevance | path

Searched refs:UTF16ToUTF8 (Results 1 – 25 of 34) sorted by relevance

12

/third_party/gn/src/base/strings/
Dutf_string_conversions.cc171 bool UTF16ToUTF8(const char16_t* src, size_t src_len, std::string* output) { in UTF16ToUTF8() function
175 std::string UTF16ToUTF8(std::u16string_view utf16) { in UTF16ToUTF8() function
179 UTF16ToUTF8(utf16.data(), utf16.length(), &ret); in UTF16ToUTF8()
191 DCHECK(IsStringASCII(utf16)) << UTF16ToUTF8(utf16); in UTF16ToASCII()
Dutf_string_conversions.h17 bool UTF16ToUTF8(const char16_t* src, size_t src_len, std::string* output);
18 std::string UTF16ToUTF8(std::u16string_view utf16);
/third_party/node/tools/inspector_protocol/encoding/
Dencoding_test_helper.h21 std::string UTF16ToUTF8(span<uint16_t> in) { in UTF16ToUTF8() function
22 return v8_inspector::UTF16ToUTF8(in.data(), in.size()); in UTF16ToUTF8()
Dencoding_test.cc417 std::string utf8_decoded = UTF16ToUTF8(SpanFrom(decoded)); in TEST()
571 std::string utf8_decoded = UTF16ToUTF8(SpanFrom(decoded)); in TEST()
1503 log_ << "string16: " << UTF16ToUTF8(chars) << "\n"; in HandleString16()
/third_party/gn/src/base/files/
Dfile_util_win.cc326 DLOG(WARNING) << "CreateDirectory(" << UTF16ToUTF8(full_path.value()) in CreateDirectoryAndGetError()
367 << UTF16ToUTF8(full_path.value()) << ", last error is " in CreateDirectoryAndGetError()
553 << UTF16ToUTF8(filename.value()); in WriteFile()
564 DPLOG(WARNING) << "writing file " << UTF16ToUTF8(filename.value()) in WriteFile()
569 << UTF16ToUTF8(filename.value()) << " expected " << size; in WriteFile()
Dfile_path.cc579 return UTF16ToUTF8(value()); in As8Bit()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/Windows/
DPath.inc47 using llvm::sys::windows::UTF16ToUTF8;
139 if (UTF16ToUTF8(PathName.data(), PathName.size(), PathNameUTF8))
200 return UTF16ToUTF8(cur_path.begin(), cur_path.size(), result);
657 UTF16ToUTF8(FirstFind.cFileName, ::wcslen(FirstFind.cFileName),
696 UTF16ToUTF8(FindData.cFileName, ::wcslen(FindData.cFileName),
744 if (!UTF16ToUTF8(RealPathUTF16, CountChars, RealPathUTF8))
844 return windows::UTF16ToUTF8(TempPath.data(), CharCount, ResultPath);
855 bool ok = !UTF16ToUTF8(path, ::wcslen(path), result);
881 return !windows::UTF16ToUTF8(Buf.data(), Size, Res);
971 std::error_code UTF16ToUTF8(const wchar_t *utf16, size_t utf16_len,
DProcess.inc144 if (windows::UTF16ToUTF8(Buf.data(), Size, Res))
163 if (std::error_code ec = windows::UTF16ToUTF8(Arg, wcslen(Arg), ArgString))
186 if (std::error_code ec = windows::UTF16ToUTF8(Arg, wcslen(Arg), Dir))
204 ec = windows::UTF16ToUTF8(FileData.cFileName, wcslen(FileData.cFileName),
DWindowsSupport.h255 std::error_code UTF16ToUTF8(const wchar_t *utf16, size_t utf16_len,
/third_party/skia/src/utils/
DSkUTF.h78 SK_SPI int UTF16ToUTF8(char dst[], int dstCapacity, const uint16_t src[], size_t srcLength);
DSkUTF.cpp287 int SkUTF::UTF16ToUTF8(char dst[], int dstCapacity, const uint16_t src[], size_t srcLength) { in UTF16ToUTF8() function in SkUTF
/third_party/gn/src/gn/
Dgn_main.cc28 out_args.push_back(base::UTF16ToUTF8(arg)); in GetArgs()
Dfile_writer.cc33 file_path_ = base::UTF16ToUTF8(file_path.value()); in Create()
Dninja_build_writer.cc134 return base::UTF16ToUTF8(cmdline.GetCommandLineString()); in GetSelfInvocationCommand()
/third_party/skia/modules/skunicode/include/
DSkUnicode.h142 int utf8Units = SkUTF::UTF16ToUTF8(nullptr, 0, (uint16_t*)utf16, utf16Units); in convertUtf16ToUtf8()
148 …SkDEBUGCODE(int dstLen =) SkUTF::UTF16ToUTF8(utf8.data(), utf8Units, (uint16_t*)utf16, utf16Units); in convertUtf16ToUtf8()
/third_party/cef/libcef/browser/
Diothread_state.cc64 base::UTF16ToUTF8(base::i18n::ToLower(base::UTF8ToUTF16(domain_name))); in RegisterSchemeHandlerFactory()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Windows/
DProcess.inc139 if (windows::UTF16ToUTF8(Buf.data(), Size, Res))
184 EC = windows::UTF16ToUTF8(FileData.cFileName, wcslen(FileData.cFileName),
221 std::error_code EC = windows::UTF16ToUTF8(ModuleName, Length, Filename);
237 EC = windows::UTF16ToUTF8(CmdW, wcslen(CmdW), Cmd);
DPath.inc49 using llvm::sys::windows::UTF16ToUTF8;
146 if (UTF16ToUTF8(PathName.data(), PathName.size(), PathNameUTF8))
211 return UTF16ToUTF8(cur_path.begin(), cur_path.size(), result);
390 return UTF16ToUTF8(Data, CountChars, RealPath);
986 UTF16ToUTF8(FirstFind.cFileName, ::wcslen(FirstFind.cFileName),
1028 UTF16ToUTF8(FindData.cFileName, ::wcslen(FindData.cFileName),
1359 bool ok = !UTF16ToUTF8(path, ::wcslen(path), result);
1381 return !windows::UTF16ToUTF8(Buf.data(), Size, Res);
1486 std::error_code UTF16ToUTF8(const wchar_t *utf16, size_t utf16_len,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DConvertUTF.h295 std::error_code UTF16ToUTF8(const wchar_t *utf16, size_t utf16_len,
/third_party/gn/src/base/
Denvironment.cc70 *result = UTF16ToUTF8(value.get()); in GetVarImpl()
Dcommand_line.cc439 << UTF16ToUTF8(command_line); in ParseFromString()
/third_party/cef/libcef/common/
Dstring_types_impl.cc246 bool ret = base::UTF16ToUTF8( in cef_string_utf16_to_utf8()
/third_party/node/tools/inspector_protocol/lib/
Dbase_string_adapter_cc.template191 base::UTF16ToUTF8(reinterpret_cast<const base::char16*>(data), length, &utf8);
/third_party/cef/libcef/browser/extensions/
Dextension_function_details.cc433 std::make_unique<std::string>(base::UTF16ToUTF8(contents->GetTitle())); in CreateTabObject()
/third_party/cef/libcef/browser/native/
Dfile_dialog_runner_mac.mm225 path = path.ReplaceExtension(base::UTF16ToUTF8(filter[0]));

12