Navigation
API > API/Runtime > API/Runtime/Core
Description
Parse the number from the end of a string like Prefix_1.
Number must be non-negative, less than MAX_int32, and not have a leading 0 unless the number is 0. Returns the internal representation of the external number in the string. Example: Prefix_0 returns 1.
| Name | UE::Core::Private::ParseNumberFromName |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/UObject/NameTypes.h |
| Include Path | #include "UObject/NameTypes.h" |
namespace UE
{
namespace Core
{
namespace Private
{
template<typename CharType>
static uint32 UE::Core::Private::ParseNumberFromName
(
const CharType * Name,
int32 & InOutLen
)
}
}
}
Internal value of the number that was parsed, or NAME_NO_NUMBER_INTERNAL if no number was parsed.
Parameters
| Name | Remarks |
|---|---|
| Name | Name to parse the trailing number from. |
| InOutLen | Length of the input name, updated to exclude the _ |