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>.
Loading...
Searching...
No Matches
QUtf8BaseTraits Struct Reference

#include <qstringconverter_p.h>

+ Inheritance diagram for QUtf8BaseTraits:
+ Collaboration diagram for QUtf8BaseTraits:

Static Public Member Functions

static void appendByte (uchar *&ptr, uchar b)
 
static void appendByte (qchar8_t *&ptr, qchar8_t b)
 
static uchar peekByte (const char *ptr, qsizetype n=0)
 
static uchar peekByte (const uchar *ptr, qsizetype n=0)
 
static uchar peekByte (const qchar8_t *ptr, qsizetype n=0)
 
static qptrdiff availableBytes (const char *ptr, const char *end)
 
static qptrdiff availableBytes (const uchar *ptr, const uchar *end)
 
static qptrdiff availableBytes (const qchar8_t *ptr, const qchar8_t *end)
 
static void advanceByte (const char *&ptr, qsizetype n=1)
 
static void advanceByte (const uchar *&ptr, qsizetype n=1)
 
static void advanceByte (const qchar8_t *&ptr, qsizetype n=1)
 
static void appendUtf16 (char16_t *&ptr, char16_t uc)
 
static void appendUcs4 (char16_t *&ptr, char32_t uc)
 
static char16_t peekUtf16 (const char16_t *ptr, qsizetype n=0)
 
static qptrdiff availableUtf16 (const char16_t *ptr, const char16_t *end)
 
static void advanceUtf16 (const char16_t *&ptr, qsizetype n=1)
 
static void appendUtf16 (char32_t *&ptr, char16_t uc)
 
static void appendUcs4 (char32_t *&ptr, char32_t uc)
 

Static Public Attributes

static const bool isTrusted = false
 
static const bool allowNonCharacters = true
 
static const bool skipAsciiHandling = false
 
static const int Error = -1
 
static const int EndOfString = -2
 

Detailed Description

Definition at line 58 of file qstringconverter_p.h.

Member Function Documentation

◆ advanceByte() [1/3]

static void QUtf8BaseTraits::advanceByte ( const char *& ptr,
qsizetype n = 1 )
inlinestatic

Definition at line 90 of file qstringconverter_p.h.

References ptr().

+ Here is the call graph for this function:

◆ advanceByte() [2/3]

static void QUtf8BaseTraits::advanceByte ( const qchar8_t *& ptr,
qsizetype n = 1 )
inlinestatic

Definition at line 96 of file qstringconverter_p.h.

References ptr().

+ Here is the call graph for this function:

◆ advanceByte() [3/3]

static void QUtf8BaseTraits::advanceByte ( const uchar *& ptr,
qsizetype n = 1 )
inlinestatic

Definition at line 93 of file qstringconverter_p.h.

References ptr().

+ Here is the call graph for this function:

◆ advanceUtf16()

static void QUtf8BaseTraits::advanceUtf16 ( const char16_t *& ptr,
qsizetype n = 1 )
inlinestatic

Definition at line 113 of file qstringconverter_p.h.

References ptr().

+ Here is the call graph for this function:

◆ appendByte() [1/2]

static void QUtf8BaseTraits::appendByte ( qchar8_t *& ptr,
qchar8_t b )
inlinestatic

Definition at line 69 of file qstringconverter_p.h.

References ptr().

+ Here is the call graph for this function:

◆ appendByte() [2/2]

static void QUtf8BaseTraits::appendByte ( uchar *& ptr,
uchar b )
inlinestatic

Definition at line 66 of file qstringconverter_p.h.

References ptr().

+ Here is the call graph for this function:

◆ appendUcs4() [1/2]

static void QUtf8BaseTraits::appendUcs4 ( char16_t *& ptr,
char32_t uc )
inlinestatic

Definition at line 102 of file qstringconverter_p.h.

References appendUtf16(), and ptr().

+ Here is the call graph for this function:

◆ appendUcs4() [2/2]

