Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
StringView.h File Reference
#include "CoreTypes.h"
#include "Containers/StringFwd.h"
#include "HAL/UnrealMemory.h"
#include "Math/NumericLimits.h"
#include "Math/UnrealMathUtility.h"
#include "Misc/Crc.h"
#include "Misc/CString.h"
#include "String/Find.h"
#include "Templates/UnrealTemplate.h"
#include "Traits/ElementType.h"
#include "Traits/IsCharEncodingCompatibleWith.h"
#include "Traits/IsCharType.h"
#include "Traits/IsContiguousContainer.h"
#include <type_traits>
+ Include dependency graph for StringView.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TStringView< CharType >
 

Namespaces

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

Macros

#define TEXTVIEW(str)   TEXT(str##_PrivateSV)
 
#define ANSITEXTVIEW(str)   (str##_PrivateASV)
 
#define WIDETEXTVIEW(str)   PREPROCESSOR_JOIN(WIDETEXT(str), _PrivateWSV)
 
#define UTF8TEXTVIEW(str)   (str##_PrivateU8SV)
 

Functions

template<typename... ArgTypes>
constexpr auto UE::Core::Private::StringViewGetData (ArgTypes &&... Args) -> decltype(GetData(Forward< ArgTypes >(Args)...))
 
template<typename CharRangeType >
 TStringView (CharRangeType &&Range) -> TStringView< TElementType_T< CharRangeType > >
 
template<typename CharPtrOrRangeType >
constexpr auto MakeStringView (CharPtrOrRangeType &&CharPtrOrRange UE_LIFETIMEBOUND) -> decltype(TStringView(Forward< CharPtrOrRangeType >(CharPtrOrRange)))
 
template<typename CharPtrType >
constexpr auto MakeStringView (CharPtrType &&CharPtr UE_LIFETIMEBOUND, int32 Size) -> decltype(TStringView(Forward< CharPtrType >(CharPtr), Size))
 
constexpr FStringView operator""_SV (const TCHAR *String, size_t Size)
 
constexpr FAnsiStringView operator""_ASV (const ANSICHAR *String, size_t Size)
 
constexpr FWideStringView operator""_WSV (const WIDECHAR *String, size_t Size)
 
FUtf8StringView operator""_U8SV (const ANSICHAR *String, size_t Size)
 
constexpr FStringView operator""_PrivateSV (const TCHAR *String, size_t Size)
 
constexpr FAnsiStringView operator""_PrivateASV (const ANSICHAR *String, size_t Size)
 
constexpr FWideStringView operator""_PrivateWSV (const WIDECHAR *String, size_t Size)
 
FUtf8StringView operator""_PrivateU8SV (const ANSICHAR *String, size_t Size)
 

Macro Definition Documentation

◆ ANSITEXTVIEW

#define ANSITEXTVIEW ( str)    (str##_PrivateASV)

Definition at line 537 of file StringView.h.

◆ TEXTVIEW

#define TEXTVIEW ( str)    TEXT(str##_PrivateSV)

Definition at line 535 of file StringView.h.

◆ UTF8TEXTVIEW

#define UTF8TEXTVIEW ( str)    (str##_PrivateU8SV)

Definition at line 539 of file StringView.h.

◆ WIDETEXTVIEW

#define WIDETEXTVIEW ( str)    PREPROCESSOR_JOIN(WIDETEXT(str), _PrivateWSV)

Definition at line 538 of file StringView.h.

Function Documentation

◆ MakeStringView() [1/2]

template<typename CharPtrOrRangeType >
constexpr auto MakeStringView ( CharPtrOrRangeType &&CharPtrOrRange UE_LIFETIMEBOUND) -> decltype(TStringView(Forward<CharPtrOrRangeType>(CharPtrOrRange)))
inlineconstexpr

Definition at line 456 of file StringView.h.

◆ MakeStringView() [2/2]

template<typename CharPtrType >
constexpr auto MakeStringView ( CharPtrType &&CharPtr UE_LIFETIMEBOUND,
int32 Size ) -> decltype(TStringView(Forward<CharPtrType>(CharPtr), Size))
inlineconstexpr

Definition at line 462 of file StringView.h.

◆ operator""_ASV()

constexpr FAnsiStringView operator""_ASV ( const ANSICHAR * String,
size_t Size )
inlineconstexpr

Definition at line 484 of file StringView.h.

◆ operator""_PrivateASV()

constexpr FAnsiStringView operator""_PrivateASV ( const ANSICHAR * String,
size_t Size )
inlineconstexpr

Definition at line 515 of file StringView.h.

◆ operator""_PrivateSV()

constexpr FStringView operator""_PrivateSV ( const TCHAR * String,
size_t Size )
inlineconstexpr

Definition at line 509 of file StringView.h.

◆ operator""_PrivateU8SV()

FUtf8StringView operator""_PrivateU8SV ( const ANSICHAR * String,
size_t Size )
inline

Definition at line 525 of file StringView.h.

◆ operator""_PrivateWSV()

constexpr FWideStringView operator""_PrivateWSV ( const WIDECHAR * String,
size_t Size )
inlineconstexpr

Definition at line 520 of file StringView.h.

◆ operator""_SV()

constexpr FStringView operator""_SV ( const TCHAR * String,
size_t Size )
inlineconstexpr

Definition at line 477 of file StringView.h.

◆ operator""_U8SV()

FUtf8StringView operator""_U8SV ( const ANSICHAR * String,
size_t Size )
inline

Definition at line 496 of file StringView.h.

◆ operator""_WSV()

constexpr FWideStringView operator""_WSV ( const WIDECHAR * String,
size_t Size )
inlineconstexpr

Definition at line 490 of file StringView.h.

◆ TStringView()

template<typename CharRangeType >
TStringView ( CharRangeType && Range) -> TStringView< TElementType_T< CharRangeType > >