Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
TCString< T > Struct Template Reference

#include <CString.h>

Public Types

typedef T CharType
 

Public Member Functions

FORCEINLINE bool IsPureAnsi (const CharType *Str)
 
FORCEINLINE bool IsPureAnsi (const CharType *Str, const SIZE_T StrLen)
 
FORCEINLINE bool ToBool (const WIDECHAR *Str)
 
FORCEINLINE bool IsPureAnsi (const CharType *Str)
 
FORCEINLINE bool IsPureAnsi (const CharType *Str, const SIZE_T StrLen)
 
FORCEINLINE bool ToBool (const ANSICHAR *Str)
 
FORCEINLINE bool IsPureAnsi (const CharType *Str)
 
FORCEINLINE bool IsPureAnsi (const CharType *Str, const SIZE_T StrLen)
 
FORCEINLINE bool ToBool (const UTF8CHAR *Str)
 

Static Public Member Functions

static FORCEINLINE bool IsPureAnsi (const CharType *Str)
 
static FORCEINLINE bool IsPureAnsi (const CharType *Str, const SIZE_T StrLen)
 
static bool IsNumeric (const CharType *Str)
 
static FORCEINLINE CharTypeStrcpy (CharType *Dest, SIZE_T DestCount, const CharType *Src)
 
static FORCEINLINE CharTypeStrncpy (CharType *Dest, const CharType *Src, int32 MaxLen)
 
template<SIZE_T DestCount>
static FORCEINLINE CharTypeStrcpy (CharType(&Dest)[DestCount], const CharType *Src)
 
static FORCEINLINE CharTypeStrcat (CharType *Dest, SIZE_T DestCount, const CharType *Src)
 
template<SIZE_T DestCount>
static FORCEINLINE CharTypeStrcat (CharType(&Dest)[DestCount], const CharType *Src)
 
static CharTypeStrncat (CharType *Dest, const CharType *Src, int32 MaxLen)
 
static FORCEINLINE CharTypeStrupr (CharType *Dest, SIZE_T DestCount)
 
template<SIZE_T DestCount>
static FORCEINLINE CharTypeStrupr (CharType(&Dest)[DestCount])
 
static FORCEINLINE int32 Strcmp (const CharType *String1, const CharType *String2)
 
static FORCEINLINE int32 Strncmp (const CharType *String1, const CharType *String2, SIZE_T Count)
 
static FORCEINLINE int32 Stricmp (const CharType *String1, const CharType *String2)
 
static FORCEINLINE int32 Strnicmp (const CharType *String1, const CharType *String2, SIZE_T Count)
 
static const CharTypeSpc (int32 NumSpaces)
 
static const CharTypeTab (int32 NumTabs)
 
static const CharTypeStrfind (const CharType *Str, const CharType *Find, bool bSkipQuotedChars=false)
 
static const CharTypeStrifind (const CharType *Str, const CharType *Find, bool bSkipQuotedChars=false)
 
static const CharTypeStrfindDelim (const CharType *Str, const CharType *Find, const CharType *Delim=LITERAL(CharType, " \t,"))
 
static const CharTypeStristr (const CharType *Str, const CharType *Find)
 
static CharTypeStristr (CharType *Str, const CharType *Find)
 
static const CharTypeStrnistr (const CharType *Str, int32 InStrLen, const CharType *Find, int32 FindLen)
 
static CharTypeStrnistr (CharType *Str, int32 InStrLen, const CharType *Find, int32 FindLen)
 
static const CharTypeStrnstr (const CharType *Str, int32 InStrLen, const CharType *Find, int32 FindLen)
 
static CharTypeStrnstr (CharType *Str, int32 InStrLen, const CharType *Find, int32 FindLen)
 
static FORCEINLINE int32 Strlen (const CharType *String)
 
static FORCEINLINE int32 Strnlen (const CharType *String, SIZE_T StringSize)
 
