UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
StringView.h File Reference

Go to the source code of this file.

Classes

class  TStringView< CharType >
 

Namespaces

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

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<UE::CCharType CharType>
constexpr int32 UE::Core::Private::StringLength (const CharType *InString)
 
template<typename CharRangeType >
 TStringView (CharRangeType &&Range) -> TStringView< TElementType_T< CharRangeType > >
 
template<typename CharPtrOrRangeType >
requires (!std::is_pointer_v<CharPtrOrRangeType> || TIsCharType_V<std::remove_pointer_t<CharPtrOrRangeType>>)
constexpr auto MakeStringView (const CharPtrOrRangeType &CharPtrOrRange UE_LIFETIMEBOUND) -> decltype(TStringView(CharPtrOrRange))
 
template<UE::CCharType CharType>
constexpr auto MakeStringView (const CharType *CharPtr UE_LIFETIMEBOUND, int32 Size) -> decltype(TStringView(CharPtr, 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)

◆ TEXTVIEW

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

◆ UTF8TEXTVIEW

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

◆ WIDETEXTVIEW

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

Function Documentation

◆ MakeStringView() [1/2]

◆ MakeStringView() [2/2]

template<UE::CCharType CharType>
constexpr auto MakeStringView ( const CharType *CharPtr  UE_LIFETIMEBOUND,
int32  Size 
) -> decltype(TStringView(CharPtr, Size))
inlineconstexpr

◆ operator""_PrivateASV()

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

◆ operator""_PrivateSV()

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

◆ operator""_PrivateU8SV()

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

◆ operator""_PrivateWSV()

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

◆ TStringView()