![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Functions | |
template<typename Traits, typename OutputPtr, typename InputPtr> | |
int | toUtf8 (char16_t u, OutputPtr &dst, InputPtr &src, InputPtr end) |
bool | isContinuationByte (uchar b) |
template<typename Traits, typename OutputPtr, typename InputPtr> | |
qsizetype | fromUtf8 (uchar b, OutputPtr &dst, InputPtr &src, InputPtr end) |
template<typename Traits = QUtf8BaseTraits> | |
char32_t | nextUcs4FromUtf8 (const qchar8_t *&src, const qchar8_t *end, char32_t errorChar=QChar::ReplacementCharacter) |
wrapper around fromUtf8<Traits> to provide a simpler interface for a common case |
|
inline |
returns the number of characters consumed (including b) in case of success; returns negative in case of error: Traits::Error or Traits::EndOfString
Definition at line 199 of file qstringconverter_p.h.
|
inline |
Definition at line 191 of file qstringconverter_p.h.
char32_t QUtf8Functions::nextUcs4FromUtf8 | ( | const qchar8_t *& | src, |
const qchar8_t * | end, | ||
char32_t | errorChar = QChar::ReplacementCharacter ) |
wrapper around fromUtf8<Traits> to provide a simpler interface for a common case
Definition at line 295 of file qstringconverter_p.h.
|
inline |
returns 0 on success; errors can only happen if u is a surrogate: Error if u is a low surrogate; if u is a high surrogate, Error if the next isn't a low one, EndOfString if we run into the end of the string.
Definition at line 136 of file qstringconverter_p.h.