Evo C++ Library v0.5.1
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
StrTokBase Class Reference

#include <evo/strtok.h>

Inheritance diagram for StrTokBase:
Inheritance graph
[legend]

Detailed Description

Base tokenizer class – see StrTok and StrTokR.

Public Types

typedef StrTokBase BaseType
 Base type. More...
 
typedef SubString::Size Size
 String size type More...
 

Public Member Functions

Char delim () const
 Get current delimiter before next token. More...
 
Size index () const
 Get current index before next token. More...
 
const SubStringvalue () const
 Get current token value from last call to next(). More...
 

Protected Member Functions

 StrTokBase ()
 Default constructor creates empty tokenizer. More...
 
 StrTokBase (const StringBase &string)
 Default constructor creates empty tokenizer. More...
 
 StrTokBase (const BaseType &src)
 Copy constructor. More...
 
void copy (const BaseType &src)
 Copy data. More...
 

Protected Attributes

Char delim_
 Current delimiter, null when none or at end. More...
 
Size index_
 Current index, END when at end. More...
 
SubString string_
 String being tokenized, NULL for none More...
 
SubString value_
 Current value. More...
 

Member Typedef Documentation

◆ BaseType

Base type.

◆ Size

typedef SubString::Size Size

String size type

Constructor & Destructor Documentation

◆ StrTokBase() [1/3]

StrTokBase ( )
inlineprotected

Default constructor creates empty tokenizer.

◆ StrTokBase() [2/3]

StrTokBase ( const StringBase string)
inlineprotected

Default constructor creates empty tokenizer.

◆ StrTokBase() [3/3]

StrTokBase ( const BaseType src)
inlineprotected

Copy constructor.

Parameters
srcData to copy

Member Function Documentation

◆ copy()

void copy ( const BaseType src)
inlineprotected

Copy data.

◆ delim()

Char delim ( ) const
inline

Get current delimiter before next token.

Returns
Current delimiter, null if none or at end

◆ index()

Size index ( ) const
inline

Get current index before next token.

Returns
Current index, END if at end

◆ value()

const SubString& value ( ) const
inline

Get current token value from last call to next().

Returns
Current token value

Member Data Documentation

◆ delim_

Char delim_
protected

Current delimiter, null when none or at end.

◆ index_

Size index_
protected

Current index, END when at end.

◆ string_

SubString string_
protected

String being tokenized, NULL for none

◆ value_

SubString value_
protected

Current value.


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