MCRO
C++23 utilities for Unreal Engine.
Loading...
Searching...
No Matches
Mcro::Text Namespace Reference

Concepts

concept  CStringView
 
concept  CStringOrView
 
concept  CStringOrViewOrName
 
concept  CStdStringOrViewUtf8
 
concept  CStdStringOrViewWide
 
concept  CStdStringOrView
 
concept  CStdStringOrViewInvariant
 

Typedefs

using FUtf16StringView = TStringView<UTF16CHAR>
 
using FUtf32StringView = TStringView<UTF32CHAR>
 
using FStdString = std::wstring
 
using FStdStringView = std::wstring_view
 

Functions

MCRO_API FStringView UnrealView (FStdStringView const &stdStr)
 
MCRO_API FUtf8StringView UnrealViewUtf8 (std::string_view const &stdStr)
 
MCRO_API FUtf16StringView UnrealViewUtf16 (std::wstring_view const &stdStr)
 
MCRO_API FStdStringView StdView (FString const &unrealStr)
 
MCRO_API FStdStringView StdView (FStringView const &unrealStr)
 
MCRO_API std::string_view StdView (FUtf8StringView const &unrealStr)
 
MCRO_API std::wstring_view StdView (FUtf16StringView const &unrealStr)
 
MCRO_API FString UnrealCopy (FStdStringView const &stdStr)
 
MCRO_API FString UnrealConvert (std::string_view const &stdStr)
 
MCRO_API FString UnrealConvert (std::wstring_view const &stdStr)
 
MCRO_API FName UnrealNameCopy (FStdStringView const &stdStr)
 
MCRO_API FName UnrealNameConvert (std::string_view const &stdStr)
 
MCRO_API FName UnrealNameConvert (std::wstring_view const &stdStr)
 
MCRO_API FStdString StdCopy (FStringView const &unrealStr)
 
MCRO_API FStdString StdCopy (FName const &unrealStr)
 
MCRO_API std::string StdConvertUtf8 (FStringView const &unrealStr)
 
MCRO_API std::wstring StdConvertWide (FStringView const &unrealStr)
 
MCRO_API std::string StdConvertUtf8 (FStdStringView const &stdStr)
 
MCRO_API std::wstring StdConvertWide (FStdStringView const &stdStr)
 
MCRO_API std::string StdConvertUtf8 (FName const &unrealName)
 
MCRO_API std::wstring StdConvertWide (FName const &unrealName)
 
template<CSameAs< FString >... Args>
FString Join (const TCHAR *separator, Args... args)
 
MCRO_API FString DynamicPrintf (const TCHAR *fmt,...)
 

Typedef Documentation

◆ FStdString

using Mcro::Text::FStdString = std::wstring

Definition at line 30 of file Text.h.

◆ FStdStringView

using Mcro::Text::FStdStringView = std::wstring_view

Definition at line 31 of file Text.h.

◆ FUtf16StringView

using Mcro::Text::FUtf16StringView = TStringView<UTF16CHAR>

Definition at line 23 of file Text.h.

◆ FUtf32StringView

using Mcro::Text::FUtf32StringView = TStringView<UTF32CHAR>

Definition at line 24 of file Text.h.

Function Documentation

◆ DynamicPrintf()

MCRO_API FString Mcro::Text::DynamicPrintf ( const TCHAR * fmt,
... )

Copy of FString::PrintfImpl but not private so it can work with strings which were not literals

◆ Join()

template<CSameAs< FString >... Args>
FString Mcro::Text::Join ( const TCHAR * separator,
Args... args )

Definition at line 83 of file Text.h.

◆ StdConvertUtf8() [1/3]

MCRO_API std::string Mcro::Text::StdConvertUtf8 ( FName const & unrealName)

◆ StdConvertUtf8() [2/3]

MCRO_API std::string Mcro::Text::StdConvertUtf8 ( FStdStringView const & stdStr)

◆ StdConvertUtf8() [3/3]

MCRO_API std::string Mcro::Text::StdConvertUtf8 ( FStringView const & unrealStr)

◆ StdConvertWide() [1/3]

MCRO_API std::wstring Mcro::Text::StdConvertWide ( FName const & unrealName)

◆ StdConvertWide() [2/3]

MCRO_API std::wstring Mcro::Text::StdConvertWide ( FStdStringView const & stdStr)

◆ StdConvertWide() [3/3]

MCRO_API std::wstring Mcro::Text::StdConvertWide ( FStringView const & unrealStr)

◆ StdCopy() [1/2]

MCRO_API FStdString Mcro::Text::StdCopy ( FName const & unrealStr)

◆ StdCopy() [2/2]

MCRO_API FStdString Mcro::Text::StdCopy ( FStringView const & unrealStr)

◆ StdView() [1/4]

MCRO_API FStdStringView Mcro::Text::StdView ( FString const & unrealStr)

◆ StdView() [2/4]

MCRO_API FStdStringView Mcro::Text::StdView ( FStringView const & unrealStr)

◆ StdView() [3/4]

MCRO_API std::wstring_view Mcro::Text::StdView ( FUtf16StringView const & unrealStr)

◆ StdView() [4/4]

MCRO_API std::string_view Mcro::Text::StdView ( FUtf8StringView const & unrealStr)

◆ UnrealConvert() [1/2]

MCRO_API FString Mcro::Text::UnrealConvert ( std::string_view const & stdStr)

◆ UnrealConvert() [2/2]

MCRO_API FString Mcro::Text::UnrealConvert ( std::wstring_view const & stdStr)

◆ UnrealCopy()

MCRO_API FString Mcro::Text::UnrealCopy ( FStdStringView const & stdStr)

◆ UnrealNameConvert() [1/2]

MCRO_API FName Mcro::Text::UnrealNameConvert ( std::string_view const & stdStr)

◆ UnrealNameConvert() [2/2]

MCRO_API FName Mcro::Text::UnrealNameConvert ( std::wstring_view const & stdStr)

◆ UnrealNameCopy()

MCRO_API FName Mcro::Text::UnrealNameCopy ( FStdStringView const & stdStr)

◆ UnrealView()

MCRO_API FStringView Mcro::Text::UnrealView ( FStdStringView const & stdStr)

◆ UnrealViewUtf16()

MCRO_API FUtf16StringView Mcro::Text::UnrealViewUtf16 ( std::wstring_view const & stdStr)

◆ UnrealViewUtf8()

MCRO_API FUtf8StringView Mcro::Text::UnrealViewUtf8 ( std::string_view const & stdStr)