MCPcopy Create free account
hub / github.com/apache/brpc / WideToUTF8

Function WideToUTF8

src/butil/strings/utf_string_conversions.cc:45–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43// UTF-8 <-> Wide --------------------------------------------------------------
44
45bool WideToUTF8(const wchar_t* src, size_t src_len, std::string* output) {
46 PrepareForUTF8Output(src, src_len, output);
47 return ConvertUnicode(src, src_len, output);
48}
49
50std::string WideToUTF8(const std::wstring& wide) {
51 std::string ret;

Callers 9

TEST_FFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
logging.ccFile · 0.85
GetVarImplMethod · 0.85
SysWideToUTF8Function · 0.85
SysWideToNativeMBFunction · 0.85
UTF16ToUTF8Function · 0.85
AsUTF8UnsafeMethod · 0.85

Calls 4

PrepareForUTF8OutputFunction · 0.85
ConvertUnicodeFunction · 0.70
dataMethod · 0.45
lengthMethod · 0.45

Tested by 3

TEST_FFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68