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
QStringConverterBase::State Struct Reference

#include <qstringconverter_base.h>

+ Collaboration diagram for QStringConverterBase::State:

Public Types

using ClearDataFn = void (*)(State *) noexcept
 

Public Member Functions

constexpr State (Flags f=Flag::Default) noexcept
 
 ~State ()
 
 State (State &&other) noexcept
 
Stateoperator= (State &&other) noexcept
 
Q_CORE_EXPORT void clear () noexcept
 
Q_CORE_EXPORT void reset () noexcept
 

Public Attributes

Flags flags
 
int internalState = 0
 
qsizetype remainingChars = 0
 
qsizetype invalidChars = 0
 
union { 
 
   uint   state_data [4] 
 
   void *   d [2] 
 
};  
 
ClearDataFn clearFn = nullptr
 

Detailed Description

Definition at line 40 of file qstringconverter_base.h.

Member Typedef Documentation

◆ ClearDataFn

Definition at line 76 of file qstringconverter_base.h.

Constructor & Destructor Documentation

◆ State() [1/2]

constexpr QStringConverterBase::State::State ( Flags f = Flag::Default)
inlineconstexprnoexcept

Definition at line 41 of file qstringconverter_base.h.

◆ ~State()

QStringConverterBase::State::~State ( )
inline

Definition at line 43 of file qstringconverter_base.h.

References clear().

+ Here is the call graph for this function:

◆ State() [2/2]

QStringConverterBase::State::State ( State && other)
inlinenoexcept

Definition at line 45 of file qstringconverter_base.h.

References other().

+ Here is the call graph for this function:

Member Function Documentation

◆ clear()

void QStringConverter::State::clear ( )
noexcept

Definition at line 1626 of file qstringconverter.cpp.

References clearFn, internalState, invalidChars, remainingChars, and state_data.

◆ operator=()

State & QStringConverterBase::State::operator= ( State && other)
inlinenoexcept

Definition at line 53 of file qstringconverter_base.h.

References clear(), and other().

+ Here is the call graph for this function:

◆ reset()

void QStringConverter::State::reset ( )
noexcept

Definition at line 1637 of file qstringconverter.cpp.

References clear(), d, and QStringConverterBase::UsesIcu.

+ Here is the call graph for this function:

Member Data Documentation

◆ [union]

◆ clearFn

ClearDataFn QStringConverterBase::State::clearFn = nullptr

Definition at line 77 of file qstringconverter_base.h.

Referenced by clear().

◆ d

void* QStringConverterBase::State::d[2]

Definition at line 74 of file qstringconverter_base.h.

Referenced by QStringConverter::name().

◆ flags

Flags QStringConverterBase::State::flags

Definition at line 67 of file qstringconverter_base.h.

Referenced by QStringConverter::name().

◆ internalState

int QStringConverterBase::State::internalState = 0

Definition at line 68 of file qstringconverter_base.h.

Referenced by clear().

◆ invalidChars

qsizetype QStringConverterBase::State::invalidChars = 0

◆ remainingChars

qsizetype QStringConverterBase::State::remainingChars = 0

◆ state_data

uint QStringConverterBase::State::state_data[4]

Definition at line 73 of file qstringconverter_base.h.

Referenced by clear().


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