Namespaces | Macros | Functions
string_view.hpp File Reference
#include <algorithm>
#include <cassert>
#include <iterator>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <string>
Include dependency graph for string_view.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 nonstd
 
 nonstd::sv_lite
 

Macros

#define NONSTD_SV_LITE_H_INCLUDED
 
#define nssv_BETWEEN(v, lo, hi)   ( (lo) <= (v) && (v) < (hi) )
 
#define nssv_COMPILER_CLANG_VERSION   0
 
#define nssv_COMPILER_GNUC_VERSION   0
 
#define nssv_COMPILER_MSVC_VER   0
 
#define nssv_COMPILER_MSVC_VERSION   0
 
#define nssv_COMPILER_VERSION(major, minor, patch)   (10 * ( 10 * major + minor) + patch)
 
#define nssv_CONFIG_CONVERSION_STD_STRING_CLASS_METHODS   1
 
#define nssv_CONFIG_CONVERSION_STD_STRING_FREE_FUNCTIONS   1
 
#define nssv_CONFIG_SELECT_STRING_VIEW   ( nssv_HAVE_STD_STRING_VIEW ? nssv_STRING_VIEW_STD : nssv_STRING_VIEW_NONSTD )
 
#define nssv_CONFIG_STD_SV_OPERATOR   0
 
#define nssv_CONFIG_USR_SV_OPERATOR   1
 
#define nssv_constexpr   /*constexpr*/
 
#define nssv_constexpr14   /*constexpr*/
 
#define nssv_CPLUSPLUS   __cplusplus
 
#define nssv_CPP11_100   (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1600)
 
#define nssv_CPP11_110   (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1700)
 
#define nssv_CPP11_120   (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1800)
 
#define nssv_CPP11_140   (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1900)
 
#define nssv_CPP11_141   (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1910)
 
#define nssv_CPP11_90   (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1500)
 
#define nssv_CPP11_OR_GREATER   ( nssv_CPLUSPLUS >= 201103L )
 
#define nssv_CPP11_OR_GREATER_   ( nssv_CPLUSPLUS >= 201103L )
 
#define nssv_CPP14_000   (nssv_CPP14_OR_GREATER)
 
#define nssv_CPP14_OR_GREATER   ( nssv_CPLUSPLUS >= 201402L )
 
#define nssv_CPP17_000   (nssv_CPP17_OR_GREATER)
 
#define nssv_CPP17_OR_GREATER   ( nssv_CPLUSPLUS >= 201703L )
 
#define nssv_CPP20_OR_GREATER   ( nssv_CPLUSPLUS >= 202000L )
 
#define nssv_CPP98_OR_GREATER   ( nssv_CPLUSPLUS >= 199711L )
 
#define nssv_DISABLE_MSVC_WARNINGS(codes)
 
#define nssv_explicit   /*explicit*/
 
#define nssv_HAS_CPP0X   0
 
#define nssv_HAVE_CONSTEXPR_11   nssv_CPP11_140
 
#define nssv_HAVE_CONSTEXPR_14   nssv_CPP14_000
 
#define nssv_HAVE_ENDS_WITH   nssv_HAVE_STARTS_WITH
 
#define nssv_HAVE_EXPLICIT_CONVERSION   nssv_CPP11_140
 
#define nssv_HAVE_INLINE_NAMESPACE   nssv_CPP11_140
 
#define nssv_HAVE_NODISCARD   nssv_CPP17_000
 
#define nssv_HAVE_NOEXCEPT   nssv_CPP11_140
 
#define nssv_HAVE_NULLPTR   nssv_CPP11_100
 
#define nssv_HAVE_REF_QUALIFIER   nssv_CPP11_140
 
#define nssv_HAVE_STARTS_WITH   ( nssv_CPP20_OR_GREATER || !nssv_USES_STD_STRING_VIEW )
 
#define nssv_HAVE_STD_DEFINED_LITERALS   nssv_CPP11_140
 
#define nssv_HAVE_STD_HASH   nssv_CPP11_120
 
#define nssv_HAVE_STD_STRING_VIEW   0
 
#define nssv_HAVE_UNICODE_LITERALS   nssv_CPP11_140
 
#define nssv_HAVE_USER_DEFINED_LITERALS   nssv_CPP11_140
 
#define nssv_HAVE_WCHAR16_T   nssv_CPP11_100
 
#define nssv_HAVE_WCHAR32_T   nssv_CPP11_100
 
#define nssv_inline_ns   /*inline*/
 
#define nssv_nodiscard   /*[[nodiscard]]*/
 
#define nssv_noexcept   /*noexcept*/
 
#define nssv_nullptr   NULL
 
#define nssv_RESTORE_WARNINGS()
 
#define nssv_STRING_VIEW_DEFAULT   0
 
#define nssv_STRING_VIEW_NONSTD   1
 
#define nssv_STRING_VIEW_STD   2
 
#define nssv_STRINGIFY(x)   nssv_STRINGIFY_( x )
 
