KSS Utility
C++ general utilities
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
substring.hpp File Reference

Write-through substring. More...

#include <algorithm>
#include <memory>
#include <stdexcept>
#include <string>
#include "add_rel_ops.hpp"
#include "utility.hpp"

Go to the source code of this file.

Classes

class  kss::util::strings::SubString< Char, Traits, Alloc >
 Write-through substring. More...
 

Namespaces

 kss
 All Klassen Software Solutions libraries begin with this namespace.
 
 kss::util
 General utility methods that don't fit into any of the other categories.
 
 kss::util::strings
 Items related to string handling.
 

Typedefs

typedef SubString< char,
std::char_traits< char >
, std::allocator< char > > 
kss::util::strings::substring_t
 
typedef SubString< wchar_t,
std::char_traits< wchar_t >
, std::allocator< wchar_t > > 
kss::util::strings::wsubstring_t
 

Functions

template<class Char , class Traits , class Alloc >
bool kss::util::strings::operator== (const SubString< Char, Traits, Alloc > &lhs, const std::basic_string< Char, Traits, Alloc > &rhs) noexcept
 
template<class Char , class Traits , class Alloc >
bool kss::util::strings::operator== (const std::basic_string< Char, Traits, Alloc > &lhs, const SubString< Char, Traits, Alloc > &rhs) noexcept
 
template<class Char , class Traits , class Alloc >
bool kss::util::strings::operator< (const SubString< Char, Traits, Alloc > &lhs, const std::basic_string< Char, Traits, Alloc > &rhs) noexcept
 
template<class Char , class Traits , class Alloc >
bool kss::util::strings::operator< (const std::basic_string< Char, Traits, Alloc > &lhs, const SubString< Char, Traits, Alloc > &rhs) noexcept
 
template<class Char , class Traits , class Alloc >
bool kss::util::strings::operator== (const SubString< Char, Traits, Alloc > &lhs, typename SubString< Char, Traits, Alloc >::const_pointer rhs) noexcept
 
template<class Char , class Traits , class Alloc >
bool kss::util::strings::operator== (typename SubString< Char, Traits, Alloc >::const_pointer lhs, const SubString< Char, Traits, Alloc > &rhs) noexcept
 
template<class Char , class Traits , class Alloc >
bool kss::util::strings::operator< (const SubString< Char, Traits, Alloc > &lhs, typename SubString< Char, Traits, Alloc >::const_pointer rhs) noexcept
 
template<class Char , class Traits , class Alloc >
bool kss::util::strings::operator< (typename SubString< Char, Traits, Alloc >::const_pointer lhs, const SubString< Char, Traits, Alloc > &rhs) noexcept
 

Detailed Description

Write-through substring.

Author
Steven W. Klassen (klass.nosp@m.ens@.nosp@m.acm.o.nosp@m.rg)
Date
Sat Jun 14 2003 This file is Copyright (c) 2003 by Klassen Software Solutions. Licensing follows the MIT License.

Definition in file substring.hpp.