static FORCEINLINE const CharTypeStrstr (const CharType *String, const CharType *Find)
 
static FORCEINLINE CharTypeStrstr (CharType *String, const CharType *Find)
 
static FORCEINLINE const CharTypeStrchr (const CharType *String, CharType c)
 
static FORCEINLINE CharTypeStrchr (CharType *String, CharType c)
 
static FORCEINLINE const CharTypeStrrchr (const CharType *String, CharType c)
 
static FORCEINLINE CharTypeStrrchr (CharType *String, CharType c)
 
static FORCEINLINE const CharTypeStrrstr (const CharType *String, const CharType *Find)
 
static FORCEINLINE CharTypeStrrstr (CharType *String, const CharType *Find)
 
static FORCEINLINE int32 Strspn (const CharType *String, const CharType *Mask)
 
static FORCEINLINE int32 Strcspn (const CharType *String, const CharType *Mask)
 
static FORCEINLINE int32 Atoi (const CharType *String)
 
static FORCEINLINE int64 Atoi64 (const CharType *String)
 
static FORCEINLINE float Atof (const CharType *String)
 
static FORCEINLINE double Atod (const CharType *String)
 
static FORCEINLINE bool ToBool (const CharType *String)
 
static FORCEINLINE int32 Strtoi (const CharType *Start, CharType **End, int32 Base)
 
static FORCEINLINE int64 Strtoi64 (const CharType *Start, CharType **End, int32 Base)
 
static FORCEINLINE uint64 Strtoui64 (const CharType *Start, CharType **End, int32 Base)
 
static FORCEINLINE CharTypeStrtok (CharType *TokenString, const CharType *Delim, CharType **Context)
 
template<typename FmtType , typename... Types>
static int32 Sprintf (CharType *Dest, const FmtType &Fmt, Types... Args)
 
template<typename FmtType , typename... Types>
static int32 Snprintf (CharType *Dest, int32 DestSize, const FmtType &Fmt, Types... Args)
 
static FORCEINLINE int32 GetVarArgs (CharType *Dest, SIZE_T DestSize, const CharType *&Fmt, va_list ArgPtr)
 

Private Types

template<typename SrcEncoding >
using TIsCharEncodingCompatibleWithCharType = TIsCharEncodingCompatibleWith<SrcEncoding, CharType>
 

Private Member Functions

int32 SprintfImpl (CharType *Dest, const CharType *Fmt,...)
 
int32 SnprintfImpl (CharType *Dest, int32 DestSize, const CharType *Fmt,...)
 
int32 SprintfImpl (CharType *Dest, const CharType *Fmt,...)
 
int32 SnprintfImpl (CharType *Dest, int32 DestSize, const CharType *Fmt,...)
 
int32 SprintfImpl (CharType *Dest, const CharType *Fmt,...)
 
int32 SnprintfImpl (CharType *Dest, int32 DestSize, const CharType *Fmt,...)
 

Static Private Member Functions

static int32 VARARGS SprintfImpl (CharType *Dest, const CharType *Fmt,...)
 
static int32 VARARGS SnprintfImpl (CharType *Dest, int32 DestSize, const CharType *Fmt,...)
 

Detailed Description

template<typename T>
struct TCString< T >

Set of basic string utility functions operating on plain C strings. In addition to the wrapped C string API,this struct also contains a set of widely used utility functions that operate on c strings. There is a specialized implementation for ANSICHAR and WIDECHAR strings provided. To access these functionality, the convenience typedefs FCString and FCStringAnsi are provided.

Definition at line 61 of file CString.h.

Member Typedef Documentation

◆ CharType

template<typename T >
typedef T TCString< T >::CharType

Definition at line 63 of file CString.h.

◆ TIsCharEncodingCompatibleWithCharType

template<typename T >
template<typename SrcEncoding >
using TCString< T >::TIsCharEncodingCompatibleWithCharType = TIsCharEncodingCompatibleWith<SrcEncoding, CharType>
private

