Navigation
API > API/Runtime > API/Runtime/Core
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.
| Name | TCString |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/CString.h |
| Include Path | #include "Misc/CString.h" |
Syntax
template<typename T>
struct TCString
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| CharType | T | Misc/CString.h | |
| TIsCharEncodingCompatibleWithCharType | TIsCharEncodingCompatibleWith< SrcEncoding, CharType > | Misc/CString.h |
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static double Atod
(
const CharType* String |
Atod wrapper | Misc/CString.h | |
static float Atof
(
const CharType* String |
Atof wrapper | Misc/CString.h | |
static int32 Atoi
(
const CharType* String |
Atoi wrapper | Misc/CString.h | |
static int64 Atoi64
(
const CharType* String |
Atoi64 wrapper | Misc/CString.h | |
static int32 GetVarArgs
(
CharType* Dest, |
Helper function to write formatted output using an argument list | Misc/CString.h | |
static bool IsNumeric
(
const CharType* Str |
Returns whether this string contains only numeric characters | Misc/CString.h | |
static bool IsPureAnsi
(
const CharType* Str |
Returns whether this string contains only pure ansi characters | Misc/CString.h | |
static bool IsPureAnsi
(
const CharType* Str, |
Misc/CString.h | ||
static int32 Snprintf
(
CharType* Dest, |
Safe string formatted print. | Misc/CString.h | |
static int32 SnprintfImpl
(
CharType* Dest, |
Misc/CString.h | ||
static const CharType * Spc
(
int32 NumSpaces |
Returns a static string that is filled with a variable number of spaces | Misc/CString.h | |
static int32 Sprintf
(
CharType* Dest, |
Standard string formatted print. | Misc/CString.h | |
static int32 SprintfImpl
(
CharType* Dest, |
Misc/CString.h | ||
static CharType * Strcat
(
CharType(&) Dest, |
Strcat wrapper (templated version to automatically handle static destination array case) | Misc/CString.h | |
static CharType * Strcat
(
CharType* Dest, |
Strcat wrapper | Misc/CString.h | |
static CharType * Strcat
(
CharType* Dest, |
This version was deprecated because Strcat taking a size field does not match the CRT strcat, and on some platforms the size field was being ignored. | Misc/CString.h | |
static CharType * Strchr
(
CharType* String, |
Misc/CString.h | ||
static const CharType * Strchr
(
const CharType* String, |
Strchr wrapper | Misc/CString.h | |
static int32 Strcmp
(
const CharType* String1, |
Strcmp wrapper | Misc/CString.h | |
static CharType * Strcpy
(
CharType* Dest, |
Strcpy wrapper | Misc/CString.h | |
static CharType * Strcpy
(
CharType(&) Dest, |
Strcpy wrapper (templated version to automatically handle static destination array case) | Misc/CString.h | |
static CharType * Strcpy
(
CharType* Dest, |
This version was deprecated because Strcpy taking a size field does not match the CRT strcpy, and on some platforms the size field was being ignored. | Misc/CString.h | |
static int32 Strcspn
(
const CharType* String, |
Strcspn wrapper | Misc/CString.h | |
static const CharType * Strfind
(
const CharType* Str, |
Find string in string, case sensitive, requires non-alphanumeric lead-in. | Misc/CString.h | |
static const CharType * StrfindDelim
(
const CharType* Str, |
Finds string in string, case insensitive, requires the string be surrounded by one the specified delimiters, or the start or end of the string. | Misc/CString.h | |
static int32 Stricmp
(
const CharType* String1, |
Stricmp wrapper | Misc/CString.h | |
static const CharType * Strifind
(
const CharType* Str, |
Find string in string, case insensitive, requires non-alphanumeric lead-in. | Misc/CString.h | |
static const CharType * Stristr
(
const CharType* Str, |
Finds string in string, case insensitive Finds string in string, case insensitive | Misc/CString.h | |
static CharType * Stristr
(
CharType* Str, |
Finds string in string, case insensitive (non-const version) | Misc/CString.h | |
static int32 Strlen
(
const CharType* String |
Strlen wrapper | Misc/CString.h | |
static CharType * Strncat
(
CharType* Dest, |
This version was deprecated because it had a different interpretation of the length argument than CRT strncat. | Misc/CString.h | |
static CharType * StrncatTruncateDest
(
CharType* Dest, |
Concatenate a string with length checking. | Misc/CString.h | |
static CharType * StrncatTruncateSrc
(
CharType* Dest, |
Append at most SrcLen characters from Src to Dest. | Misc/CString.h | |
static int32 Strncmp
(
const CharType* String1, |
Strncmp wrapper | Misc/CString.h | |
static CharType * Strncpy
(
CharType* Dest, |
Copy a string with length checking. Behavior differs from strncpy in that last character is zeroed. | Misc/CString.h | |
static int32 Strnicmp
(
const CharType* String1, |
Strnicmp wrapper | Misc/CString.h | |
static const CharType * Strnistr
(
const CharType* Str, |
Finds string in string, case insensitive | Misc/CString.h | |
static CharType * Strnistr
(
CharType* Str, |
Finds string in string, case insensitive (non-const version) | Misc/CString.h | |
static int32 Strnlen
(
const CharType* String, |
Calculate the length of the string up to the given size. | Misc/CString.h | |
static CharType * Strnstr
(
CharType* Str, |
Finds string in string, case sensitive (non-const version) | Misc/CString.h | |
static const CharType * Strnstr
(
const CharType* Str, |
Finds string in string, case sensitive | Misc/CString.h | |
static CharType * Strrchr
(
CharType* String, |
Misc/CString.h | ||
static const CharType * Strrchr
(
const CharType* String, |
Strrchr wrapper | Misc/CString.h | |
static const CharType * Strrstr
(
const CharType* String, |
Strrstr wrapper | Misc/CString.h | |
static CharType * Strrstr
(
CharType* String, |
Misc/CString.h | ||
static int32 Strspn
(
const CharType* String, |
Strspn wrapper | Misc/CString.h | |
static const CharType * Strstr
(
const CharType* String, |
Strstr wrapper | Misc/CString.h | |
static CharType * Strstr
(
CharType* String, |
Misc/CString.h | ||
static int32 Strtoi
(
const CharType* Start, |
Strtoi wrapper | Misc/CString.h | |
static int64 Strtoi64
(
const CharType* Start, |
Strtoi wrapper | Misc/CString.h | |
static CharType * Strtok
(
CharType* TokenString, |
Strtok wrapper | Misc/CString.h | |
static uint64 Strtoui64
(
const CharType* Start, |
Strtoui wrapper | Misc/CString.h | |
static CharType * Strupr
(
CharType(&) Dest |
Strupr wrapper (templated version to automatically handle static destination array case) | Misc/CString.h | |
static CharType * Strupr
(
CharType* Dest, |
Strupr wrapper | Misc/CString.h | |
static const CharType * Tab
(
int32 NumTabs |
Returns a static string that is filled with a variable number of tabs | Misc/CString.h | |
static bool ToBool
(
const CharType* String |
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 | Misc/CString.h |