Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
String.cpp File Reference
+ Include dependency graph for String.cpp:

Go to the source code of this file.

Classes

struct  UE::Core::String::Private::FCompareCharsCaseSensitive
 
struct  UE::Core::String::Private::FCompareCharsCaseInsensitive
 

Namespaces

namespace  UE
 
namespace  UE::Core
 
namespace  UE::Core::String
 
namespace  UE::Core::String::Private
 
namespace  UE::String
 
namespace  UE::String::Private
 

Macros

#define STARTING_BUFFER_SIZE   512
 

Functions

template<typename CompareType >
bool UE::Core::String::Private::MatchesWildcardRecursive (const TCHAR *Target, int32 TargetLength, const TCHAR *Wildcard, int32 WildcardLength)
 
template<typename CharType >
void AppendCharacters (TArray< TCHAR > &Out, const CharType *Str, int32 Count)
 
template<typename CharType >
FORCEINLINE void UE::String::Private::ConstructFromCString (TArray< TCHAR > &Data, const CharType *Src)
 
template<typename CharType >
FORCEINLINE void UE::String::Private::ConstructWithLength (TArray< TCHAR > &Data, int32 InCount, const CharType *InSrc)
 
template<typename CharType >
FORCEINLINE void UE::String::Private::ConstructWithSlack (TArray< TCHAR > &Data, const CharType *Src, int32 ExtraSlack)
 
template<typename LhsType , typename RhsType >
UE_NODISCARD FORCEINLINE FString UE::String::Private::ConcatFStrings (LhsType &&Lhs, RhsType &&Rhs)
 
template<typename RhsType >
UE_NODISCARD FORCEINLINE FString UE::String::Private::ConcatRangeFString (const TCHAR *Lhs, int32 LhsLen, RhsType &&Rhs)
 
template<typename LhsType >
UE_NODISCARD FORCEINLINE FString UE::String::Private::ConcatFStringRange (LhsType &&Lhs, const TCHAR *Rhs, int32 RhsLen)
 
template<typename RhsType >
UE_NODISCARD FORCEINLINE FString UE::String::Private::ConcatCStringFString (const TCHAR *Lhs, RhsType &&Rhs)
 
template<typename LhsType >
UE_NODISCARD FORCEINLINE FString UE::String::Private::ConcatFStringCString (LhsType &&Lhs, const TCHAR *Rhs)
 
UE_DISABLE_OPTIMIZATION_SHIP void StripNegativeZero (double &InFloat)
 
FArchiveoperator<< (FArchive &Ar, FString &A)
 
template<typename CharType >
int32 HexToBytes (const FString &HexString, uint8 *OutBytes)
 
int32 FindMatchingClosingParenthesis (const FString &TargetString, const int32 StartSearch)
 
FString SlugStringForValidName (const FString &DisplayString, const TCHAR *ReplaceWith)
 

Variables

static const TCHARCharToEscapeSeqMap [][2]
 
static const uint32 MaxSupportedEscapeChars = UE_ARRAY_COUNT(CharToEscapeSeqMap)
 

Macro Definition Documentation

◆ STARTING_BUFFER_SIZE

#define STARTING_BUFFER_SIZE   512

Definition at line 1325 of file String.cpp.

Function Documentation

◆ AppendCharacters()

template<typename CharType >
void AppendCharacters ( TArray< TCHAR > & Out,
const CharType * Str,
int32 Count )

Definition at line 132 of file String.cpp.

◆ FindMatchingClosingParenthesis()

int32 FindMatchingClosingParenthesis ( const FString & TargetString,
const int32 StartSearch = 0 )

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
TargetStringThe string to search in
StartSearchThe index to start searching at
Returns
the index in the given string of the closing parenthesis

Definition at line 1512 of file String.cpp.

+ Here is the call graph for this function:

◆ HexToBytes()

template<typename CharType >
int32 HexToBytes ( const FString & HexString,
uint8 * OutBytes )

Definition at line 1493 of file String.cpp.

◆ operator<<()

FArchive & operator<< ( FArchive & Ar,
FString & A )

Serializes the string.

Parameters
ArReference to the serialization archive.
SReference to the string being serialized.
Returns
Reference to the Archive after serialization.

Definition at line 1363 of file String.cpp.

◆ SlugStringForValidName()

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.

Parameters
DisplayLabelThe label string to convert to an FName
Returns
The slugged string

Definition at line 1555 of file String.cpp.

◆ StripNegativeZero()

UE_DISABLE_OPTIMIZATION_SHIP void StripNegativeZero ( double & InFloat)

Definition at line 955 of file String.cpp.

+ Here is the caller graph for this function:

Variable Documentation

◆ CharToEscapeSeqMap

const TCHAR* CharToEscapeSeqMap[][2]
static
Initial value:
=
{
{ TEXT("\\"), TEXT("\\\\") },
{ TEXT("\n"), TEXT("\\n") },
{ TEXT("\r"), TEXT("\\r") },
{ TEXT("\t"), TEXT("\\t") },
{ TEXT("\'"), TEXT("\\'") },
{ TEXT("\""), TEXT("\\\"") }
}
#define TEXT(x)
Definition Platform.h:1108

Definition at line 1263 of file String.cpp.

◆ MaxSupportedEscapeChars

const uint32 MaxSupportedEscapeChars = UE_ARRAY_COUNT(CharToEscapeSeqMap)
static

Definition at line 1274 of file String.cpp.