scnlib  0.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
string_view.h File Reference
#include "span.h"
#include "util.h"
#include <cstring>
#include <cwchar>
#include <limits>

Go to the source code of this file.

Classes

class  scn::basic_string_view< CharT >
 A view over a (sub)string. More...
 

Namespaces

 scn
 
 scn::detail
 

Typedefs

using scn::string_view = basic_string_view< char >
 
using scn::wstring_view = basic_string_view< wchar_t >
 
using scn::u16string_view = basic_string_view< char >
 
using scn::u32wstring_view = basic_string_view< wchar_t >
 

Functions

size_t scn::detail::strlen (const char *s) noexcept
 
size_t scn::detail::strlen (const wchar_t *s) noexcept
 
int scn::detail::memcmp (const char *l, const char *r, size_t n) noexcept
 
int scn::detail::memcmp (const wchar_t *l, const wchar_t *r, size_t n) noexcept