FString::FString

Create an [FString](API\Runtime\Core\Containers\FString) from a contiguous range of characters, with extra slack at the end of the string

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/UnrealString.h

Include

#include "Containers/UnrealString.h"

Syntax

template<typename CharRangeType, typename TEnableIf< TIsCharRangeNotCArray< CharRangeType >::Value >::Type *>
FString
(
    CharRangeType && Other,
    int32 ExtraSlack
)

Remarks

Create an FString from a contiguous range of characters, with extra slack at the end of the string

Use this constructor for types like FStringView, FStringBuilderBase, TStringBuilder.

Parameters

Parameter

Description

Other

The contiguous character range to copy from

ExtraSlack

The number of extra characters to reserve space for in the new string

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss