diff --git a/docs/manual.adoc b/docs/manual.adoc index 20d84a7a..2b2db3ba 100644 --- a/docs/manual.adoc +++ b/docs/manual.adoc @@ -244,6 +244,8 @@ NOTE: In that example `PUGIXML_API` is inconsistent between several source files [[PUGIXML_HAS_LONG_LONG]]`PUGIXML_HAS_LONG_LONG` define enables support for `long long` type in pugixml. This define is automatically enabled if your platform is known to have `long long` support (i.e. has C{plus}{plus}11 support or uses a reasonably modern version of a known compiler); if pugixml does not recognize that your platform supports `long long` but in fact it does, you can enable the define manually. +[[PUGIXML_HAS_STRING_VIEW]]`PUGIXML_HAS_STRING_VIEW` define enables function overloads that accept `std::basic_string_view` arguments. This define is automatically enabled if built targeting c++17 or later AND if `PUGIXML_STRING_VIEW` is also defined. The requirement to additionally define `PUGIXML_STRING_VIEW` will be retired in a future version. + [[install.portability]] === Portability @@ -2755,6 +2757,7 @@ This is the reference for all macros, types, enumerations, classes and functions #define +++PUGIXML_MEMORY_XPATH_PAGE_SIZE+++ #define +++PUGIXML_HEADER_ONLY+++ #define +++PUGIXML_HAS_LONG_LONG+++ +#define +++PUGIXML_HAS_STRING_VIEW+++ ---- [[apiref.types]] @@ -2764,6 +2767,7 @@ This is the reference for all macros, types, enumerations, classes and functions ---- typedef configuration-defined-type +++char_t+++; typedef configuration-defined-type +++string_t+++; +typedef configuration-defined-type +++string_view_t+++; typedef void* (*+++allocation_function+++)(size_t size); typedef void (*+++deallocation_function+++)(void* ptr); ---- diff --git a/docs/manual.html b/docs/manual.html index 68a13310..3b85dfff 100644 --- a/docs/manual.html +++ b/docs/manual.html @@ -1027,6 +1027,9 @@

PUGIXML_HAS_LONG_LONG define enables support for long long type in pugixml. This define is automatically enabled if your platform is known to have long long support (i.e. has C++11 support or uses a reasonably modern version of a known compiler); if pugixml does not recognize that your platform supports long long but in fact it does, you can enable the define manually.

+
+

PUGIXML_HAS_STRING_VIEW define enables function overloads that accept std::basic_string_view arguments. This define is automatically enabled if built targeting c++17 or later AND if PUGIXML_STRING_VIEW is also defined. The requirement to additionally define PUGIXML_STRING_VIEW will be retired in a future version.

+
@@ -5695,7 +5698,8 @@

#define PUGIXML_MEMORY_OUTPUT_STACK #define PUGIXML_MEMORY_XPATH_PAGE_SIZE #define PUGIXML_HEADER_ONLY -#define PUGIXML_HAS_LONG_LONG +#define PUGIXML_HAS_LONG_LONG +#define PUGIXML_HAS_STRING_VIEW

@@ -5705,6 +5709,7 @@

typedef configuration-defined-type char_t;
 typedef configuration-defined-type string_t;
+typedef configuration-defined-type string_view_t;
 typedef void* (*allocation_function)(size_t size);
 typedef void (*deallocation_function)(void* ptr);
@@ -6212,7 +6217,7 @@