Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

template<typename T>
class Geo::GeoTokenList

A basic replacement for 'strtok'.

It just builds a list of tokens from a given string, chopped up by a set of delimiters.

Functions

NameDescription
GeoTokenList(const T *, const T *)

Creates a GeoTokenList which splits the given string on the given delimiters.

GetSize()

Gets the number of tokens.

operator[](s32)

Gets the token at the given index.


Anchor
aed00919fd25e8bf6529a0e7a7ceaee1c
aed00919fd25e8bf6529a0e7a7ceaee1c

Geo::GeoTokenList< T >::GeoTokenList

...

public: GeoTokenList
(
    const T * str,
    const T * delims
)

...

Creates a GeoTokenList which splits the given string on the given delimiters.


Anchor
a8cf74ce87b3a97f3c56666f4a983f628
a8cf74ce87b3a97f3c56666f4a983f628

s32 Geo::GeoTokenList< T >::GetSize

...

public: s32 GetSize() const

...

Gets the number of tokens.


Anchor
a27bff844e5a6ded7e69b85811467f43f
a27bff844e5a6ded7e69b85811467f43f

const T* Geo::GeoTokenList< T >::operator[]

...

public: const T * operator[]
(
    s32 idx
) const

...

Gets the token at the given index.