#define nssv_STRINGIFY_(x)   #x
 
#define nssv_SUPPRESS_MSGSL_WARNING(expr)
 
#define nssv_SUPPRESS_MSVC_WARNING(code, descr)
 
#define nssv_USES_STD_STRING_VIEW   ( (nssv_CONFIG_SELECT_STRING_VIEW == nssv_STRING_VIEW_STD) || ((nssv_CONFIG_SELECT_STRING_VIEW == nssv_STRING_VIEW_DEFAULT) && nssv_HAVE_STD_STRING_VIEW) )
 
#define string_view_lite_MAJOR   1
 
#define string_view_lite_MINOR   1
 
#define string_view_lite_PATCH   0
 
#define string_view_lite_VERSION   nssv_STRINGIFY(string_view_lite_MAJOR) "." nssv_STRINGIFY(string_view_lite_MINOR) "." nssv_STRINGIFY(string_view_lite_PATCH)
 

Functions

 nssv_DISABLE_MSVC_WARNINGS (4455 26481 26472) namespace nonstd
 
template<class CharT , class Traits >
std::basic_string< CharT, Traits > nonstd::sv_lite::to_string (basic_string_view< CharT, Traits > v)
 
template<class CharT , class Traits , class Allocator >
std::basic_string< CharT, Traits, Allocator > nonstd::sv_lite::to_string (basic_string_view< CharT, Traits > v, Allocator const &a)
 
template<class CharT , class Traits , class Allocator >
basic_string_view< CharT, Traits > nonstd::sv_lite::to_string_view (std::basic_string< CharT, Traits, Allocator > const &s)
 

Macro Definition Documentation

#define NONSTD_SV_LITE_H_INCLUDED

Definition at line 12 of file string_view.hpp.

#define nssv_BETWEEN (   v,
  lo,
  hi 
)    ( (lo) <= (v) && (v) < (hi) )

Definition at line 226 of file string_view.hpp.

#define nssv_COMPILER_CLANG_VERSION   0

Definition at line 216 of file string_view.hpp.

#define nssv_COMPILER_GNUC_VERSION   0

Definition at line 222 of file string_view.hpp.

#define nssv_COMPILER_MSVC_VER   0

Definition at line 207 of file string_view.hpp.

#define nssv_COMPILER_MSVC_VERSION   0

Definition at line 208 of file string_view.hpp.

#define nssv_COMPILER_VERSION (   major,
  minor,
  patch 
)    (10 * ( 10 * major + minor) + patch)

Definition at line 211 of file string_view.hpp.

#define nssv_CONFIG_CONVERSION_STD_STRING_CLASS_METHODS   1

Definition at line 51 of file string_view.hpp.

#define nssv_CONFIG_CONVERSION_STD_STRING_FREE_FUNCTIONS   1

Definition at line 55 of file string_view.hpp.

#define nssv_CONFIG_SELECT_STRING_VIEW   ( nssv_HAVE_STD_STRING_VIEW ? nssv_STRING_VIEW_STD : nssv_STRING_VIEW_NONSTD )

Definition at line 30 of file string_view.hpp.

#define nssv_CONFIG_STD_SV_OPERATOR   0

Definition at line 38 of file string_view.hpp.

#define nssv_CONFIG_USR_SV_OPERATOR   1

Definition at line 42 of file string_view.hpp.

#define nssv_constexpr   /*constexpr*/

Definition at line 287 of file string_view.hpp.

#define nssv_constexpr14   /*constexpr*/

Definition at line 293 of file string_view.hpp.

#define nssv_CPLUSPLUS   __cplusplus

Definition at line 65 of file string_view.hpp.

#define nssv_CPP11_100   (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1600)

Definition at line 244 of file string_view.hpp.

#define nssv_CPP11_110   (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1700)

Definition at line 245 of file string_view.hpp.

#define nssv_CPP11_120   (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1800)

Definition at line 246 of file string_view.hpp.

#define nssv_CPP11_140   (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1900)

Definition at line 247 of file string_view.hpp.

#define nssv_CPP11_141   (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1910)

Definition at line 248 of file string_view.hpp.

#define nssv_CPP11_90   (nssv_CPP11_OR_GREATER_ || nssv_COMPILER_MSVC_VER >= 1500)

Definition at line 243 of file string_view.hpp.

#define nssv_CPP11_OR_GREATER   ( nssv_CPLUSPLUS >= 201103L )

Definition at line 70 of file string_view.hpp.

#define nssv_CPP11_OR_GREATER_   ( nssv_CPLUSPLUS >= 201103L )

Definition at line 71 of file string_view.hpp.

#define nssv_CPP14_000   (nssv_CPP14_OR_GREATER)

Definition at line 250 of file string_view.hpp.

#define nssv_CPP14_OR_GREATER   ( nssv_CPLUSPLUS >= 201402L )

Definition at line 72 of file string_view.hpp.

#define nssv_CPP17_000   (nssv_CPP17_OR_GREATER)