Definition at line 422 of file CString.h.

Member Function Documentation

◆ Atod()

template<typename T >
FORCEINLINE double TCString< T >::Atod ( const CharType * String)
static

atod wrapper

Definition at line 967 of file CString.h.

◆ Atof()

template<typename T >
FORCEINLINE float TCString< T >::Atof ( const CharType * String)
static

atof wrapper

Definition at line 961 of file CString.h.

◆ Atoi()

template<typename T >
FORCEINLINE int32 TCString< T >::Atoi ( const CharType * String)
static

atoi wrapper

Definition at line 949 of file CString.h.

◆ Atoi64()

template<typename T >
FORCEINLINE int64 TCString< T >::Atoi64 ( const CharType * String)
static

atoi64 wrapper

Definition at line 955 of file CString.h.

◆ GetVarArgs()

template<typename T >
FORCEINLINE int32 TCString< T >::GetVarArgs ( CharType * Dest,
SIZE_T DestSize,
const CharType *& Fmt,
va_list ArgPtr )
static

Helper function to write formatted output using an argument list

Parameters
Dest- destination string buffer
DestSize- size of destination buffer
Fmt- string to print
Args- argument list
Returns
number of characters written or -1 if truncated

Definition at line 998 of file CString.h.

◆ IsNumeric()

template<typename T >
static bool TCString< T >::IsNumeric ( const CharType * Str)
inlinestatic

Returns whether this string contains only numeric characters

Parameters
Str- string that will be checked

Definition at line 76 of file CString.h.

◆ IsPureAnsi() [1/8]

template<typename T >
static FORCEINLINE bool TCString< T >::IsPureAnsi ( const CharType * Str)
static

Returns whether this string contains only pure ansi characters

Parameters
Str- string that will be checked

◆ IsPureAnsi() [2/8]

FORCEINLINE bool TCString< WIDECHAR >::IsPureAnsi ( const CharType * Str)

Definition at line 1008 of file CString.h.

◆ IsPureAnsi() [3/8]

FORCEINLINE bool TCString< ANSICHAR >::IsPureAnsi ( const CharType * Str)

Definition at line 1062 of file CString.h.

◆ IsPureAnsi() [4/8]

FORCEINLINE bool TCString< UTF8CHAR >::IsPureAnsi ( const CharType * Str)

Definition at line 1099 of file CString.h.

◆ IsPureAnsi() [5/8]

template<typename T >
static FORCEINLINE bool TCString< T >::IsPureAnsi ( const CharType * Str,
const SIZE_T StrLen )
static

◆ IsPureAnsi() [6/8]

FORCEINLINE bool TCString< WIDECHAR >::IsPureAnsi ( const CharType * Str,
const SIZE_T StrLen )

Definition at line 1022 of file CString.h.

◆ IsPureAnsi() [7/8]

FORCEINLINE bool TCString< ANSICHAR >::IsPureAnsi ( const CharType * Str,
const SIZE_T StrLen )

Definition at line 1068 of file CString.h.

◆ IsPureAnsi() [8/8]

FORCEINLINE bool TCString< UTF8CHAR >::IsPureAnsi ( const CharType * Str,
const SIZE_T StrLen )

Definition at line 1112 of file CString.h.

◆ Snprintf()

template<typename T >
template<typename FmtType , typename... Types>
static int32 TCString< T >::Snprintf ( CharType * Dest,
int32 DestSize,
const FmtType & Fmt,
Types... Args )
inlinestatic

Safe string formatted print.

Definition at line 442 of file CString.h.

◆ SnprintfImpl() [1/4]

template<typename T >
static int32 VARARGS TCString< T >::SnprintfImpl ( CharType * Dest,
int32 DestSize,
const CharType * Fmt,
... )
staticprivate

◆ SnprintfImpl() [2/4]

