ICU 78.1
78.1
|
C++ header-only API: C++ string helper functions. More...
Go to the source code of this file.
Functions | |
template<typename StringClass > | |
StringClass & | U_HEADER_ONLY_NAMESPACE::utfstring::appendOrFFFD (StringClass &s, UChar32 c) |
Appends the code point to the string. More... | |
template<typename StringClass > | |
StringClass & | U_HEADER_ONLY_NAMESPACE::utfstring::appendUnsafe (StringClass &s, UChar32 c) |
Appends the code point to the string. More... | |
template<typename StringClass > | |
StringClass | U_HEADER_ONLY_NAMESPACE::utfstring::encodeOrFFFD (UChar32 c) |
Returns the code point as a string of code units. More... | |
template<typename StringClass > | |
StringClass | U_HEADER_ONLY_NAMESPACE::utfstring::encodeUnsafe (UChar32 c) |
Returns the code point as a string of code units. More... | |
C++ header-only API: C++ string helper functions.
Definition in file utfstring.h.
|
inline |
Appends the code point to the string.
Appends the U+FFFD replacement character instead if c is not a scalar value. See https://www.unicode.org/glossary/#unicode_scalar_value
StringClass | A version of std::basic_string (or a compatible type) |
s | The string to append to |
c | The code point to append |
Definition at line 98 of file utfstring.h.
References U_HEADER_ONLY_NAMESPACE::utfstring::appendOrFFFD().
Referenced by U_HEADER_ONLY_NAMESPACE::utfstring::appendOrFFFD().
|
inline |
Appends the code point to the string.
The code point must be a scalar value; otherwise the behavior is undefined. See https://www.unicode.org/glossary/#unicode_scalar_value
StringClass | A version of std::basic_string (or a compatible type) |
s | The string to append to |
c | The code point to append (must be a scalar value) |
Definition at line 115 of file utfstring.h.
References U_HEADER_ONLY_NAMESPACE::utfstring::appendUnsafe().
Referenced by U_HEADER_ONLY_NAMESPACE::utfstring::appendUnsafe().
|
inline |
Returns the code point as a string of code units.
Returns the U+FFFD replacement character instead if c is not a scalar value. See https://www.unicode.org/glossary/#unicode_scalar_value
StringClass | A version of std::basic_string (or a compatible type) |
c | The code point |
Definition at line 131 of file utfstring.h.
References U_HEADER_ONLY_NAMESPACE::utfstring::encodeOrFFFD().
Referenced by U_HEADER_ONLY_NAMESPACE::utfstring::encodeOrFFFD().
|
inline |
Returns the code point as a string of code units.
The code point must be a scalar value; otherwise the behavior is undefined. See https://www.unicode.org/glossary/#unicode_scalar_value
StringClass | A version of std::basic_string (or a compatible type) |
c | The code point |
Definition at line 149 of file utfstring.h.
References U_HEADER_ONLY_NAMESPACE::utfstring::encodeUnsafe().
Referenced by U_HEADER_ONLY_NAMESPACE::utfstring::encodeUnsafe().