UKismetStringLibrary::GetCharacterAsNumber

Gets a single character from the string (as an integer)

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Kismet/KismetStringLibrary.h

Include

#include "Kismet/KismetStringLibrary.h"

Source

/Engine/Source/Runtime/Engine/Private/KismetStringLibrary.cpp

Syntax

static int32 GetCharacterAsNumber
(
    const FString & SourceString,
    int32 Index
)

Remarks

Gets a single character from the string (as an integer)

Returns

The integer value of the character or 0 if index is out of range

Parameters

Parameter

Description

SourceString

The string to convert

Index

Location of the character whose value is required

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