int32 TCString< WIDECHAR >::SnprintfImpl ( CharType * Dest,
int32 DestSize,
const CharType * Fmt,
... )
inlineprivate

Definition at line 1044 of file CString.h.

◆ SnprintfImpl() [3/4]

int32 TCString< ANSICHAR >::SnprintfImpl ( CharType * Dest,
int32 DestSize,
const CharType * Fmt,
... )
inlineprivate

Definition at line 1082 of file CString.h.

◆ SnprintfImpl() [4/4]

int32 TCString< UTF8CHAR >::SnprintfImpl ( CharType * Dest,
int32 DestSize,
const CharType * Fmt,
... )
inlineprivate

Definition at line 1133 of file CString.h.

◆ Spc()

template<typename T >
const TCString< T >::CharType * TCString< T >::Spc ( int32 NumSpaces)
static

Returns a static string that is filled with a variable number of spaces

Parameters
NumSpacesNumber of spaces to put into the string, max of 255
Returns
The string of NumSpaces spaces.

Definition at line 485 of file CString.h.

◆ Sprintf()

template<typename T >
template<typename FmtType , typename... Types>
static int32 TCString< T >::Sprintf ( CharType * Dest,
const FmtType & Fmt,
Types... Args )
inlinestatic

Standard string formatted print.

Warning
: make sure code using FCString::Sprintf allocates enough (>= MAX_SPRINTF) memory for the destination buffer

Definition at line 430 of file CString.h.

◆ SprintfImpl() [1/4]

template<typename T >
static int32 VARARGS TCString< T >::SprintfImpl ( CharType * Dest,
const CharType * Fmt,
... )
staticprivate

◆ SprintfImpl() [2/4]

int32 TCString< WIDECHAR >::SprintfImpl ( CharType * Dest,
const CharType * Fmt,
... )
inlineprivate

Definition at line 1036 of file CString.h.

◆ SprintfImpl() [3/4]

int32 TCString< ANSICHAR >::SprintfImpl ( CharType * Dest,
const CharType * Fmt,
... )
inlineprivate

Definition at line 1074 of file CString.h.

◆ SprintfImpl() [4/4]

int32 TCString< UTF8CHAR >::SprintfImpl ( CharType * Dest,
const CharType * Fmt,
... )
inlineprivate

Definition at line 1125 of file CString.h.

◆ Strcat() [1/2]

template<typename T >
FORCEINLINE TCString< T >::CharType * TCString< T >::Strcat ( CharType * Dest,
SIZE_T DestCount,
const CharType * Src )
static

strcat wrapper

Parameters
Dest- destination string to copy to
Destcount- size of Dest in characters
Src- source string
Returns
destination string

Definition at line 794 of file CString.h.

◆ Strcat() [2/2]

template<typename T >
template<SIZE_T DestCount>
static FORCEINLINE CharType * TCString< T >::Strcat ( CharType(&) Dest[DestCount],
const CharType * Src )
inlinestatic

strcat wrapper (templated version to automatically handle static destination array case)

Parameters
Dest- destination string to copy to
Src- source string
Returns
destination string

Definition at line 158 of file CString.h.

◆ Strchr() [1/2]

template<typename T >
FORCEINLINE TCString< T >::CharType * TCString< T >::Strchr ( CharType * String,
CharType c )
static

Definition at line 860 of file CString.h.

◆ Strchr() [2/2]

template<typename T >
FORCEINLINE const TCString< T >::CharType * TCString< T >::Strchr ( const CharType * String,
CharType c )
static

strchr wrapper

Definition at line 854 of file CString.h.

◆ Strcmp()

template<typename T >
FORCEINLINE int32 TCString< T >::Strcmp ( const CharType * String1,
const CharType * String2 )
static

strcmp wrapper

Definition at line 806 of file CString.h.

◆ Strcpy() [1/2]

template<typename T >
FORCEINLINE TCString< T >::CharType * TCString< T >::Strcpy ( CharType * Dest,
SIZE_T DestCount,
const CharType * Src )
static