static void QUtf8BaseTraits::appendUcs4 ( char32_t *& ptr,
char32_t uc )
inlinestatic

Definition at line 118 of file qstringconverter_p.h.

References ptr().

+ Here is the call graph for this function:

◆ appendUtf16() [1/2]

static void QUtf8BaseTraits::appendUtf16 ( char16_t *& ptr,
char16_t uc )
inlinestatic

Definition at line 99 of file qstringconverter_p.h.

References ptr().

Referenced by appendUcs4().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ appendUtf16() [2/2]

static void QUtf8BaseTraits::appendUtf16 ( char32_t *& ptr,
char16_t uc )
inlinestatic

Definition at line 115 of file qstringconverter_p.h.

References ptr().

+ Here is the call graph for this function:

◆ availableBytes() [1/3]

static qptrdiff QUtf8BaseTraits::availableBytes ( const char * ptr,
const char * end )
inlinestatic

Definition at line 81 of file qstringconverter_p.h.

References ptr().

+ Here is the call graph for this function:

◆ availableBytes() [2/3]

static qptrdiff QUtf8BaseTraits::availableBytes ( const qchar8_t * ptr,
const qchar8_t * end )
inlinestatic

Definition at line 87 of file qstringconverter_p.h.

References ptr().

+ Here is the call graph for this function:

◆ availableBytes() [3/3]

static qptrdiff QUtf8BaseTraits::availableBytes ( const uchar * ptr,
const uchar * end )
inlinestatic

Definition at line 84 of file qstringconverter_p.h.

References ptr().

+ Here is the call graph for this function:

◆ availableUtf16()

static qptrdiff QUtf8BaseTraits::availableUtf16 ( const char16_t * ptr,
const char16_t * end )
inlinestatic

Definition at line 110 of file qstringconverter_p.h.

References ptr().

+ Here is the call graph for this function:

◆ peekByte() [1/3]

static uchar QUtf8BaseTraits::peekByte ( const char * ptr,
qsizetype n = 0 )
inlinestatic

Definition at line 72 of file qstringconverter_p.h.

References ptr().

+ Here is the call graph for this function:

◆ peekByte() [2/3]

static uchar QUtf8BaseTraits::peekByte ( const qchar8_t * ptr,
qsizetype n = 0 )
inlinestatic

Definition at line 78 of file qstringconverter_p.h.

References ptr().

+ Here is the call graph for this function:

◆ peekByte() [3/3]

static uchar QUtf8BaseTraits::peekByte ( const uchar * ptr,
qsizetype n = 0 )
inlinestatic

Definition at line 75 of file qstringconverter_p.h.

References ptr().

+ Here is the call graph for this function:

◆ peekUtf16()

static char16_t QUtf8BaseTraits::peekUtf16 ( const char16_t * ptr,
qsizetype n = 0 )
inlinestatic

Definition at line 108 of file qstringconverter_p.h.

References ptr().

+ Here is the call graph for this function:

Member Data Documentation

◆ allowNonCharacters

const bool QUtf8BaseTraits::allowNonCharacters = true
static

Definition at line 61 of file qstringconverter_p.h.

◆ EndOfString

const int QUtf8BaseTraits::EndOfString = -2
static

Definition at line 64 of file qstringconverter_p.h.

Referenced by QUtf8::convertFromUnicode(), and QUtf8::convertToUnicode().

◆ Error

const int QUtf8BaseTraits::Error = -1
static

Definition at line 63 of file qstringconverter_p.h.

Referenced by QUtf8::convertFromUnicode(), and QUtf8::convertToUnicode().

◆ isTrusted

const bool QUtf8BaseTraits::isTrusted = false
static

Definition at line 60 of file qstringconverter_p.h.

◆ skipAsciiHandling

const bool QUtf8BaseTraits::skipAsciiHandling = false
static

Definition at line 62 of file qstringconverter_p.h.


The documentation for this struct was generated from the following file: