TrueReality  v0.1.1912
trUtil::StringUtils::StrCompareFunc Struct Reference

A functor for using std::find or whatever that will compare two strings case sensitive or insensitive. More...

#include <StringUtils.h>

Public Member Functions

 StrCompareFunc (const std::string &mainString, bool caseSensitive=true)
 Constructor. More...
 
bool operator() (const std::string &toCompare)
 

Public Attributes

const std::string & mString
 
bool mCaseSensitive
 

Detailed Description

A functor for using std::find or whatever that will compare two strings case sensitive or insensitive.

Definition at line 243 of file StringUtils.h.

Constructor & Destructor Documentation

◆ StrCompareFunc()

trUtil::StringUtils::StrCompareFunc::StrCompareFunc ( const std::string &  mainString,
bool  caseSensitive = true 
)
inline

Constructor.

Parameters
mainStringThe main string.
caseSensitive(Optional) True to case sensitive.

Definition at line 253 of file StringUtils.h.

Member Function Documentation

◆ operator()()

bool trUtil::StringUtils::StrCompareFunc::operator() ( const std::string &  toCompare)
inline

Definition at line 259 of file StringUtils.h.

References trUtil::StringUtils::StrCompare().

Here is the call graph for this function:

Member Data Documentation

◆ mCaseSensitive

bool trUtil::StringUtils::StrCompareFunc::mCaseSensitive

Definition at line 265 of file StringUtils.h.

◆ mString

const std::string& trUtil::StringUtils::StrCompareFunc::mString

Definition at line 264 of file StringUtils.h.


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