Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
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) |
|
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 197 of file qstringconverter_p.h.
References isContinuationByte(), and Q_UNLIKELY.
|
inline |
Definition at line 189 of file qstringconverter_p.h.
Referenced by fromUtf8().
|
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 134 of file qstringconverter_p.h.