FName::SplitNameWithCheck

Syntax

static bool SplitNameWithCheck
(
    const WIDECHAR * OldName,
    WIDECHAR * NewName,
    int32 NewNameLen,
    int32 & NewNumber
)

Remarks

Helper function to split an old-style name (Class_Number, ie Rocket_17) into the component parts usable by new-style FNames. Only use results if this function returns true.

Returns

true if the name was split, only then will NewName/NewNumber have valid values

Parameters

Parameter

Description

OldName

Old-style name

NewName

Output string portion of the name/number pair

NewNameLen

Size of NewName buffer (in TCHAR units)

NewNumber

Number portion of the name/number pair

References

Module

Core

Header

Runtime/Core/Public/UObject/NameTypes.h

Source

Runtime/Core/Private/UObject/UnrealNames.cpp