E-MailRelay
Classes | Namespaces | Functions
gstringview.h File Reference
#include "gdef.h"
#include <algorithm>
#include <stdexcept>
#include <ostream>
#include <string>
#include <cstring>
#include <new>
+ Include dependency graph for gstringview.h:

Go to the source code of this file.

Classes

class  G::string_view
 A class like c++17's std::string_view. More...
 

Namespaces

namespace  G
 Low-level classes.
 
namespace  std
 STL namespace.
 

Functions

string_view G::sv_substr (string_view sv, std::size_t pos, std::size_t count=std::string::npos) noexcept
 
bool G::sv_imatch (string_view, string_view) noexcept
 
std::ostream & G::operator<< (std::ostream &stream, const string_view &sv)
 
void G::swap (string_view &a, string_view b) noexcept
 
bool G::operator== (const std::string &s, string_view sv)
 
bool G::operator== (string_view sv, const std::string &s)
 
bool G::operator!= (const std::string &s, string_view sv)
 
bool G::operator!= (string_view sv, const std::string &s)
 
bool std::operator< (const string &s, G::string_view sv)
 
constexpr G::string_view operator""_sv (const char *p, std::size_t n) noexcept
 
std::string G::sv_to_string (string_view sv)
 

Function Documentation

◆ operator""_sv()

constexpr G::string_view operator""_sv ( const char *  p,
std::size_t  n 
)
constexprnoexcept

Definition at line 144 of file gstringview.h.