Go to the source code of this file.
|
| UE_STRING_CHARTYPE * | GetData (UE_STRING_CLASS &) |
| |
| const UE_STRING_CHARTYPE * | GetData (const UE_STRING_CLASS &) |
| |
| int32 | GetNum (const UE_STRING_CLASS &String) |
| |
| CORE_API void | BytesToHex (const uint8 *Bytes, int32 NumBytes, UE_STRING_CLASS &Out) |
| |
| CORE_API void | BytesToHexLower (const uint8 *Bytes, int32 NumBytes, UE_STRING_CLASS &Out) |
| |
| CORE_API int32 | HexToBytes (const UE_STRING_CLASS &HexString, uint8 *OutBytes) |
| |
| void | LexFromString (int8 &OutValue, const UE_STRING_CHARTYPE *Buffer) |
| |
| void | LexFromString (int16 &OutValue, const UE_STRING_CHARTYPE *Buffer) |
| |
| void | LexFromString (int32 &OutValue, const UE_STRING_CHARTYPE *Buffer) |
| |
| void | LexFromString (int64 &OutValue, const UE_STRING_CHARTYPE *Buffer) |
| |
| void | LexFromString (uint8 &OutValue, const UE_STRING_CHARTYPE *Buffer) |
| |
| void | LexFromString (uint16 &OutValue, const UE_STRING_CHARTYPE *Buffer) |
| |
| void | LexFromString (uint32 &OutValue, const UE_STRING_CHARTYPE *Buffer) |
| |
| void | LexFromString (uint64 &OutValue, const UE_STRING_CHARTYPE *Buffer) |
| |
| void | LexFromString (float &OutValue, const UE_STRING_CHARTYPE *Buffer) |
| |
| void | LexFromString (double &OutValue, const UE_STRING_CHARTYPE *Buffer) |
| |
| void | LexFromString (bool &OutValue, const UE_STRING_CHARTYPE *Buffer) |
| |
| void | LexFromString (UE_STRING_CLASS &OutValue, const UE_STRING_CHARTYPE *Buffer) |
| |
| template<UE::CArithmetic T> |
| bool | LexTryParseString (T &OutValue, const UE_STRING_CHARTYPE *Buffer) |
| |
| bool | LexTryParseString (bool &OutValue, const UE_STRING_CHARTYPE *Buffer) |
| |
| template<typename StringType = FString> |
| UE_FORCEINLINE_HINT StringType | LexToString (UE_STRING_CLASS &&Str) |
| |
| template<typename StringType = FString> |
| UE_FORCEINLINE_HINT StringType | LexToString (const UE_STRING_CLASS &Str) |
| |
| UE_FORCEINLINE_HINT const UE_STRING_CLASS::ElementType * | ToCStr (const UE_STRING_CLASS &Str) |
| |
| CORE_API int32 | FindMatchingClosingParenthesis (const UE_STRING_CLASS &TargetString, const int32 StartSearch=0) |
| |
| CORE_API UE_STRING_CLASS | SlugStringForValidName (const UE_STRING_CLASS &DisplayString, const TCHAR *ReplaceWith=TEXT("")) |
| |
◆ UE_INCLUDETOOL_IGNORE_INCONSISTENT_STATE
| #define UE_INCLUDETOOL_IGNORE_INCONSISTENT_STATE |
◆ FormatNamedArguments
◆ FStringFormatOrderedArguments
◆ BytesToHex()
Append bytes as uppercase hex string
◆ BytesToHexLower()
Append bytes as lowercase hex string
◆ FindMatchingClosingParenthesis()
A helper function to find closing parenthesis that matches the first open parenthesis found. The open parenthesis referred to must be at or further up from the start index.
- Parameters
-
| TargetString | The string to search in |
| StartSearch | The index to start searching at |
- Returns
- the index in the given string of the closing parenthesis
◆ GetData() [1/2]
| const UE_STRING_CLASS::ElementType * GetData |
( |
const UE_STRING_CLASS & |
String | ) |
|
|
inline |
◆ GetData() [2/2]
◆ GetNum()
◆ HexToBytes()
Convert a string of Hex digits into the byte array.
- Parameters
-
| HexString | The string of Hex values |
| OutBytes | Ptr to memory must be preallocated large enough |
- Returns
- The number of bytes copied
◆ LexFromString() [1/12]
◆ LexFromString() [2/12]
◆ LexFromString() [3/12]
◆ LexFromString() [4/12]
◆ LexFromString() [5/12]
◆ LexFromString() [6/12]
◆ LexFromString() [7/12]
Generalized API to convert something to a string. Function named after the (deprecated) Lex namespace, which was deprecated because introducing customization points in a nested namespace didn't work in generic code because it foiled 2-phase template instantiating compilers, which would bind to the qualified name (LexToString) in the first phase, preventing future overloads defined in later headers to be considered for binding. Expected functions in this namespace are as follows: bool LexTryParseString(T& OutValue, const TCHAR* Buffer); void LexFromString(T& OutValue, const TCHAR* Buffer); <implicitly convertible to string> LexToString(T); ^– Generally this means it can return either a string or const TCHAR* Generic code that uses ToString should assign to a string or forward along to other functions that accept types that are also implicitly convertible to a string
Implement custom functionality externally. Convert a string buffer to intrinsic types
◆ LexFromString() [8/12]
◆ LexFromString() [9/12]
◆ LexFromString() [10/12]
◆ LexFromString() [11/12]
◆ LexFromString() [12/12]
◆ LexToString() [1/2]
◆ LexToString() [2/2]
◆ LexTryParseString() [1/2]
Try and parse a bool - always returns true
◆ LexTryParseString() [2/2]
Parse a string into this type, returning whether it was successful Specialization for arithmetic types
◆ SlugStringForValidName()
Given a display label string, generates a slug string that only contains valid characters for an FName. For example, "[MyObject]: Object Label" becomes "MyObjectObjectLabel" FName slug.
- Parameters
-
| DisplayLabel | The label string to convert to an FName |
- Returns
- The slugged string
◆ ToCStr()
Gets a non-owning character pointer from a string type.
Can be used generically to get a const char pointer, when it is not known if the argument is a char pointer or a string:
template <typename T> void LogValue(const T& Val) { Logf(TEXT("Value: %s"), ToCStr(LexToString(Val))); }