TrueReality  v0.1.1912
trUtil::StringUtils::StringTokenizer< Pred > Class Template Reference

The predicate should evaluate to true when applied to a separator. More...

#include <StringUtils.h>

Static Public Member Functions

static void tokenize (std::vector< std::string > &tokens, const std::string &stringToParse, const Pred &predFxn=Pred())
 The predicate should evaluate to true when applied to a separator. More...
 
static void tokenize (std::vector< std::string > &tokens, const std::string &stringToParse, const std::string &delimiter)
 The predicate should evaluate to true when applied to a separator. More...
 

Detailed Description

template<class Pred = IsSpace>
class trUtil::StringUtils::StringTokenizer< Pred >

The predicate should evaluate to true when applied to a separator.

Definition at line 61 of file StringUtils.h.

Member Function Documentation

◆ tokenize() [1/2]

template<class Pred >
void trUtil::StringUtils::StringTokenizer< Pred >::tokenize ( std::vector< std::string > &  tokens,
const std::string &  stringToParse,
const Pred &  predFxn = Pred() 
)
inlinestatic

The predicate should evaluate to true when applied to a separator.

Parameters
[in,out]tokensThe tokens.
stringToParseThe string to parse.
predFxn(Optional) The predicate fxn.
Template Parameters
PredType of the predicate.
Parameters
[in,out]tokensThe tokens.
stringToParseThe string to parse.
predFxnThe predicate fxn.

Definition at line 99 of file StringUtils.h.

Referenced by trUtil::FileUtils::ArchiveRelativeToAbsolute(), and trUtil::FileUtils::RelativePath().

Here is the caller graph for this function:

◆ tokenize() [2/2]

template<class Pred = IsSpace>
static void trUtil::StringUtils::StringTokenizer< Pred >::tokenize ( std::vector< std::string > &  tokens,
const std::string &  stringToParse,
const std::string &  delimiter 
)
static

The predicate should evaluate to true when applied to a separator.

Parameters
[in,out]tokensThe tokens.
stringToParseThe string to parse.
delimiterThe predicate fxn.

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