MySQL  8.0.18
Source Code Documentation
stdx::impl Namespace Reference

Typedefs

template<class T >
using identity = std::decay_t< T >
 

Functions

template<class charT >
constexpr size_t char_traits_length (const charT *s) noexcept
 
template<class charT , class traits = std::char_traits<charT>>
constexpr int char_traits_compare (const charT *a, const charT *b, size_t len) noexcept
 
template<class charT , class traits >
STDX_NONNULL constexpr int 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 * memmatch (const charT *haystack, size_t haystack_len, const charT *needle, size_t needle_len)
 find first occurence of needle in a haystack. More...
 

Typedef Documentation

◆ identity

template<class T >
using stdx::impl::identity = typedef std::decay_t<T>

Function Documentation

◆ char_traits_compare() [1/2]

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

◆ char_traits_compare() [2/2]

template<class charT , class traits >
STDX_NONNULL constexpr int stdx::impl::char_traits_compare ( const charT *  a,
const charT *  b,
size_t  len 
)
noexcept

◆ char_traits_length()

template<class charT >
constexpr size_t stdx::impl::char_traits_length ( const charT *  s)
noexcept

◆ memmatch()

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.

Parameters
haystackstring of character to search needle in
haystack_lenlength of haystack in characters
needlestring of characters for find in haystack
needle_lenlength of needle in characters
Returns
pointer to the position where needle is found in the haystack
Return values
nullptrif needle wasn't found