MyGUI 3.4.3
MyGUI_StringUtility.h File Reference
#include "MyGUI_Prerequest.h"
#include <vector>
#include <sstream>

Go to the source code of this file.

Namespaces

namespace  MyGUI
 
namespace  MyGUI::utility
 
namespace  MyGUI::utility::templates
 

Functions

void MyGUI::utility::trim (std::string &_str, bool _left=true, bool _right=true)
 
template<typename T >
std::string MyGUI::utility::toString (T _value)
 
const std::string & MyGUI::utility::toString (const std::string &_value)
 
template<>
std::string MyGUI::utility::toString (std::string_view _value)
 
template<typename... Args>
std::string MyGUI::utility::toString (Args &&... args)
 
template<>
std::string MyGUI::utility::toString< bool > (bool _value)
 
template<typename T >
MyGUI::utility::parseValue (std::string_view _value)
 
template<>
bool MyGUI::utility::parseValue (std::string_view _value)
 
template<>
char MyGUI::utility::parseValue (std::string_view _value)
 
template<>
unsigned char MyGUI::utility::parseValue (std::string_view _value)
 
int MyGUI::utility::parseInt (std::string_view _value)
 
unsigned int MyGUI::utility::parseUInt (std::string_view _value)
 
size_t MyGUI::utility::parseSizeT (std::string_view _value)
 
float MyGUI::utility::parseFloat (std::string_view _value)
 
double MyGUI::utility::parseDouble (std::string_view _value)
 
bool MyGUI::utility::parseBool (std::string_view _value)
 
template<class ReturnType , class InputType = ReturnType>
void MyGUI::utility::templates::split (std::vector< ReturnType > &_ret, const InputType &_source, const InputType &_delims)
 
std::vector< std::string > MyGUI::utility::split (std::string_view _source, std::string_view _delims="\t\n ")
 
template<typename... Args>
bool MyGUI::utility::parseComplex (std::string_view _value, Args &... args)
 
template<>
bool MyGUI::utility::parseComplex< bool > (std::string_view _value, bool &arg)
 
bool MyGUI::utility::startWith (std::string_view _source, std::string_view _value)
 
bool MyGUI::utility::endWith (std::string_view _source, std::string_view _value)