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

Function WriteUnicodeCharacter

src/butil/strings/utf_string_conversion_utils.h:74–78  ·  view source on GitHub ↗

Appends the given UTF-32 character to the given 32-bit string. Returns the number of 32-bit values written.

Source from the content-addressed store, hash-verified

72// Appends the given UTF-32 character to the given 32-bit string. Returns the
73// number of 32-bit values written.
74inline size_t WriteUnicodeCharacter(uint32_t code_point, std::wstring* output) {
75 // This is the easy case, just append the character.
76 output->push_back(code_point);
77 return 1;
78}
79#endif // defined(WCHAR_T_IS_UTF32)
80
81// Generalized Unicode converter -----------------------------------------------

Callers 2

ConvertUnicodeFunction · 0.70
ConvertUnicodeFunction · 0.70

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected