openMSX
Classes | Namespaces | Functions
StringOp.hh File Reference
#include "string_ref.hh"
#include "stringsp.hh"
#include <string>
#include <vector>
#include <set>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <cstdint>
Include dependency graph for StringOp.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  StringOp::Builder
 
struct  StringOp::caseless
 
struct  StringOp::casecmp
 

Namespaces

 StringOp
 

Functions

template<typename T >
std::string StringOp::toString (const T &t)
 
string StringOp::toString (long long a)
 
string StringOp::toString (unsigned long long a)
 
string StringOp::toString (long a)
 
string StringOp::toString (unsigned long a)
 
string StringOp::toString (int a)
 
string StringOp::toString (unsigned a)
 
string StringOp::toString (short a)
 
string StringOp::toString (unsigned short a)
 
string StringOp::toString (char a)
 
string StringOp::toString (signed char a)
 
string StringOp::toString (unsigned char a)
 
string StringOp::toString (bool a)
 
std::string StringOp::toString (const char *s)
 
const std::string & StringOp::toString (const std::string &s)
 
string StringOp::toHexString (unsigned x, unsigned width)
 
int StringOp::stringToInt (const string &str)
 
bool StringOp::stringToInt (const string &str, int &result)
 
unsigned StringOp::stringToUint (const string &str)
 
bool StringOp::stringToUint (const string &str, unsigned &result)
 
uint64_t StringOp::stringToUint64 (const string &str)
 
bool StringOp::stringToBool (string_ref str)
 
double StringOp::stringToDouble (const string &str)
 
bool StringOp::stringToDouble (const string &str, double &result)
 
string StringOp::toLower (string_ref str)
 
bool StringOp::startsWith (string_ref total, string_ref part)
 
bool StringOp::startsWith (string_ref total, char part)
 
bool StringOp::endsWith (string_ref total, string_ref part)
 
bool StringOp::endsWith (string_ref total, char part)
 
void StringOp::trimRight (string &str, const char *chars)
 
void StringOp::trimRight (string &str, char chars)
 
void StringOp::trimRight (string_ref &str, string_ref chars)
 
void StringOp::trimRight (string_ref &str, char chars)
 
void StringOp::trimLeft (string &str, const char *chars)
 
void StringOp::trimLeft (string &str, char chars)
 
void StringOp::trimLeft (string_ref &str, string_ref chars)
 
void StringOp::trimLeft (string_ref &str, char chars)
 
void StringOp::trim (string_ref &str, string_ref chars)
 
void StringOp::trim (string_ref &str, char chars)
 
void StringOp::splitOnFirst (string_ref str, string_ref chars, string_ref &first, string_ref &last)
 
void StringOp::splitOnFirst (string_ref str, char chars, string_ref &first, string_ref &last)
 
void StringOp::splitOnLast (string_ref str, string_ref chars, string_ref &first, string_ref &last)
 
void StringOp::splitOnLast (string_ref str, char chars, string_ref &first, string_ref &last)
 
vector< string_refStringOp::split (string_ref str, char chars)
 
string StringOp::join (const vector< string_ref > &elems, char separator)
 
set< unsigned > StringOp::parseRange (string_ref str, unsigned min, unsigned max)