FGenericPlatformString::ConvertedLength

Returns the required buffer length for the [Src, Src+SrcSize) string when converted to the DestChar encoding.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformString.h

Include

#include "GenericPlatform/GenericPlatformString.h"

Syntax

template<typename DestEncoding, typename SourceEncoding>
static TEnableIf< TIsFixedWidthEncoding< SourceEncoding >::Value &&TIsFixedWidthEncoding< DestEncoding >::Value, int32 >::Type ConvertedLength
(
    const SourceEncoding * Src,
    int32 SrcSize
)

Remarks

Returns the required buffer length for the [Src, Src+SrcSize) string when converted to the DestChar encoding. The Src range should contain a null terminator if a null terminator is required in the output.

Returns

The number of DestChar elements that Src will be converted into.

Parameters

Parameter

Description

Src

The start of the string to convert.

SrcSize

The number of Src elements to convert.

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