MySQL  8.0.18
Source Code Documentation
string_view.h File Reference
#include <algorithm>
#include <cstddef>
#include <functional>
#include <ostream>
#include <stdexcept>
#include <string>

Go to the source code of this file.

Classes

class  stdx::basic_string_view< charT, traits >
 
struct  std::hash< stdx::string_view >
 
struct  std::hash< stdx::wstring_view >
 
struct  std::hash< stdx::u16string_view >
 
struct  std::hash< stdx::u32string_view >
 

Namespaces

 stdx
 
 stdx::impl
 
 stdx::literals
 
 stdx::literals::string_view_literals
 
 std
 

Macros

#define __has_builtin(x)   0
 
#define __has_cpp_attribute(x)   0
 
#define STDX_NONNULL
 
#define MSVC_ORDER(x)   /*, int = x */
 

Typedefs

template<class T >
using stdx::impl::identity = std::decay_t< T >
 
using stdx::string_view = basic_string_view< char >
 
using stdx::wstring_view = basic_string_view< wchar_t >
 
using stdx::u16string_view = basic_string_view< char16_t >
 
using stdx::u32string_view = basic_string_view< char32_t >
 

Functions

template<class charT >
constexpr size_t stdx::impl::char_traits_length (const charT *s) noexcept
 
template<class charT , class traits = std::char_traits<charT>>
constexpr int stdx::impl::char_traits_compare (const charT *a, const charT *b, size_t len) noexcept
 
template<class charT , class traits >
STDX_NONNULL constexpr int stdx::impl::char_traits_compare (const charT *a, const charT *b, size_t len) noexcept
 
template<class charT , class traits = std::char_traits<charT>>
STDX_NONNULL const charT * stdx::impl::memmatch (const charT *haystack, size_t haystack_len, const charT *needle, size_t needle_len)
 find first occurence of needle in a haystack. More...
 
template<class charT , class traits >
constexpr bool stdx::operator== (basic_string_view< charT, traits > a, basic_string_view< charT, traits > b) noexcept
 
template<class charT , class traits MSVC_ORDER>
constexpr bool stdx::operator== (basic_string_view< charT, traits > a, impl::identity< basic_string_view< charT, traits >> b) noexcept
 
template<class charT , class traits MSVC_ORDER>
constexpr bool stdx::operator== (impl::identity< basic_string_view< charT, traits >> a, basic_string_view< charT, traits > b) noexcept
 
template<class charT , class traits >
constexpr bool stdx::operator!= (basic_string_view< charT, traits > a, basic_string_view< charT, traits > b) noexcept
 
template<class charT , class traits MSVC_ORDER>
constexpr bool stdx::operator!= (basic_string_view< charT, traits > a, impl::identity< basic_string_view< charT, traits >> b) noexcept
 
template<class charT , class traits MSVC_ORDER>
constexpr bool stdx::operator!= (impl::identity< basic_string_view< charT, traits >> a, basic_string_view< charT, traits > b) noexcept
 
template<class charT , class traits >
constexpr bool stdx::operator> (basic_string_view< charT, traits > a, basic_string_view< charT, traits > b) noexcept
 
template<class charT , class traits MSVC_ORDER>
constexpr bool stdx::operator> (basic_string_view< charT, traits > a, impl::identity< basic_string_view< charT, traits >> b) noexcept
 
template<class charT , class traits MSVC_ORDER>
constexpr bool stdx::operator> (impl::identity< basic_string_view< charT, traits >> a, basic_string_view< charT, traits > b) noexcept
 
template<class charT , class traits >
constexpr bool stdx::operator< (basic_string_view< charT, traits > a, basic_string_view< charT, traits > b) noexcept
 
template<class charT , class traits MSVC_ORDER>
constexpr bool stdx::operator< (basic_string_view< charT, traits > a, impl::identity< basic_string_view< charT, traits >> b) noexcept
 
template<class charT , class traits MSVC_ORDER>
constexpr bool stdx::operator< (impl::identity< basic_string_view< charT, traits >> a, basic_string_view< charT, traits > b) noexcept
 
template<class charT , class traits >
constexpr bool stdx::operator<= (basic_string_view< charT, traits > a, basic_string_view< charT, traits > b) noexcept
 
template<class charT , class traits MSVC_ORDER>
constexpr bool stdx::operator<= (basic_string_view< charT, traits > a, impl::identity< basic_string_view< charT, traits >> b) noexcept
 
template<class charT , class traits MSVC_ORDER>
constexpr bool stdx::operator<= (impl::identity< basic_string_view< charT, traits >> a, basic_string_view< charT, traits > b) noexcept
 
template<class charT , class traits >
constexpr bool stdx::operator>= (basic_string_view< charT, traits > a, basic_string_view< charT, traits > b) noexcept
 
template<class charT , class traits MSVC_ORDER>
constexpr bool stdx::operator>= (basic_string_view< charT, traits > a, impl::identity< basic_string_view< charT, traits >> b) noexcept
 
template<class charT , class traits MSVC_ORDER>
constexpr bool stdx::operator>= (impl::identity< basic_string_view< charT, traits >> a, basic_string_view< charT, traits > b) noexcept
 
template<class charT , class traits = std::char_traits<charT>, class Allocator = std::allocator<charT>>
std::basic_string< charT, traits, Allocator > stdx::to_string (basic_string_view< charT, traits > str, const Allocator &a=Allocator())
 
template<class charT , class traits >
std::basic_ostream< charT, traits > & stdx::operator<< (std::basic_ostream< charT, traits > &o, basic_string_view< charT, traits > sv)
 
constexpr basic_string_view< char > stdx::literals::string_view_literals::operator""_sv (const char *str, size_t len) noexcept
 
constexpr basic_string_view< wchar_t > stdx::literals::string_view_literals::operator""_sv (const wchar_t *str, size_t len) noexcept
 
constexpr basic_string_view< char16_t > stdx::literals::string_view_literals::operator""_sv (const char16_t *str, size_t len) noexcept
 
constexpr basic_string_view< char32_t > stdx::literals::string_view_literals::operator""_sv (const char32_t *str, size_t len) noexcept
 

Macro Definition Documentation

◆ __has_builtin

#define __has_builtin (   x)    0

◆ __has_cpp_attribute

#define __has_cpp_attribute (   x)    0

◆ MSVC_ORDER

#define MSVC_ORDER (   x)    /*, int = x */

◆ STDX_NONNULL

#define STDX_NONNULL