Kanzi  3.9.7
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

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

Default constructor.

Constructs an invalid position.

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.
kanzi::SplitStringRange::SplitPosition::SplitPosition ( const SplitPosition other)
inline

Copy constructor.

Parameters
otherSource split position.

Member Function Documentation

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

Equals operator.

Parameters
otherSource split position.
bool kanzi::SplitStringRange::SplitPosition::operator!= ( const SplitPosition other) const
inline

Not equals operator.

Parameters
otherSource split position.
SplitPosition& kanzi::SplitStringRange::SplitPosition::operator= ( const SplitPosition other)
inline

Move operator.

Parameters
otherSource split position.

Member Data Documentation

size_t kanzi::SplitStringRange::SplitPosition::m_position
size_t kanzi::SplitStringRange::SplitPosition::m_length
bool kanzi::SplitStringRange::SplitPosition::m_delim
bool kanzi::SplitStringRange::SplitPosition::m_valid

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