Definition at line 251 of file string_view.hpp.

#define nssv_CPP17_OR_GREATER   ( nssv_CPLUSPLUS >= 201703L )

Definition at line 73 of file string_view.hpp.

#define nssv_CPP20_OR_GREATER   ( nssv_CPLUSPLUS >= 202000L )

Definition at line 74 of file string_view.hpp.

#define nssv_CPP98_OR_GREATER   ( nssv_CPLUSPLUS >= 199711L )

Definition at line 69 of file string_view.hpp.

#define nssv_DISABLE_MSVC_WARNINGS (   codes)

Definition at line 366 of file string_view.hpp.

#define nssv_explicit   /*explicit*/

Definition at line 299 of file string_view.hpp.

#define nssv_HAS_CPP0X   0

Definition at line 233 of file string_view.hpp.

#define nssv_HAVE_CONSTEXPR_11   nssv_CPP11_140

Definition at line 255 of file string_view.hpp.

#define nssv_HAVE_CONSTEXPR_14   nssv_CPP14_000

Definition at line 272 of file string_view.hpp.

#define nssv_HAVE_ENDS_WITH   nssv_HAVE_STARTS_WITH

Definition at line 91 of file string_view.hpp.

#define nssv_HAVE_EXPLICIT_CONVERSION   nssv_CPP11_140

Definition at line 256 of file string_view.hpp.

#define nssv_HAVE_INLINE_NAMESPACE   nssv_CPP11_140

Definition at line 257 of file string_view.hpp.

#define nssv_HAVE_NODISCARD   nssv_CPP17_000

Definition at line 276 of file string_view.hpp.

#define nssv_HAVE_NOEXCEPT   nssv_CPP11_140

Definition at line 258 of file string_view.hpp.

#define nssv_HAVE_NULLPTR   nssv_CPP11_100

Definition at line 259 of file string_view.hpp.

#define nssv_HAVE_REF_QUALIFIER   nssv_CPP11_140

Definition at line 260 of file string_view.hpp.

#define nssv_HAVE_STARTS_WITH   ( nssv_CPP20_OR_GREATER || !nssv_USES_STD_STRING_VIEW )

Definition at line 90 of file string_view.hpp.

#define nssv_HAVE_STD_DEFINED_LITERALS   nssv_CPP11_140

Definition at line 267 of file string_view.hpp.

#define nssv_HAVE_STD_HASH   nssv_CPP11_120

Definition at line 280 of file string_view.hpp.

#define nssv_HAVE_STD_STRING_VIEW   0

Definition at line 85 of file string_view.hpp.

#define nssv_HAVE_UNICODE_LITERALS   nssv_CPP11_140

Definition at line 261 of file string_view.hpp.

#define nssv_HAVE_USER_DEFINED_LITERALS   nssv_CPP11_140

Definition at line 262 of file string_view.hpp.

#define nssv_HAVE_WCHAR16_T   nssv_CPP11_100

Definition at line 263 of file string_view.hpp.

#define nssv_HAVE_WCHAR32_T   nssv_CPP11_100

Definition at line 264 of file string_view.hpp.

#define nssv_inline_ns   /*inline*/

Definition at line 305 of file string_view.hpp.

#define nssv_nodiscard   /*[[nodiscard]]*/

Definition at line 331 of file string_view.hpp.

#define nssv_noexcept   /*noexcept*/

Definition at line 311 of file string_view.hpp.

#define nssv_nullptr   NULL

Definition at line 325 of file string_view.hpp.

#define nssv_RESTORE_WARNINGS ( )

Definition at line 376 of file string_view.hpp.

#define nssv_STRING_VIEW_DEFAULT   0

Definition at line 25 of file string_view.hpp.

#define nssv_STRING_VIEW_NONSTD   1

Definition at line 26 of file string_view.hpp.

#define nssv_STRING_VIEW_STD   2

Definition at line 27 of file string_view.hpp.

#define nssv_STRINGIFY (   x)    nssv_STRINGIFY_( x )

Definition at line 20 of file string_view.hpp.

#define nssv_STRINGIFY_ (   x)    #x

Definition at line 21 of file string_view.hpp.

#define nssv_SUPPRESS_MSGSL_WARNING (   expr)

Definition at line 364 of file string_view.hpp.

#define nssv_SUPPRESS_MSVC_WARNING (   code,
  descr 
)

Definition at line 365 of file string_view.hpp.

Definition at line 88 of file string_view.hpp.

#define string_view_lite_MAJOR   1

Definition at line 14 of file string_view.hpp.

#define string_view_lite_MINOR   1

Definition at line 15 of file string_view.hpp.

#define string_view_lite_PATCH   0

Definition at line 16 of file string_view.hpp.

Definition at line 18 of file string_view.hpp.

Function Documentation

nssv_DISABLE_MSVC_WARNINGS ( 4455 26481  26472)

Definition at line 386 of file string_view.hpp.



behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sat Jun 8 2019 18:04:05