openMSX
Classes | Namespaces | Functions
StringOp.hh File Reference
#include "stringsp.hh"
#include <algorithm>
#include <cstdint>
#include <iomanip>
#include <sstream>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
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

struct  StringOp::caseless
 
struct  StringOp::casecmp
 

Namespaces

 StringOp
 

Functions

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 (std::string_view str)
 
double StringOp::stringToDouble (const string &str)
 
bool StringOp::stringToDouble (const string &str, double &result)
 
std::string StringOp::toLower (std::string_view str)
 
bool StringOp::startsWith (std::string_view total, std::string_view part)
 
bool StringOp::startsWith (std::string_view total, char part)
 
bool StringOp::endsWith (std::string_view total, std::string_view part)
 
bool StringOp::endsWith (std::string_view total, char part)
 
void StringOp::trimRight (string &str, const char *chars)
 
void StringOp::trimRight (string &str, char chars)
 
void StringOp::trimRight (std::string_view &str, std::string_view chars)
 
void StringOp::trimRight (std::string_view &str, char chars)
 
void StringOp::trimLeft (string &str, const char *chars)
 
void StringOp::trimLeft (string &str, char chars)
 
void StringOp::trimLeft (std::string_view &str, std::string_view chars)
 
void StringOp::trimLeft (std::string_view &str, char chars)
 
void StringOp::trim (std::string_view &str, std::string_view chars)
 
void StringOp::trim (std::string_view &str, char chars)
 
std::pair< std::string_view, std::string_view > StringOp::splitOnFirst (std::string_view str, std::string_view chars)
 
std::pair< std::string_view, std::string_view > StringOp::splitOnFirst (std::string_view str, char chars)
 
std::pair< std::string_view, std::string_view > StringOp::splitOnLast (std::string_view str, std::string_view chars)
 
std::pair< std::string_view, std::string_view > StringOp::splitOnLast (std::string_view str, char chars)
 
std::vector< std::string_view > StringOp::split (std::string_view str, char chars)
 
std::vector< unsigned > StringOp::parseRange (std::string_view str, unsigned min, unsigned max)
 
unsigned StringOp::fast_stou (std::string_view s)