FUTF8ToTCHAR_Convert::ConvertedLength

Determines the length of the converted string.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

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

Include

#include "Containers/StringConv.h"

Syntax

template<typename SrcBufferType, std::enable_if_t< FPlatformString::IsCharEncodingCompatibleWith< SrcBufferType, FromType >()> *>
static int32 ConvertedLength
(
    const SrcBufferType * Source,
    const int32 SourceLen
)

Remarks

Determines the length of the converted string.

Returns

The length of the string in UTF-16 or UTF-32 characters.

Parameters

Parameter

Description

Source

string to read and determine amount of TCHARs to represent

SourceLen

Length of source string; we will not read past this amount, even if the characters tell us to