StringUnit

Engine/source/core/strings/stringUnit.cpp

These functions are used for chunking up strings by delimiter.

More...

Public Variables

char

Public Functions

const char *
getUnit(const char * string, U32 index, const char * set, char * buffer, U32 bufferSize)
getUnitCount(const char * string, const char * set)
const char *
getUnits(const char * string, S32 startIndex, S32 endIndex, const char * set)
const char *
removeUnit(const char * string, U32 index, const char * set)
const char *
setUnit(const char * string, U32 index, const char * replace, const char * set)

Detailed Description

These functions are used for chunking up strings by delimiter.

Especially useful for handling TorqueScript space-delimited fields

Public Variables

char _returnBuffer [2048]

Public Functions

getUnit(const char * string, U32 index, const char * set, char * buffer, U32 bufferSize)

getUnitCount(const char * string, const char * set)

getUnits(const char * string, S32 startIndex, S32 endIndex, const char * set)

removeUnit(const char * string, U32 index, const char * set)

setUnit(const char * string, U32 index, const char * replace, const char * set)