|
4 | 4 | <meta charset="UTF-8">
|
5 | 5 | <meta http-equiv="X-UA-Compatible" content="IE=edge">
|
6 | 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7 |
| -<meta name="generator" content="Asciidoctor 2.0.23"> |
| 7 | +<meta name="generator" content="Asciidoctor 2.0.20"> |
8 | 8 | <meta name="author" content="website, repository">
|
9 | 9 | <title>pugixml 1.14 manual</title>
|
10 | 10 | <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700">
|
|
141 | 141 | #content::before{content:none}
|
142 | 142 | #header>h1:first-child{color:rgba(0,0,0,.85);margin-top:2.25rem;margin-bottom:0}
|
143 | 143 | #header>h1:first-child+#toc{margin-top:8px;border-top:1px solid #dddddf}
|
144 |
| -#header>h1:only-child{border-bottom:1px solid #dddddf;padding-bottom:8px} |
| 144 | +#header>h1:only-child,body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} |
145 | 145 | #header .details{border-bottom:1px solid #dddddf;line-height:1.45;padding-top:.25em;padding-bottom:.25em;padding-left:.25em;color:rgba(0,0,0,.6);display:flex;flex-flow:row wrap}
|
146 | 146 | #header .details span:first-child{margin-left:-.125em}
|
147 | 147 | #header .details span.email a{color:rgba(0,0,0,.85)}
|
|
163 | 163 | #toctitle{color:#7a2518;font-size:1.2em}
|
164 | 164 | @media screen and (min-width:768px){#toctitle{font-size:1.375em}
|
165 | 165 | body.toc2{padding-left:15em;padding-right:0}
|
166 |
| -body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px} |
167 | 166 | #toc.toc2{margin-top:0!important;background:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto}
|
168 | 167 | #toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em}
|
169 | 168 | #toc.toc2>ul{font-size:.9em;margin-bottom:0}
|
|
329 | 328 | a.image object{pointer-events:none}
|
330 | 329 | sup.footnote,sup.footnoteref{font-size:.875em;position:static;vertical-align:super}
|
331 | 330 | sup.footnote a,sup.footnoteref a{text-decoration:none}
|
332 |
| -sup.footnote a:active,sup.footnoteref a:active,#footnotes .footnote a:first-of-type:active{text-decoration:underline} |
| 331 | +sup.footnote a:active,sup.footnoteref a:active{text-decoration:underline} |
333 | 332 | #footnotes{padding-top:.75em;padding-bottom:.75em;margin-bottom:.625em}
|
334 | 333 | #footnotes hr{width:20%;min-width:6.25em;margin:-.25em 0 .75em;border-width:1px 0 0}
|
335 | 334 | #footnotes .footnote{padding:0 .375em 0 .225em;line-height:1.3334;font-size:.875em;margin-left:1.2em;margin-bottom:.2em}
|
@@ -1028,7 +1027,7 @@ <h4 id="install.building.config"><a class="anchor" href="#install.building.confi
|
1028 | 1027 | <p><a id="PUGIXML_HAS_LONG_LONG"></a><code>PUGIXML_HAS_LONG_LONG</code> define enables support for <code>long long</code> type in pugixml. This define is automatically enabled if your platform is known to have <code>long long</code> 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 <code>long long</code> but in fact it does, you can enable the define manually.</p>
|
1029 | 1028 | </div>
|
1030 | 1029 | <div class="paragraph">
|
1031 |
| -<p><a id="PUGIXML_HAS_STRING_VIEW"></a><code>PUGIXML_HAS_STRING_VIEW</code> define enables function overloads that accept <code>std::basic_string_view</code> arguments. This define is automatically enabled if built targeting c++17 or later AND if <code>PUGIXML_STRING_VIEW</code> is also defined. The requirement to additionally define <code>PUGIXML_STRING_VIEW</code> will be retired in a future version.</p> |
| 1030 | +<p><a id="PUGIXML_HAS_STRING_VIEW"></a><code>PUGIXML_HAS_STRING_VIEW</code> define enables function overloads that accept <code>std::string_view</code> arguments. This define is automatically enabled if built targeting C++17 or later; if pugixml does not recognize that your platform supports <code>std::string_view</code> but in fact it does, you can enable the define manually.</p> |
1032 | 1031 | </div>
|
1033 | 1032 | </div>
|
1034 | 1033 | </div>
|
@@ -1295,7 +1294,7 @@ <h3 id="dom.unicode"><a class="anchor" href="#dom.unicode"></a><a class="link" h
|
1295 | 1294 | </div>
|
1296 | 1295 | <div class="paragraph">
|
1297 | 1296 | <p><a id="char_t"></a><a id="string_t"></a><a id="string_view_t"></a>
|
1298 |
| -There is a special type, <code>pugi::char_t</code>, that is defined as the character type and depends on the library configuration; it will be also used in the documentation hereafter. There is also a type <code>pugi::string_t</code>, which is defined as the STL string of the character type; it corresponds to <code>std::string</code> in char mode and to <code>std::wstring</code> in wchar_t mode. Similarly, <code>string_view_t</code> is defined to be <code>std::basic_string_view<char_t></code>. Overloads for <code>string_view_t</code> are only available when building for c++17 or later (see <code>PUGIXML_HAS_STRING_VIEW</code>).</p> |
| 1297 | +There is a special type, <code>pugi::char_t</code>, that is defined as the character type and depends on the library configuration; it will be also used in the documentation hereafter. There is also a type <code>pugi::string_t</code>, which is defined as the STL string of the character type; it corresponds to <code>std::string</code> in char mode and to <code>std::wstring</code> in wchar_t mode. Similarly, <code>string_view_t</code> is defined to be <code>std::basic_string_view<char_t></code>. Overloads for <code>string_view_t</code> are only available when building for C++17 or later (see <code>PUGIXML_HAS_STRING_VIEW</code>).</p> |
1299 | 1298 | </div>
|
1300 | 1299 | <div class="paragraph">
|
1301 | 1300 | <p>In addition to the interface, the internal implementation changes to store XML data as <code>pugi::char_t</code>; this means that these two modes have different memory usage characteristics - generally UTF-8 mode is more memory and performance efficient, especially if <code>sizeof(wchar_t)</code> is 4. The conversion to <code>pugi::char_t</code> upon document loading and from <code>pugi::char_t</code> upon document saving happen automatically, which also carries minor performance penalty. The general advice however is to select the character mode based on usage scenario, i.e. if UTF-8 is inconvenient to process and most of your XML data is non-ASCII, wchar_t mode is probably a better choice.</p>
|
@@ -6217,7 +6216,7 @@ <h3 id="apiref.functions"><a class="anchor" href="#apiref.functions"></a><a clas
|
6217 | 6216 | </div>
|
6218 | 6217 | <div id="footer">
|
6219 | 6218 | <div id="footer-text">
|
6220 |
| -Last updated 2024-10-27 09:31:16 -0700 |
| 6219 | +Last updated 2024-10-30 10:34:38 -0700 |
6221 | 6220 | </div>
|
6222 | 6221 | </div>
|
6223 | 6222 | </body>
|
|
0 commit comments