Qt 4.8
Public Functions | Public Variables | List of all members
QTextCodec::ConverterState Struct Reference

#include <qtextcodec.h>

Public Functions

 ConverterState (ConversionFlags f=DefaultConversion)
 Constructs a ConverterState object initialized with the given flags. More...
 
 ~ConverterState ()
 Destroys the ConverterState object. More...
 

Public Variables

void * d
 
ConversionFlags flags
 
int invalidChars
 
int remainingChars
 
uint state_data [3]
 

Detailed Description

Definition at line 102 of file qtextcodec.h.

Constructors and Destructors

◆ ConverterState()

QTextCodec::ConverterState::ConverterState ( ConversionFlags  f = DefaultConversion)
inline

Constructs a ConverterState object initialized with the given flags.

Definition at line 103 of file qtextcodec.h.

◆ ~ConverterState()

QTextCodec::ConverterState::~ConverterState ( )

Destroys the ConverterState object.

Definition at line 835 of file qtextcodec.cpp.

Referenced by resetCodecConverterStateHelper().

836 {
837  if (flags & FreeFunction)
839  else if (d)
840  qFree(d);
841 }
Q_CORE_EXPORT void qFree(void *ptr)
Definition: qmalloc.cpp:58
ConversionFlags flags
Definition: qtextcodec.h:106
static QTextCodecStateFreeFunction decode(const uint *src)
Definition: qtextcodec_p.h:67

Properties

◆ d

void* QTextCodec::ConverterState::d

◆ flags

ConversionFlags QTextCodec::ConverterState::flags

◆ invalidChars

int QTextCodec::ConverterState::invalidChars

◆ remainingChars

int QTextCodec::ConverterState::remainingChars

◆ state_data

uint QTextCodec::ConverterState::state_data[3]

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