Ark Server API (ASA) - Wiki
|
#include "API/UE/CoreTypes.h"
#include "API/UE/Misc/VarArgs.h"
#include "API/UE/Misc/OutputDevice.h"
#include "API/UE/Misc/AssertionMacros.h"
#include "API/UE/HAL/UnrealMemory.h"
#include "API/UE/Templates/IsArithmetic.h"
#include "API/UE/Templates/IsArray.h"
#include "API/UE/Templates/UnrealTypeTraits.h"
#include "API/UE/Templates/UnrealTemplate.h"
#include "API/UE/Math/NumericLimits.h"
#include "API/UE/Containers/Array.h"
#include "API/UE/Misc/CString.h"
#include "API/UE/Misc/Crc.h"
#include "API/UE/Math/UnrealMathUtility.h"
#include "API/UE/Templates/Invoke.h"
#include "API/UE/Templates/IsValidVariadicFunctionArg.h"
#include "API/UE/Templates/AndOrNot.h"
#include "API/UE/Templates/IsArrayOrRefOfTypeByPredicate.h"
#include "API/UE/Templates/TypeHash.h"
#include "API/UE/Templates/IsFloatingPoint.h"
#include "API/UE/Traits/IsCharType.h"
#include "API/UE/Traits/IsCharEncodingCompatibleWith.h"
#include "API/UE/Traits/IsCharEncodingSimplyConvertibleTo.h"
#include <type_traits>
#include "API/UE/Containers/StringConv.h"
#include "Logger/Logger.h"
#include "fmt/format.h"
#include "Misc/StringFormatArg.h"
Go to the source code of this file.
Classes | |
class | FString |
struct | FString::TIsRangeOfCharType< CharRangeType > |
struct | FString::TIsRangeOfTCHAR< CharRangeType > |
struct | TIsZeroConstructType< FString > |
struct | TTypeToString< T > |
struct | TTypeFromString< T > |
class | FStringOutputDevice |
struct | TIsContiguousContainer< FStringOutputDevice > |
class | FStringOutputDeviceCountLines |
struct | TIsContiguousContainer< FStringOutputDeviceCountLines > |
struct | FTextRange |
Namespaces | |
namespace | StringConv |
Typedefs | |
typedef TMap< FString, FStringFormatArg > | FStringFormatNamedArguments |
typedef TArray< FStringFormatArg > | FStringFormatOrderedArguments |
Definition at line 41 of file UnrealString.h.
Definition at line 42 of file UnrealString.h.
|
inline |
Convert bytes to uppercase hex string
Definition at line 2551 of file UnrealString.h.
Append bytes as uppercase hex string
|
inline |
Convert bytes to lowercase hex string
Definition at line 2559 of file UnrealString.h.
Append bytes as lowercase hex string
|
inline |
Convert an array of bytes to a TCHAR
In | byte array values to convert |
Count | number of bytes to convert |
Definition at line 2484 of file UnrealString.h.
Convert a byte to hex
In | byte value to convert |
Result | out hex value output |
Definition at line 2539 of file UnrealString.h.
|
inline |
Checks if the TChar is a valid hex character
Char | The character |
Definition at line 2571 of file UnrealString.h.
Expose_TNameOf | ( | FString | ) | & |
Definition at line 2461 of file UnrealString.h.
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.
TargetString | The string to search in |
StartSearch | The index to start searching at |
Definition at line 1512 of file String.cpp.
Definition at line 2468 of file UnrealString.h.
|
inline |
|
inline |
Definition at line 2635 of file UnrealString.h.
|
inline |
Definition at line 2634 of file UnrealString.h.
Definition at line 2627 of file UnrealString.h.
Definition at line 2628 of file UnrealString.h.
Definition at line 2629 of file UnrealString.h.
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 FString or const TCHAR* Generic code that uses ToString should assign to an FString or forward along to other functions that accept types that are also implicitly convertible to FString
Implement custom functionality externally. Covert a string buffer to intrinsic types
Definition at line 2626 of file UnrealString.h.
Definition at line 2631 of file UnrealString.h.
Definition at line 2632 of file UnrealString.h.
Definition at line 2633 of file UnrealString.h.
Definition at line 2630 of file UnrealString.h.
UE_NODISCARD FString LexToSanitizedString | ( | const T & | Value | ) |
Helper template to convert to sanitized strings
Definition at line 2672 of file UnrealString.h.
|
inline |
Overloaded for doubles
Definition at line 2684 of file UnrealString.h.
|
inline |
Overloaded for floats
Definition at line 2678 of file UnrealString.h.
|
inline |
Definition at line 2655 of file UnrealString.h.
UE_NODISCARD TEnableIf< TIsCharType< CharType >::Value, FString >::Type LexToString | ( | const CharType * | Ptr | ) |
Definition at line 2650 of file UnrealString.h.
UE_NODISCARD FORCEINLINE FString LexToString | ( | const FString & | Str | ) |
Definition at line 2665 of file UnrealString.h.
UE_NODISCARD TEnableIf< TIsArithmetic< T >::Value, FString >::Type LexToString | ( | const T & | Value | ) |
Convert numeric types to a string
Definition at line 2642 of file UnrealString.h.
UE_NODISCARD FORCEINLINE FString LexToString | ( | FString && | Str | ) |
Definition at line 2660 of file UnrealString.h.
|
static |
Try and parse a bool - always returns true
Definition at line 2728 of file UnrealString.h.
|
static |
Parse a string into this type, returning whether it was successful Specialization for arithmetic types
Definition at line 2693 of file UnrealString.h.
|
inline |
Returns Char value of Nibble
Definition at line 2525 of file UnrealString.h.
ARK_API FString SlugStringForValidName | ( | const FString & | DisplayString, |
const TCHAR * | ReplaceWith = TEXT("") ) |
Given a display label string, generates an FString slug that only contains valid characters for an FName. For example, "[MyObject]: Object Label" becomes "MyObjectObjectLabel" FName slug.
DisplayLabel | The label string to convert to an FName |
Definition at line 1555 of file String.cpp.
Convert FString of bytes into the byte array.
String | The FString of byte values |
OutBytes | Ptr to memory must be preallocated large enough |
MaxBufferSize | Max buffer size of the OutBytes array, to prevent overflow |
Definition at line 2510 of file UnrealString.h.
|
inline |
Convert a TChar to equivalent hex value as a uint8
Hex | The character |
Definition at line 2581 of file UnrealString.h.
FORCEINLINE const TCHAR * ToCStr | ( | const FString & | Str | ) |
FORCEINLINE const TCHAR * ToCStr | ( | const TCHAR * | Ptr | ) |
Gets a non-owning TCHAR pointer from a string type.
Can be used generically to get a const TCHAR*, when it is not known if the argument is a TCHAR* or an FString:
template <typename T> void LogValue(const T& Val) { Logf(TEXT("Value: %s"), ToCStr(LexToString(Val))); }
Definition at line 2759 of file UnrealString.h.