Kanzi 3.9.10
kanzi::SplitStringRange::SplitPosition Struct Reference

String position. More...

#include <kanzi/core.ui/binding/split_string_range.hpp>

Public Member Functions

bool operator!= (const SplitPosition &other) const
 Not equals operator.
 
SplitPositionoperator= (const SplitPosition &other)
 Move operator.
 
bool operator== (const SplitPosition &other) const
 Equals operator.
 
 SplitPosition ()=default
 Default constructor.
 
 SplitPosition (const SplitPosition &other)
 Copy constructor.
 
 SplitPosition (size_t pos, size_t len, bool delim)
 Constructor.
 

Public Attributes

bool m_delim
 
size_t m_length
 
size_t m_position
 
bool m_valid
 

Detailed Description

String position.

Constructor & Destructor Documentation

◆ SplitPosition() [1/3]

kanzi::SplitStringRange::SplitPosition::SplitPosition ( )
explicitdefault

Default constructor.

Constructs an invalid position.

◆ SplitPosition() [2/3]

kanzi::SplitStringRange::SplitPosition::SplitPosition ( size_t pos,
size_t len,
bool delim )
inlineexplicit

Constructor.

Parameters
posCurrent position.
lenString length.
delimIf delimiter was the last thing read true, otherwise false.

◆ SplitPosition() [3/3]

kanzi::SplitStringRange::SplitPosition::SplitPosition ( const SplitPosition & other)
inline

Copy constructor.

Parameters
otherSource split position.

Member Function Documentation

◆ operator==()

bool kanzi::SplitStringRange::SplitPosition::operator== ( const SplitPosition & other) const
inline

Equals operator.

Parameters
otherSource split position.

◆ operator!=()

bool kanzi::SplitStringRange::SplitPosition::operator!= ( const SplitPosition & other) const
inline

Not equals operator.

Parameters
otherSource split position.

◆ operator=()

SplitPosition & kanzi::SplitStringRange::SplitPosition::operator= ( const SplitPosition & other)
inline

Move operator.

Parameters
otherSource split position.

Member Data Documentation

◆ m_position

size_t kanzi::SplitStringRange::SplitPosition::m_position

◆ m_length

size_t kanzi::SplitStringRange::SplitPosition::m_length

◆ m_delim

bool kanzi::SplitStringRange::SplitPosition::m_delim

◆ m_valid

bool kanzi::SplitStringRange::SplitPosition::m_valid

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