strcpy wrapper

Parameters
Dest- destination string to copy to
Destcount- size of Dest in characters
Src- source string
Returns
destination string

Definition at line 780 of file CString.h.

◆ Strcpy() [2/2]

template<typename T >
template<SIZE_T DestCount>
static FORCEINLINE CharType * TCString< T >::Strcpy ( CharType(&) Dest[DestCount],
const CharType * Src )
inlinestatic

strcpy wrapper (templated version to automatically handle static destination array case)

Parameters
Dest- destination string to copy to
Src- source string
Returns
destination string

Definition at line 134 of file CString.h.

◆ Strcspn()

template<typename T >
FORCEINLINE int32 TCString< T >::Strcspn ( const CharType * String,
const CharType * Mask )
static

strcspn wrapper

Definition at line 929 of file CString.h.

◆ Strfind()

template<typename T >
const TCString< T >::CharType * TCString< T >::Strfind ( const CharType * Str,
const CharType * Find,
bool bSkipQuotedChars = false )
static

Find string in string, case sensitive, requires non-alphanumeric lead-in.

Definition at line 502 of file CString.h.

◆ StrfindDelim()

template<typename T >
const TCString< T >::CharType * TCString< T >::StrfindDelim ( const CharType * Str,
const CharType * Find,
const CharType * Delim = LITERAL(CharType, " \t,") )
static

Finds string in string, case insensitive, requires the string be surrounded by one the specified delimiters, or the start or end of the string.

Definition at line 612 of file CString.h.

◆ Stricmp()

template<typename T >
FORCEINLINE int32 TCString< T >::Stricmp ( const CharType * String1,
const CharType * String2 )
static

stricmp wrapper

Definition at line 818 of file CString.h.

◆ Strifind()

template<typename T >
const TCString< T >::CharType * TCString< T >::Strifind ( const CharType * Str,
const CharType * Find,
bool bSkipQuotedChars = false )
static

Find string in string, case insensitive, requires non-alphanumeric lead-in.

Definition at line 553 of file CString.h.

◆ Stristr() [1/2]

template<typename T >
static CharType * TCString< T >::Stristr ( CharType * Str,
const CharType * Find )
inlinestatic

Finds string in string, case insensitive (non-const version)

Parameters
StrThe string to look through
FindThe string to find inside Str
Returns
Position in Str if Find was found, otherwise, nullptr. If Find is non-null but empty, returns Str.

Definition at line 273 of file CString.h.

◆ Stristr() [2/2]

template<typename T >
const TCString< T >::CharType * TCString< T >::Stristr ( const CharType * Str,
const CharType * Find )
static

Finds string in string, case insensitive

Parameters
StrThe string to look through
FindThe string to find inside Str
Returns
Position in Str if Find was found, otherwise, nullptr. If Find is non-null but empty, returns Str.

Finds string in string, case insensitive

Parameters
StrThe string to look through
FindThe string to find inside Str
Returns
Position in Str if Find was found, otherwise, NULL. If Find is non-null but empty, returns Str.

Definition at line 660 of file CString.h.

◆ Strlen()

template<typename T >
FORCEINLINE int32 TCString< T >::Strlen ( const CharType * String)
static

strlen wrapper

Definition at line 830 of file CString.h.

◆ Strncat()

template<typename T >
static CharType * TCString< T >::Strncat ( CharType * Dest,
const CharType * Src,
int32 MaxLen )
inlinestatic

Concatenate a string with length checking.

Parameters
Dest- destination buffer to append to
Src- source buffer to copy from
MaxLen- max length of the buffer
Returns
pointer to resulting string buffer

Definition at line 171 of file CString.h.

◆ Strncmp()

template<typename T >
FORCEINLINE int32 TCString< T >::Strncmp ( const CharType * String1,
const CharType * String2,
SIZE_T Count )
static

