cppx-core
Functions
cppx::cppx::ascii Namespace Reference

Functions

 CPPX_USE_STD (basic_string, basic_string_view, invoke, string, string_view, wstring, wstring_view)
 
template<class Integer >
auto contains (const Integer v) -> Truth
 
template<class It >
auto contains_all_of (const It start, const It beyond) -> Truth
 
template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto contains_all_of (const basic_string_view< Char > &sv) -> Truth
 
template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto contains_all_of (const P_< const Char > s) -> Truth
 
template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto contains_all_of (const basic_string< Char > &s) -> Truth
 
template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto to_wide (const basic_string_view< Char > &v) -> wstring
 
template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto to_wide (const P_< const Char > s) -> wstring
 
template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto to_wide (const basic_string< Char > &s) -> wstring
 
template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto is_whitespace (const Char ch) -> Truth
 
template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto is_all_whitespace (const basic_string_view< Char > &sv) -> Truth
 
template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto is_all_whitespace (const basic_string< Char > &s) -> Truth
 
template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto is_all_whitespace (const P_< const Char > s) -> Truth
 
auto whitespace_characters () -> const string &
 
template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto is_lowercase (const Char ch) -> Truth
 
template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto is_uppercase (const Char ch) -> Truth
 
template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto to_lowercase (const Char ch) -> Char
 
template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto to_uppercase (const Char ch) -> Char
 
template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto to_lowercase (const basic_string_view< Char > &v) -> basic_string< Char >
 
template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto to_uppercase (const basic_string_view< Char > &v) -> basic_string< Char >
 
template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto to_lowercase (const P_< const Char > s) -> basic_string< Char >
 
template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto to_uppercase (const P_< const Char > s) -> basic_string< Char >
 
template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto to_lowercase (const basic_string< Char > &s) -> basic_string< Char >
 
template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto to_uppercase (const basic_string< Char > &s) -> basic_string< Char >
 
auto quoted (const string_view &sv) -> string
 
auto quoted (const char ch) -> string
 

Function Documentation

◆ contains()

template<class Integer >
auto cppx::cppx::ascii::contains ( const Integer  v) -> Truth
inline

Definition at line 46 of file ascii-util.hpp.

◆ contains_all_of() [1/4]

template<class It >
auto cppx::cppx::ascii::contains_all_of ( const It  start,
const It  beyond 
) -> Truth
inline

Definition at line 51 of file ascii-util.hpp.

◆ contains_all_of() [2/4]

template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto cppx::cppx::ascii::contains_all_of ( const basic_string_view< Char > &  sv) -> Truth
inline

Definition at line 62 of file ascii-util.hpp.

◆ contains_all_of() [3/4]

template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto cppx::cppx::ascii::contains_all_of ( const P_< const Char >  s) -> Truth
inline

Definition at line 67 of file ascii-util.hpp.

◆ contains_all_of() [4/4]

template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto cppx::cppx::ascii::contains_all_of ( const basic_string< Char > &  s) -> Truth
inline

Definition at line 72 of file ascii-util.hpp.

◆ CPPX_USE_STD()

cppx::cppx::ascii::CPPX_USE_STD ( basic_string  ,
basic_string_view  ,
invoke  ,
string  ,
string_view  ,
wstring  ,
wstring_view   
)

◆ is_all_whitespace() [1/3]

template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto cppx::cppx::ascii::is_all_whitespace ( const basic_string_view< Char > &  sv) -> Truth
inline

Definition at line 104 of file ascii-util.hpp.

◆ is_all_whitespace() [2/3]

template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto cppx::cppx::ascii::is_all_whitespace ( const basic_string< Char > &  s) -> Truth
inline

Definition at line 118 of file ascii-util.hpp.

◆ is_all_whitespace() [3/3]

template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto cppx::cppx::ascii::is_all_whitespace ( const P_< const Char >  s) -> Truth
inline

Definition at line 123 of file ascii-util.hpp.

◆ is_lowercase()

template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto cppx::cppx::ascii::is_lowercase ( const Char  ch) -> Truth
inline

Definition at line 149 of file ascii-util.hpp.

◆ is_uppercase()

template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto cppx::cppx::ascii::is_uppercase ( const Char  ch) -> Truth
inline

Definition at line 154 of file ascii-util.hpp.

◆ is_whitespace()

template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto cppx::cppx::ascii::is_whitespace ( const Char  ch) -> Truth
inline

Definition at line 99 of file ascii-util.hpp.

◆ quoted() [1/2]

auto cppx::cppx::ascii::quoted ( const string_view &  sv) -> string
inline

Definition at line 217 of file ascii-util.hpp.

◆ quoted() [2/2]

auto cppx::cppx::ascii::quoted ( const char  ch) -> string
inline

Definition at line 227 of file ascii-util.hpp.

◆ to_lowercase() [1/4]

template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto cppx::cppx::ascii::to_lowercase ( const Char  ch) -> Char
inline

Definition at line 159 of file ascii-util.hpp.

◆ to_lowercase() [2/4]

template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto cppx::cppx::ascii::to_lowercase ( const basic_string_view< Char > &  v) -> basic_string<Char>
inline

Definition at line 169 of file ascii-util.hpp.

◆ to_lowercase() [3/4]

template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto cppx::cppx::ascii::to_lowercase ( const P_< const Char >  s) -> basic_string<Char>
inline

Definition at line 195 of file ascii-util.hpp.

◆ to_lowercase() [4/4]

template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto cppx::cppx::ascii::to_lowercase ( const basic_string< Char > &  s) -> basic_string<Char>
inline

Definition at line 205 of file ascii-util.hpp.

◆ to_uppercase() [1/4]

template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto cppx::cppx::ascii::to_uppercase ( const Char  ch) -> Char
inline

Definition at line 164 of file ascii-util.hpp.

◆ to_uppercase() [2/4]

template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto cppx::cppx::ascii::to_uppercase ( const basic_string_view< Char > &  v) -> basic_string<Char>
inline

Definition at line 182 of file ascii-util.hpp.

◆ to_uppercase() [3/4]

template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto cppx::cppx::ascii::to_uppercase ( const P_< const Char >  s) -> basic_string<Char>
inline

Definition at line 200 of file ascii-util.hpp.

◆ to_uppercase() [4/4]

template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto cppx::cppx::ascii::to_uppercase ( const basic_string< Char > &  s) -> basic_string<Char>
inline

Definition at line 210 of file ascii-util.hpp.

◆ to_wide() [1/3]

template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto cppx::cppx::ascii::to_wide ( const basic_string_view< Char > &  v) -> wstring
inline

Definition at line 80 of file ascii-util.hpp.

◆ to_wide() [2/3]

template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto cppx::cppx::ascii::to_wide ( const P_< const Char >  s) -> wstring
inline

Definition at line 85 of file ascii-util.hpp.

◆ to_wide() [3/3]

template<class Char , class = Enable_if_<is_a_cpp03_char_type_<Char>>>
auto cppx::cppx::ascii::to_wide ( const basic_string< Char > &  s) -> wstring
inline

Definition at line 90 of file ascii-util.hpp.

◆ whitespace_characters()

auto cppx::cppx::ascii::whitespace_characters ( ) -> const string&
inline

Definition at line 127 of file ascii-util.hpp.