FDefaultValueHelper

[FDefaultValueHelper](API\Runtime\Core\Misc\FDefaultValueHelper)

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/DefaultValueHelper.h

Include

#include "Misc/DefaultValueHelper.h"

Syntax

class FDefaultValueHelper

Remarks

Functions

Name Description

Public function Static

bool

 

GetParameters

(
    const FString& Source,
    const FString& TypeName,
    FString& OutForm
)

Shell parameters list: " TypeName ( A a, B b ) " -> "A a, B b"

Public function Static

FString

 

GetUnqualifiedEnumValue

(
    const FString& Source
)

Public function Static

bool

 

HasWhitespaces

(
    const FString& Source
)

Public function Static

bool

 

Is

(
    const FString& Source,
    const TCHAR* CompareStr
)

Returns if given strings are equal, ignores initial and final white spaces in Source

Public function Static

bool

 

IsStringValidFloat

(
    const FString& Source
)

Public function Static

bool

 

IsStringValidInteger

(
    const FString& Source
)

Following functions accept c++ style representations of numbers.

Public function Static

bool

 

IsStringValidLinearColor

(
    const FString& Source
)

Accepted form: " %f, %f, %f " or " %f, %f, %f, %f " (alpha is optional)

Public function Static

bool

 

IsStringValidRotator

(
    const FString& Source
)

Accepted form: " %f, %f, %f"

Public function Static

bool

 

IsStringValidVector

(
    const FString& Source
)

Accepted form: " %f, %f, %f"

Public function Static

bool

 

ParseColor

(
    const FString& Source,
    FColor& OutVal
)

Converts a string into a FLinearColor.

Public function Static

bool

 

ParseDouble

(
    const FString& Source,
    double& OutVal
)

Converts a string into a double.

Public function Static

bool

 

ParseFloat

(
    const FString& Source,
    float& OutVal
)

Converts a string into a float.

Public function Static

bool

 

ParseInt

(
    const FString& Source,
    int32& OutVal
)

Converts a string into a int32.

Public function Static

bool

 

ParseInt64

(
    const FString& Source,
    int64& OutVal
)

Converts a string into a int64.

Public function Static

bool

 

ParseLinearColor

(
    const FString& Source,
    FLinearColor& OutVal
)

Converts a string into a FLinearColor.

Public function Static

bool

 

ParseRotator

(
    const FString& Source,
    FRotator& OutVal
)

Converts a string into a FRotator. Accepted form: " %f, %f, %f "

Public function Static

bool

 

ParseVector

(
    const FString& Source,
    FVector& OutVal
)

Converts a string into a FVector. Accepted form: " %f, %f, %f "

Public function Static

bool

 

ParseVector2D

(
    const FString& Source,
    FVector2D& OutVal
)

Converts a string into a FVector. Accepted form: " %f, %f "

Public function Static

bool

 

ParseVector4

(
    const FString& Source,
    FVector4& OutVal
)

Converts a string into a FVector4.

Public function Static

FString

 

RemoveWhitespaces

(
    const FString& Source
)

Public function Static

bool

 

StringFromCppString

(
    const FString& Source,
    const FString& TypeName,
    FString& OutForm
)

Source forms: TypeName( TEXT ("ABC") ), TEXT("ABC"), TypeName("ABC"), "ABC" output form: ABC

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