strncmp wrapper

Definition at line 812 of file CString.h.

◆ Strncpy()

template<typename T >
FORCEINLINE TCString< T >::CharType * TCString< T >::Strncpy ( CharType * Dest,
const CharType * Src,
int32 MaxLen )
static

Copy a string with length checking. Behavior differs from strncpy in that last character is zeroed.

Parameters
Dest- destination buffer to copy to
Src- source buffer to copy from
MaxLen- max length of the buffer (including null-terminator)
Returns
pointer to resulting string buffer

Definition at line 786 of file CString.h.

◆ Strnicmp()

template<typename T >
FORCEINLINE int32 TCString< T >::Strnicmp ( const CharType * String1,
const CharType * String2,
SIZE_T Count )
static

strnicmp wrapper

Definition at line 824 of file CString.h.

◆ Strnistr() [1/2]

template<typename T >
static CharType * TCString< T >::Strnistr ( CharType * Str,
int32 InStrLen,
const CharType * Find,
int32 FindLen )
inlinestatic

Finds string in string, case insensitive (non-const version)

Parameters
StrThe character array to look through
InStrLenThe length of the Str array
FindThe character array to find inside Str
FindLenThe length of the Find array
Returns
Position in Str if Find was found, otherwise, nullptr. If FindLen is 0, returns Str.

Definition at line 293 of file CString.h.

◆ Strnistr() [2/2]

template<typename T >
const TCString< T >::CharType * TCString< T >::Strnistr ( const CharType * Str,
int32 InStrLen,
const CharType * Find,
int32 FindLen )
static

Finds string in string, case insensitive

Parameters
StrThe character array to look through
InStrLenThe length of the Str array
FindThe character array to find inside Str
FindLenThe length of the Find array
Returns
Position in Str if Find was found, otherwise, nullptr. If FindLen is 0, returns Str.

Definition at line 702 of file CString.h.

◆ Strnlen()

template<typename T >
FORCEINLINE int32 TCString< T >::Strnlen ( const CharType * String,
SIZE_T StringSize )
static

Calculate the length of the string up to the given size.

Parameters
StringA possibly-null-terminated string in a character array with a size of at least StringSize.
StringSizeThe maximum number of characters to read from String.
Returns
Length The smaller of StringSize and the number of characters in String before a null character.

Definition at line 836 of file CString.h.

◆ Strnstr() [1/2]

template<typename T >
static CharType * TCString< T >::Strnstr ( CharType * Str,
int32 InStrLen,
const CharType * Find,
int32 FindLen )
inlinestatic

Finds string in string, case sensitive (non-const version)

Parameters
StrThe character array to look through
InStrLenThe length of the Str array
FindThe character array to find inside Str
FindLenThe length of the Find array
Returns
Position in Str if Find was found, otherwise, nullptr. If FindLen is 0, returns Str.

Definition at line 316 of file CString.h.

◆ Strnstr() [2/2]

template<typename T >
const TCString< T >::CharType * TCString< T >::Strnstr ( const CharType * Str,
int32 InStrLen,
const CharType * Find,
int32 FindLen )
static

Finds string in string, case sensitive

Parameters
StrThe character array to look through
InStrLenThe length of the Str array
FindThe character array to find inside Str
FindLenThe length of the Find array
Returns
Position in Str if Find was found, otherwise, nullptr. If FindLen is 0, returns Str.

Definition at line 742 of file CString.h.

◆ Strrchr() [1/2]

template<typename T >
FORCEINLINE TCString< T >::CharType * TCString< T >::Strrchr ( CharType * String,
CharType c )
static

Definition at line 872 of file CString.h.

◆ Strrchr() [2/2]

template<typename T >
FORCEINLINE const TCString< T >::CharType * TCString< T >::Strrchr ( const CharType * String,
CharType c )
static

strrchr wrapper

Definition at line 866 of file CString.h.

◆ Strrstr() [1/2]

