Navigation
API > API/Runtime > API/Runtime/Core
Class takes one type of string and converts it to another. The class includes a chunk of presized memory of the destination type. If the presized array is too small, it mallocs the memory needed and frees on the class going out of scope.
| Name | TStringConversion |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/StringConv.h |
| Include Path | #include "Containers/StringConv.h" |
Syntax
template<typename Converter, int32 DefaultConversionSize>
class TStringConversion :
private Converter,
private TInlineAllocator< 128u >::template ForElementType
Inheritance Hierarchy
- Converter → TStringConversion
- TInlineAllocator< 128u >::template ForElementType → TStringConversion
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Non-copyable, non-movable. | Containers/StringConv.h | ||
TStringConversion
(
const TStringConversion& |
Containers/StringConv.h | ||
TStringConversion
(
const SrcBufferType* Source |
Containers/StringConv.h | ||
TStringConversion
(
const LegacyFromType* Source |
Containers/StringConv.h | ||
TStringConversion
(
FromRangeType&& Source |
Construct from a compatible character range such as TStringView or TStringBuilder. | Containers/StringConv.h | |
TStringConversion
(
const SrcBufferType* Source, |
Containers/StringConv.h | ||
TStringConversion
(
const LegacyFromType* Source, |
Containers/StringConv.h | ||
TStringConversion
(
UE::Core::Private::FFromStrCast, |
Containers/StringConv.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| AllocatorType | TInlineAllocator< DefaultConversionSize >::template ForElementType< typename Converter::ToType > | Containers/StringConv.h | |
| FromType | Converter::FromType | Containers/StringConv.h | |
| LegacyFromType | decltype(StringConv::GetLegacyFromType< Converter >(nullptr)) | Containers/StringConv.h | |
| ToType | Converter::ToType | Containers/StringConv.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Ptr | ToType * | Containers/StringConv.h | ||
| StringLength | int32 | Containers/StringConv.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const ToType * Get () |
Accessor for the converted string. | Containers/StringConv.h | |
int32 Length() |
Length of the converted string. | Containers/StringConv.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Containers/StringConv.h | |||
TStringConversion & operator=
(
const TStringConversion& |
Containers/StringConv.h |