Kage Studio 0.7.240121
A Simple Free and Open Source 2D Animation Software
Loading...
Searching...
No Matches
StringHelper Class Reference

#include <stringhelper.h>

Static Public Member Functions

static std::string toUpper (std::string p_str)
 
static std::string toLower (std::string p_str)
 
static std::string integerToString (int p_src)
 
static std::string unsignedIntegerToString (unsigned int p_src)
 
static std::string doubleToString (double p_src)
 
static int toInteger (std::string p_str)
 
static unsigned int toUnsignedInteger (std::string p_str)
 
static long toLong (std::string p_str)
 
static double toDouble (std::string p_str)
 
static bool toBoolean (std::string p_str)
 
static std::vector< std::string > split (const std::string &p_source, const std::string &p_delimiter)
 
static std::string trim (std::string p_source)
 
static std::string kHash (std::string par, int p_len=8)
 
static std::string replace (std::string s, std::string const &p_find, std::string const &p_replace)
 
static std::string replaceAll (std::string s, std::string const &p_find, std::string const &p_replace)
 
static bool isScientificNotation (std::string p_value)
 
static bool isNumeric (std::string p_value)
 

Member Function Documentation

◆ doubleToString()

std::string StringHelper::doubleToString ( double p_src)
static
Here is the caller graph for this function:

◆ integerToString()

std::string StringHelper::integerToString ( int p_src)
static
Here is the caller graph for this function:

◆ isNumeric()

bool StringHelper::isNumeric ( std::string p_value)
static
Here is the caller graph for this function:

◆ isScientificNotation()

bool StringHelper::isScientificNotation ( std::string p_value)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ kHash()

std::string StringHelper::kHash ( std::string par,
int p_len = 8 )
static
Here is the caller graph for this function:

◆ replace()

std::string StringHelper::replace ( std::string s,
std::string const & p_find,
std::string const & p_replace )
static
Here is the caller graph for this function:

◆ replaceAll()

std::string StringHelper::replaceAll ( std::string s,
std::string const & p_find,
std::string const & p_replace )
static
Here is the caller graph for this function:

◆ split()

std::vector< std::string > StringHelper::split ( const std::string & p_source,
const std::string & p_delimiter )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toBoolean()

bool StringHelper::toBoolean ( std::string p_str)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toDouble()

double StringHelper::toDouble ( std::string p_str)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toInteger()

int StringHelper::toInteger ( std::string p_str)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toLong()

long StringHelper::toLong ( std::string p_str)
static
Here is the call graph for this function:

◆ toLower()

std::string StringHelper::toLower ( std::string p_str)
static
Here is the caller graph for this function:

◆ toUnsignedInteger()

unsigned int StringHelper::toUnsignedInteger ( std::string p_str)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toUpper()

std::string StringHelper::toUpper ( std::string p_str)
static

◆ trim()

std::string StringHelper::trim ( std::string p_source)
static
Here is the caller graph for this function:

◆ unsignedIntegerToString()

std::string StringHelper::unsignedIntegerToString ( unsigned int p_src)
static
Here is the caller graph for this function:

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