template<typename T >
FORCEINLINE TCString< T >::CharType * TCString< T >::Strrstr ( CharType * String,
const CharType * Find )
static

Definition at line 884 of file CString.h.

◆ Strrstr() [2/2]

template<typename T >
FORCEINLINE const TCString< T >::CharType * TCString< T >::Strrstr ( const CharType * String,
const CharType * Find )
static

strrstr wrapper

Definition at line 878 of file CString.h.

◆ Strspn()

template<typename T >
FORCEINLINE int32 TCString< T >::Strspn ( const CharType * String,
const CharType * Mask )
static

strspn wrapper

Definition at line 906 of file CString.h.

◆ Strstr() [1/2]

template<typename T >
FORCEINLINE TCString< T >::CharType * TCString< T >::Strstr ( CharType * String,
const CharType * Find )
static

Definition at line 848 of file CString.h.

◆ Strstr() [2/2]

template<typename T >
FORCEINLINE const TCString< T >::CharType * TCString< T >::Strstr ( const CharType * String,
const CharType * Find )
static

strstr wrapper

Definition at line 842 of file CString.h.

◆ Strtoi()

template<typename T >
FORCEINLINE int32 TCString< T >::Strtoi ( const CharType * Start,
CharType ** End,
int32 Base )
static

strtoi wrapper

Definition at line 973 of file CString.h.

◆ Strtoi64()

template<typename T >
FORCEINLINE int64 TCString< T >::Strtoi64 ( const CharType * Start,
CharType ** End,
int32 Base )
static

strtoi wrapper

Definition at line 979 of file CString.h.

◆ Strtok()

template<typename T >
FORCEINLINE TCString< T >::CharType * TCString< T >::Strtok ( CharType * TokenString,
const CharType * Delim,
CharType ** Context )
static

strtok wrapper

Definition at line 992 of file CString.h.

◆ Strtoui64()

template<typename T >
FORCEINLINE uint64 TCString< T >::Strtoui64 ( const CharType * Start,
CharType ** End,
int32 Base )
static

strtoui wrapper

Definition at line 985 of file CString.h.

◆ Strupr() [1/2]

template<typename T >
FORCEINLINE TCString< T >::CharType * TCString< T >::Strupr ( CharType * Dest,
SIZE_T DestCount )
static

strupr wrapper

Parameters
Dest- destination string to convert
Destcount- size of Dest in characters
Returns
destination string

Definition at line 800 of file CString.h.

◆ Strupr() [2/2]

template<typename T >
template<SIZE_T DestCount>
static FORCEINLINE CharType * TCString< T >::Strupr ( CharType(&) Dest[DestCount])
inlinestatic

strupr wrapper (templated version to automatically handle static destination array case)

Parameters
Dest- destination string to convert
Returns
destination string

Definition at line 200 of file CString.h.

◆ Tab()

template<typename T >
const TCString< T >::CharType * TCString< T >::Tab ( int32 NumTabs)
static

Returns a static string that is filled with a variable number of tabs

Parameters
NumTabsNumber of tabs to put into the string, max of 255
Returns
The string of NumTabs tabs.

Definition at line 492 of file CString.h.

◆ ToBool() [1/4]

FORCEINLINE bool TCString< ANSICHAR >::ToBool ( const ANSICHAR * Str)

Definition at line 1090 of file CString.h.

◆ ToBool() [2/4]

template<typename T >
static FORCEINLINE bool TCString< T >::ToBool ( const CharType * String)
static

Converts a string into a boolean value 1, "True", "Yes", FCoreTexts::True, FCoreTexts::Yes, and non-zero integers become true 0, "False", "No", FCoreTexts::False, FCoreTexts::No, and unparsable values become false

Returns
The boolean value

◆ ToBool() [3/4]

Definition at line 1141 of file CString.h.

◆ ToBool() [4/4]

Definition at line 1052 of file CString.h.


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