API Documentation
Static Public Member Functions | List of all members
nkScripts::StringUtils Class Referencefinal

Utility for string manipulations. More...

Static Public Member Functions

static nkMemory::BufferCast< nkMemory::StringsplitUserTypeName (nkMemory::StringView userTypeName)
 
static nkMemory::StringView interpreterToString (INTERPRETER value)
 
static INTERPRETER stringToInterpreter (nkMemory::StringView value)
 

Detailed Description

Utility for string manipulations.

Member Function Documentation

◆ splitUserTypeName()

static nkMemory::BufferCast<nkMemory::String> nkScripts::StringUtils::splitUserTypeName ( nkMemory::StringView  userTypeName)
static

Allows to split a string into smaller strings, meant for type name parsing. Will split members separated by "::".

Parameters
userTypeNameThe type name to split.
Returns
The split typename.

◆ interpreterToString()

static nkMemory::StringView nkScripts::StringUtils::interpreterToString ( INTERPRETER  value)
static

Converts an interpreter enum value translated in a string.

Parameters
valueThe enum value to convert.
Returns
The string attached to the enum value.

◆ stringToInterpreter()

static INTERPRETER nkScripts::StringUtils::stringToInterpreter ( nkMemory::StringView  value)
static

Converts a string to a corresponding enum value.

Parameters
valueThe string to convert.
Returns
The enum value associated to given string.

The documentation for this class was generated from the following file: