"L. Spiro Engine"
|
An array of strings with some useful additions.. More...
#include <LSTLStringListBase.h>
Public Member Functions | |
LSBOOL LSE_CALL | MakeFromUtf8 (const char *_pcText, LSUINT32 _ui32Len, LSBOOL _bKeepNewLines=false) |
_tStringType LSE_CALL | ToString (LSBOOL _bAddNewLines) |
template<typename _tCharType > | |
LSBOOL LSE_CALL | MakeByTokenizing (const _tCharType *_ptString, LSUINT32 _ui32Length, _tCharType _tTokenizer) |
An array of strings with some useful additions..
Class CStringListBase Description: An array of strings with some useful additions..
LSBOOL LSE_CALL lstl::CStringListBase< _tStringType >::MakeByTokenizing | ( | const _tCharType * | _ptString, |
LSUINT32 | _ui32Length, | ||
_tCharType | _tTokenizer | ||
) | [inline] |
Creates a string array by tokenizing the given character array. If the tokenizer appears twice in a row within the input string, an empty string entry is added to the string array.
_ptString | Pointer to an array of characters to be tokenized. The array is not considered to be in any specific UTF format, and the string is tokenized on a per-character basis. |
_ui32Length | Length, in characters, of the array to which _ptString points. |
_tTokenizer | Character by which to tokenize the string. |
LSBOOL LSE_CALL lstl::CStringListBase< _tStringType >::MakeFromUtf8 | ( | const char * | _pcText, |
LSUINT32 | _ui32Len, | ||
LSBOOL | _bKeepNewLines = false |
||
) | [inline] |
Create a string list in which each line of the given text is a new string in the array. New-line characters may optionally be discarded.
is considered the only new-line character, however is stripped as well if stripping is requested.
_pcText | The text to be converted to a multi-string list. |
_ui32Len | Length of the input string to which _pcText points. |
_bKeepNewLines | If true, new-line characters and are kept. |
_tStringType LSE_CALL lstl::CStringListBase< _tStringType >::ToString | ( | LSBOOL | _bAddNewLines | ) | [inline] |
Create a single string from this array of strings. The final string is the result of appending all of the strings in this list to each other. New-line characters may optionally be added between strings. New-line characters consist of
here.
_bAddNewLines | If true, the new-line combo is inserted between strings when creating the final string. |