Berserk
Public Types | Static Public Member Functions | List of all members
StringUtils Class Reference

Utils to work with default string class. More...

#include <String.hpp>

Public Types

using CharType = char
 

Static Public Member Functions

static float ToFloat (const String &str)
 
static double ToDouble (const String &str)
 
static int32 ToInt32 (const String &str)
 
static int64 ToInt64 (const String &str)
 
static uint32 ToUint32 (const String &str)
 
static uint64 ToUint64 (const String &str)
 
static String From (int value)
 
static String From (unsigned int value)
 
static String From (long value)
 
static String From (unsigned long value)
 
static String Fromf (float value, uint32 precision=5)
 
static String Fromd (double value, uint32 precision=5)
 
static String Fromi32 (int32 value)
 
static String Fromi64 (int64 value)
 
static String Fromu32 (uint32 value)
 
static String Fromu64 (uint64 value)
 
static String Fromb (bool value)
 
static String Fromp (const void *value)
 

Detailed Description

Utils to work with default string class.

Member Typedef Documentation

◆ CharType

using StringUtils::CharType = char

Member Function Documentation

◆ From() [1/4]

String StringUtils::From ( int  value)
static
Returns
Converted value to string

◆ From() [2/4]

String StringUtils::From ( long  value)
static
Returns
Converted value to string

◆ From() [3/4]

String StringUtils::From ( unsigned int  value)
static
Returns
Converted value to string

◆ From() [4/4]

String StringUtils::From ( unsigned long  value)
static
Returns
Converted value to string

◆ Fromb()

String StringUtils::Fromb ( bool  value)
static
Returns
Converted value to string

◆ Fromd()

String StringUtils::Fromd ( double  value,
uint32  precision = 5 
)
static
Returns
Converted value to string

◆ Fromf()

String StringUtils::Fromf ( float  value,
uint32  precision = 5 
)
static
Returns
Converted value to string

◆ Fromi32()

String StringUtils::Fromi32 ( int32  value)
static
Returns
Converted value to string

◆ Fromi64()

String StringUtils::Fromi64 ( int64  value)
static
Returns
Converted value to string

◆ Fromp()

String StringUtils::Fromp ( const void *  value)
static
Returns
Converted value to string

◆ Fromu32()

String StringUtils::Fromu32 ( uint32  value)
static
Returns
Converted value to string

◆ Fromu64()

String StringUtils::Fromu64 ( uint64  value)
static
Returns
Converted value to string

◆ ToDouble()

double StringUtils::ToDouble ( const String str)
static
Returns
Convert string content to value

◆ ToFloat()

BRK_NS_BEGIN float StringUtils::ToFloat ( const String str)
static
Returns
Convert string content to value

◆ ToInt32()

int32 StringUtils::ToInt32 ( const String str)
static
Returns
Convert string content to value

◆ ToInt64()

int64 StringUtils::ToInt64 ( const String str)
static
Returns
Convert string content to value

◆ ToUint32()

uint32 StringUtils::ToUint32 ( const String str)
static
Returns
Convert string content to value

◆ ToUint64()

uint64 StringUtils::ToUint64 ( const String str)
static
Returns
Convert string content to value

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