openMSX
Classes | Functions
string_ref.hh File Reference
#include <string>
#include <iterator>
#include <iosfwd>
#include <cassert>
#include <cstring>
Include dependency graph for string_ref.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  string_ref
 This class implements a subset of the proposal for std::string_ref (proposed for the next c++ standard (c++1y)). More...

Functions

bool operator== (string_ref x, string_ref y)
bool operator< (string_ref x, string_ref y)
bool operator!= (string_ref x, string_ref y)
bool operator> (string_ref x, string_ref y)
bool operator<= (string_ref x, string_ref y)
bool operator>= (string_ref x, string_ref y)
int stoi (string_ref str, string_ref::size_type *idx=nullptr, int base=0)
unsigned long stoul (string_ref str, string_ref::size_type *idx=nullptr, int base=0)
long long stoll (string_ref str, string_ref::size_type *idx=nullptr, int base=0)
std::string operator+ (string_ref x, string_ref y)
std::string operator+ (char x, string_ref y)
std::string operator+ (string_ref x, char y)
std::ostream & operator<< (std::ostream &os, string_ref str)

Function Documentation

bool operator!= ( string_ref  x,
string_ref  y 
)
inline

Definition at line 111 of file string_ref.hh.

std::string operator+ ( string_ref  x,
string_ref  y 
)

Definition at line 195 of file string_ref.cc.

References string_ref::data(), and string_ref::size().

std::string operator+ ( char  x,
string_ref  y 
)

Definition at line 203 of file string_ref.cc.

References string_ref::data(), and string_ref::size().

std::string operator+ ( string_ref  x,
char  y 
)

Definition at line 211 of file string_ref.cc.

References string_ref::data(), and string_ref::size().

bool operator< ( string_ref  x,
string_ref  y 
)

Definition at line 156 of file string_ref.cc.

References string_ref::compare().

std::ostream& operator<< ( std::ostream &  os,
string_ref  str 
)

Definition at line 221 of file string_ref.cc.

References string_ref::data(), and string_ref::size().

bool operator<= ( string_ref  x,
string_ref  y 
)
inline

Definition at line 113 of file string_ref.hh.

bool operator== ( string_ref  x,
string_ref  y 
)

Definition at line 150 of file string_ref.cc.

References string_ref::data(), and string_ref::size().

bool operator> ( string_ref  x,
string_ref  y 
)
inline

Definition at line 112 of file string_ref.hh.

bool operator>= ( string_ref  x,
string_ref  y 
)
inline

Definition at line 114 of file string_ref.hh.

int stoi ( string_ref  str,
string_ref::size_type idx = nullptr,
int  base = 0 
)
long long stoll ( string_ref  str,
string_ref::size_type idx = nullptr,
int  base = 0 
)

Definition at line 182 of file string_ref.cc.

References string_ref::str().

unsigned long stoul ( string_ref  str,
string_ref::size_type idx = nullptr,
int  base = 0 
)

Definition at line 173 of file string_ref.cc.

References string_ref::str().