ModErn Text Analysis
META Enumerates Textual Applications
Classes | Namespaces | Typedefs | Functions
string_view.h File Reference
#include "meta/config.h"
#include "meta/hashing/hash.h"
#include <algorithm>
#include <stdexcept>
#include <string>

Go to the source code of this file.

Classes

class  meta::util::basic_string_view< Char, Traits >
 A non-owning reference to a string. More...
 
struct  std::hash< meta::util::basic_string_view< Char, Traits > >
 

Namespaces

 meta
 The ModErn Text Analysis toolkit is a suite of natural language processing, classification, information retrieval, data mining, and other applications of text processing.
 
 meta::util
 Shared resources and utilities.
 

Typedefs

using meta::util::string_view = basic_string_view< char >
 
using meta::util::u16string_view = basic_string_view< char16_t >
 
using meta::util::u32string_view = basic_string_view< char32_t >
 
using meta::util::wstring_view = basic_string_view< wchar_t >
 

Functions

template<class Char , class Traits >
constexpr bool meta::util::operator== (basic_string_view< Char, Traits > lhs, basic_string_view< Char, Traits > rhs) noexcept
 
template<class Char , class Traits >
constexpr bool meta::util::operator== (basic_string_view< Char, Traits > lhs, identity< basic_string_view< Char, Traits >> rhs) noexcept
 
template<class Char , class Traits >
constexpr bool meta::util::operator== (identity< basic_string_view< Char, Traits >> lhs, basic_string_view< Char, Traits > rhs) noexcept
 
template<class Char , class Traits >
constexpr bool meta::util::operator!= (basic_string_view< Char, Traits > lhs, basic_string_view< Char, Traits > rhs) noexcept
 
template<class Char , class Traits >
constexpr bool meta::util::operator!= (basic_string_view< Char, Traits > lhs, identity< basic_string_view< Char, Traits >> rhs) noexcept
 
template<class Char , class Traits >
constexpr bool meta::util::operator!= (identity< basic_string_view< Char, Traits >> lhs, basic_string_view< Char, Traits > rhs) noexcept
 
template<class Char , class Traits >
constexpr bool meta::util::operator< (basic_string_view< Char, Traits > lhs, basic_string_view< Char, Traits > rhs) noexcept
 
template<class Char , class Traits >
constexpr bool meta::util::operator< (basic_string_view< Char, Traits > lhs, identity< basic_string_view< Char, Traits >> rhs) noexcept
 
template<class Char , class Traits >
constexpr bool meta::util::operator< (identity< basic_string_view< Char, Traits >> lhs, basic_string_view< Char, Traits > rhs) noexcept
 
template<class Char , class Traits >
constexpr bool meta::util::operator> (basic_string_view< Char, Traits > lhs, basic_string_view< Char, Traits > rhs) noexcept
 
template<class Char , class Traits >
constexpr bool meta::util::operator> (basic_string_view< Char, Traits > lhs, identity< basic_string_view< Char, Traits >> rhs) noexcept
 
template<class Char , class Traits >
constexpr bool meta::util::operator> (identity< basic_string_view< Char, Traits >> lhs, basic_string_view< Char, Traits > rhs) noexcept
 
template<class Char , class Traits >
constexpr bool meta::util::operator<= (basic_string_view< Char, Traits > lhs, basic_string_view< Char, Traits > rhs) noexcept
 
template<class Char , class Traits >
constexpr bool meta::util::operator<= (basic_string_view< Char, Traits > lhs, identity< basic_string_view< Char, Traits >> rhs) noexcept
 
template<class Char , class Traits >
constexpr bool meta::util::operator<= (identity< basic_string_view< Char, Traits >> lhs, basic_string_view< Char, Traits > rhs) noexcept
 
template<class Char , class Traits >
constexpr bool meta::util::operator>= (basic_string_view< Char, Traits > lhs, basic_string_view< Char, Traits > rhs) noexcept
 
template<class Char , class Traits >
constexpr bool meta::util::operator>= (basic_string_view< Char, Traits > lhs, identity< basic_string_view< Char, Traits >> rhs) noexcept
 
template<class Char , class Traits >
constexpr bool meta::util::operator>= (identity< basic_string_view< Char, Traits >> lhs, basic_string_view< Char, Traits > rhs) noexcept
 
template<class Char , class Traits >
std::basic_ostream< Char, Traits > & meta::util::operator<< (std::basic_ostream< Char, Traits > &os, basic_string_view< Char, Traits > str)
 
string_view meta::util::make_string_view (std::string::const_iterator begin, std::string::const_iterator end)
 
template<class HashAlgorithm , class Char , class Traits >
std::enable_if< is_contiguously_hashable< Char >::value >::type meta::hashing::hash_append (HashAlgorithm &h, const util::basic_string_view< Char, Traits > &s)
 
template<class HashAlgorithm , class Char , class Traits >
std::enable_if<!is_contiguously_hashable< Char >::value >::type meta::hashing::hash_append (HashAlgorithm &h, const util::basic_string_view< Char, Traits > &s)
 

Detailed Description

Author
Chase Geigle

All files in META are dual-licensed under the MIT and NCSA licenses. For more details, consult the file LICENSE.mit and LICENSE.ncsa in the root of the project.