Kanzi  3.9.5
Kanzi Engine API
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. More...
 
SplitPositionoperator= (const SplitPosition &other)
 Move operator. More...
 
bool operator== (const SplitPosition &other) const
 Equals operator. More...
 
 SplitPosition ()=default
 Default constructor. More...
 
 SplitPosition (size_t pos, size_t len, bool delim)
 Constructor. More...
 
 SplitPosition (const SplitPosition &other)
 Copy constructor. More...
 

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: