![]() |
Gorgon Game Engine
|
Accepts all input and tries to convert using in-library functions. More...
Public Types | |
using | Type = T_ |
Public Member Functions | |
bool | AllowErase (std::string, int, std::string) const |
Checks if given number of characters can be erased from before. More... | |
bool | AllowInsert (std::string, std::string, std::string) const |
Checks if given string can be inserted between start and end. More... | |
bool | AllowReplace (std::string, int, std::string, std::string) const |
Checks if given number of characters can be replace with insert at the end of before. More... | |
Type | From (std::string text) const |
Converts the given string to the type. If input is not valid, return initial value. More... | |
bool | IsValid (std::string) const |
Checks if the given string is valid. More... | |
std::string | ToString (const Type &value) const |
Converts the given value to string. More... | |
Accepts all input and tries to convert using in-library functions.
using Type = T_ |
bool AllowErase | ( | std::string | , |
int | , | ||
std::string | |||
) | const |
Checks if given number of characters can be erased from before.
bool AllowInsert | ( | std::string | , |
std::string | , | ||
std::string | |||
) | const |
Checks if given string can be inserted between start and end.
bool AllowReplace | ( | std::string | , |
int | , | ||
std::string | , | ||
std::string | |||
) | const |
Checks if given number of characters can be replace with insert at the end of before.
Type From | ( | std::string | text | ) | const |
Converts the given string to the type. If input is not valid, return initial value.
bool IsValid | ( | std::string | ) | const |
Checks if the given string is valid.
std::string ToString | ( | const Type & | value | ) | const |
Converts the given value to string.
References Gorgon::String::From().