This commit is contained in:
intelliot
2023-06-27 06:53:31 +00:00
parent 3df04aee41
commit a9a57ab982
252 changed files with 21225 additions and 21632 deletions

View File

@@ -94,8 +94,8 @@ $(function() {
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/algorithm.html">algorithm</a>&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/cassert.html">cassert</a>&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/cerrno.html">cerrno</a>&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/cstdlib.html">cstdlib</a>&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/iostream.html">iostream</a>&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/charconv.html">charconv</a>&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/cstdlib.html">cstdlib</a>&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/iterator.html">iterator</a>&gt;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/limits.html">limits</a>&gt;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/string.html">string</a>&gt;</span></div>
@@ -103,305 +103,190 @@ $(function() {
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/typeinfo.html">typeinfo</a>&gt;</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="preprocessor">#include &lt;<a class="codeRef" href="http://en.cppreference.com/w/cpp/header/utility.html">utility</a>&gt;</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="preprocessor">#include &lt;boost/predef.h&gt;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacebeast.html">beast</a> {</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacebeast.html">beast</a> {</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="keyword">namespace </span>detail {</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; </div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="keyword">namespace </span>detail {</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="preprocessor">#if BOOST_COMP_MSVC</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="preprocessor">#pragma warning(push)</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="preprocessor">#pragma warning(disable : 4800)</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="preprocessor">#pragma warning(disable : 4804)</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; </div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> Int, <span class="keyword">class</span> FwdIt, <span class="keyword">class</span> Accumulator&gt;</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;<span class="keywordtype">bool</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="namespacebeast_1_1detail.html#a2c941f8108157976e4d3263334041703"> 49</a></span>&#160;<a class="code" href="namespacebeast_1_1detail.html#a2c941f8108157976e4d3263334041703">parse_integral</a>(Int&amp; num, FwdIt first, FwdIt last, Accumulator accumulator)</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;{</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; num = 0;</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; </div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="keywordflow">if</span> (first == last)</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; </div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="keywordflow">while</span> (first != last)</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; {</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> c = *first++;</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <span class="keywordflow">if</span> (c &lt; &#39;0&#39; || c &gt; <span class="charliteral">&#39;9&#39;</span>)</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="keywordflow">if</span> (!accumulator(num, Int(c - <span class="charliteral">&#39;0&#39;</span>)))</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; }</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;}</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; </div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> Int, <span class="keyword">class</span> FwdIt&gt;</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;<span class="keywordtype">bool</span></div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="namespacebeast_1_1detail.html#ae415183e29129e8b9e510e044632ead9"> 70</a></span>&#160;<a class="code" href="namespacebeast_1_1detail.html#ae415183e29129e8b9e510e044632ead9">parse_negative_integral</a>(Int&amp; num, FwdIt first, FwdIt last)</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;{</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; Int limit_value = <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/numeric_limits/min.html">std::numeric_limits&lt;Int&gt;::min</a>() / 10;</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; Int limit_digit = <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/numeric_limits/min.html">std::numeric_limits&lt;Int&gt;::min</a>() % 10;</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; </div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <span class="keywordflow">if</span> (limit_digit &lt; 0)</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; limit_digit = -limit_digit;</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; </div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <span class="keywordflow">return</span> parse_integral&lt;Int&gt;(</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; num, first, last, [limit_value, limit_digit](Int&amp; value, Int digit) {</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; assert((digit &gt;= 0) &amp;&amp; (digit &lt;= 9));</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <span class="keywordflow">if</span> (value &lt; limit_value ||</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; (value == limit_value &amp;&amp; digit &gt; limit_digit))</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; value = (value * 10) - digit;</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; });</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;}</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="comment">// These specializatons get called by the non-member functions to do the work</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> Out, <span class="keyword">class</span> In&gt;</div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="structbeast_1_1detail_1_1LexicalCast.html"> 41</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structbeast_1_1detail_1_1LexicalCast.html">LexicalCast</a>;</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; </div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="comment">// conversion to std::string</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> In&gt;</div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="structbeast_1_1detail_1_1LexicalCast_3_01std_1_1string_00_01In_01_4.html"> 45</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structbeast_1_1detail_1_1LexicalCast.html">LexicalCast</a>&lt;<a class="code" href="namespacestd.html">std</a>::string, In&gt;</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;{</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="keyword">explicit</span> <a class="code" href="structbeast_1_1detail_1_1LexicalCast.html">LexicalCast</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> Arithmetic = In&gt;</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/enable_if.html">std::enable_if_t&lt;std::is_arithmetic_v&lt;Arithmetic&gt;</a>, <span class="keywordtype">bool</span>&gt;</div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="structbeast_1_1detail_1_1LexicalCast_3_01std_1_1string_00_01In_01_4.html#a9011ec7c5676a9404b7fa71e736d640b"> 51</a></span>&#160; <a class="code" href="structbeast_1_1detail_1_1LexicalCast_3_01std_1_1string_00_01In_01_4.html#a9011ec7c5676a9404b7fa71e736d640b">operator()</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a>&amp; out, Arithmetic in)</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; {</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; out = <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string/to_string.html">std::to_string</a>(in);</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; }</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> Enumeration = In&gt;</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/enable_if.html">std::enable_if_t&lt;std::is_enum_v&lt;Enumeration&gt;</a>, <span class="keywordtype">bool</span>&gt;</div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="structbeast_1_1detail_1_1LexicalCast_3_01std_1_1string_00_01In_01_4.html#af7b8a6eed91152133d7b85ac04430363"> 59</a></span>&#160; <a class="code" href="structbeast_1_1detail_1_1LexicalCast_3_01std_1_1string_00_01In_01_4.html#af7b8a6eed91152133d7b85ac04430363">operator()</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a>&amp; out, Enumeration in)</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; {</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; out = <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string/to_string.html">std::to_string</a>(</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="keyword">static_cast&lt;</span><a class="codeRef" href="http://en.cppreference.com/w/cpp/types/underlying_type.html">std::underlying_type_t&lt;Enumeration&gt;</a><span class="keyword">&gt;</span>(in));</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; }</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;};</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;<span class="comment">// Parse std::string to number</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> Out&gt;</div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4.html"> 69</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structbeast_1_1detail_1_1LexicalCast.html">LexicalCast</a>&lt;Out, <a class="code" href="namespacestd.html">std</a>::string&gt;</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;{</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; <span class="keyword">explicit</span> <a class="code" href="structbeast_1_1detail_1_1LexicalCast.html">LexicalCast</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; </div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; static_assert(</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; std::is_integral_v&lt;Out&gt;,</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <span class="stringliteral">&quot;beast::LexicalCast can only be used with integral types&quot;</span>);</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; </div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> Integral = Out&gt;</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/enable_if.html">std::enable_if_t</a>&lt;</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; std::is_integral_v&lt;Integral&gt; &amp;&amp; !std::is_same_v&lt;Integral, bool&gt;,</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <span class="keywordtype">bool</span>&gt;</div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4.html#a96cba3e784d4f9d5cdf5c53f456bd20d"> 81</a></span>&#160; <a class="code" href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4.html#a96cba3e784d4f9d5cdf5c53f456bd20d">operator()</a>(Integral&amp; out, <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; in)<span class="keyword"> const</span></div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <span class="keyword">auto</span> first = in.data();</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="keyword">auto</span> last = in.data() + in.size();</div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; </div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="keywordflow">if</span> (first != last &amp;&amp; *first == <span class="charliteral">&#39;+&#39;</span>)</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; ++first;</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> Int, <span class="keyword">class</span> FwdIt&gt;</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;<span class="keywordtype">bool</span></div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="namespacebeast_1_1detail.html#aa70e0717665bcd738e7f2061871659a5"> 91</a></span>&#160;<a class="code" href="namespacebeast_1_1detail.html#aa70e0717665bcd738e7f2061871659a5">parse_positive_integral</a>(Int&amp; num, FwdIt first, FwdIt last)</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160;{</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; Int limit_value = <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/numeric_limits/max.html">std::numeric_limits&lt;Int&gt;::max</a>() / 10;</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; Int limit_digit = <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/numeric_limits/max.html">std::numeric_limits&lt;Int&gt;::max</a>() % 10;</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; </div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="keywordflow">return</span> parse_integral&lt;Int&gt;(</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; num, first, last, [limit_value, limit_digit](Int&amp; value, Int digit) {</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; assert((digit &gt;= 0) &amp;&amp; (digit &lt;= 9));</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <span class="keywordflow">if</span> (value &gt; limit_value ||</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; (value == limit_value &amp;&amp; digit &gt; limit_digit))</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; value = (value * 10) + digit;</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; });</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160;}</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; </div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> IntType, <span class="keyword">class</span> FwdIt&gt;</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160;<span class="keywordtype">bool</span></div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="namespacebeast_1_1detail.html#a46e6c345f0fe678c8953d540211bab29"> 109</a></span>&#160;<a class="code" href="namespacebeast_1_1detail.html#a46e6c345f0fe678c8953d540211bab29">parseSigned</a>(IntType&amp; result, FwdIt first, FwdIt last)</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160;{</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; static_assert(</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/is_signed.html">std::is_signed&lt;IntType&gt;::value</a>,</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <span class="stringliteral">&quot;You may only call parseSigned with a signed integral type.&quot;</span>);</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; </div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="keywordflow">if</span> (first != last &amp;&amp; *first == <span class="charliteral">&#39;-&#39;</span>)</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="keywordflow">return</span> <a class="code" href="namespacebeast_1_1detail.html#ae415183e29129e8b9e510e044632ead9">parse_negative_integral</a>(result, first + 1, last);</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <span class="keyword">auto</span> ret = <a class="codeRef" href="http://en.cppreference.com/w/cpp/utility/from_chars.html">std::from_chars</a>(first, last, out);</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; </div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="keywordflow">return</span> ret.ec == <a class="codeRef" href="http://en.cppreference.com/w/cpp/error/errc.html">std::errc</a>() &amp;&amp; ret.ptr == last;</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; }</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; </div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4.html#a856f7e1ddf2ca2ea9ad0afaabcf83de9"> 95</a></span>&#160; <a class="code" href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4.html#a856f7e1ddf2ca2ea9ad0afaabcf83de9">operator()</a>(<span class="keywordtype">bool</span>&amp; out, <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> in)<span class="keyword"> const</span></div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <span class="comment">// Convert the input to lowercase</span></div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/algorithm/transform.html">std::transform</a>(in.begin(), in.end(), in.begin(), [](<span class="keyword">auto</span> c) {</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; return std::tolower(static_cast&lt;unsigned char&gt;(c));</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; });</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; </div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; <span class="keywordflow">if</span> (in == <span class="stringliteral">&quot;1&quot;</span> || in == <span class="stringliteral">&quot;true&quot;</span>)</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; {</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; out = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; }</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="keywordflow">if</span> (in == <span class="stringliteral">&quot;0&quot;</span> || in == <span class="stringliteral">&quot;false&quot;</span>)</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; {</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; out = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; }</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; </div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; }</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;};</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; </div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="keywordflow">if</span> (first != last &amp;&amp; *first == <span class="charliteral">&#39;+&#39;</span>)</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <span class="keywordflow">return</span> <a class="code" href="namespacebeast_1_1detail.html#aa70e0717665bcd738e7f2061871659a5">parse_positive_integral</a>(result, first + 1, last);</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; </div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="keywordflow">return</span> <a class="code" href="namespacebeast_1_1detail.html#aa70e0717665bcd738e7f2061871659a5">parse_positive_integral</a>(result, first, last);</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;}</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; </div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> UIntType, <span class="keyword">class</span> FwdIt&gt;</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;<span class="keywordtype">bool</span></div>
<div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="namespacebeast_1_1detail.html#a656c30e412ea4bce8e82a710d29f0732"> 126</a></span>&#160;<a class="code" href="namespacebeast_1_1detail.html#a656c30e412ea4bce8e82a710d29f0732">parseUnsigned</a>(UIntType&amp; result, FwdIt first, FwdIt last)</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160;{</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; static_assert(</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/is_unsigned.html">std::is_unsigned&lt;UIntType&gt;::value</a>,</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; <span class="stringliteral">&quot;You may only call parseUnsigned with an unsigned integral type.&quot;</span>);</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; </div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; <span class="keywordflow">if</span> (first != last &amp;&amp; *first == <span class="charliteral">&#39;+&#39;</span>)</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; <span class="keywordflow">return</span> <a class="code" href="namespacebeast_1_1detail.html#aa70e0717665bcd738e7f2061871659a5">parse_positive_integral</a>(result, first + 1, last);</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; </div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <span class="keywordflow">return</span> <a class="code" href="namespacebeast_1_1detail.html#aa70e0717665bcd738e7f2061871659a5">parse_positive_integral</a>(result, first, last);</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160;}</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; </div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160;<span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160;<span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; </div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;<span class="comment">// Conversion from null terminated char const*</span></div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> Out&gt;</div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01char_01const_01_5_01_4.html"> 122</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structbeast_1_1detail_1_1LexicalCast.html">LexicalCast</a>&lt;Out, char const*&gt;</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;{</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; <span class="keyword">explicit</span> <a class="code" href="structbeast_1_1detail_1_1LexicalCast.html">LexicalCast</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; </div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01char_01const_01_5_01_4.html#a9cd177969727c4f05ebfc958d15a74f0"> 127</a></span>&#160; <a class="code" href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01char_01const_01_5_01_4.html#a9cd177969727c4f05ebfc958d15a74f0">operator()</a>(Out&amp; out, <span class="keywordtype">char</span> <span class="keyword">const</span>* in)<span class="keyword"> const</span></div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <span class="keywordflow">return</span> <a class="code" href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4.html">LexicalCast&lt;Out, std::string&gt;</a>()(out, in);</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; }</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160;};</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; </div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160;<span class="comment">// Conversion from null terminated char*</span></div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;<span class="comment">// The string is not modified.</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> Out&gt;</div>
<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01char_01_5_01_4.html"> 136</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structbeast_1_1detail_1_1LexicalCast.html">LexicalCast</a>&lt;Out, char*&gt;</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160;{</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <span class="keyword">explicit</span> <a class="code" href="structbeast_1_1detail_1_1LexicalCast.html">LexicalCast</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; </div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160;<span class="comment">// These specializatons get called by the non-member functions to do the work</span></div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> Out, <span class="keyword">class</span> In&gt;</div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="structbeast_1_1detail_1_1LexicalCast.html"> 142</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structbeast_1_1detail_1_1LexicalCast.html">LexicalCast</a>;</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; </div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160;<span class="comment">// conversion to std::string</span></div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> In&gt;</div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="structbeast_1_1detail_1_1LexicalCast_3_01std_1_1string_00_01In_01_4.html"> 146</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structbeast_1_1detail_1_1LexicalCast.html">LexicalCast</a>&lt;<a class="code" href="namespacestd.html">std</a>::string, In&gt;</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160;{</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; <span class="keyword">explicit</span> <a class="code" href="structbeast_1_1detail_1_1LexicalCast.html">LexicalCast</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; </div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> Arithmetic = In&gt;</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/enable_if.html">std::enable_if_t&lt;std::is_arithmetic&lt;Arithmetic&gt;::value</a>, <span class="keywordtype">bool</span>&gt;</div>
<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="structbeast_1_1detail_1_1LexicalCast_3_01std_1_1string_00_01In_01_4.html#ae1a5849c5db68f15a5cf39e14e47639c"> 152</a></span>&#160; <a class="code" href="structbeast_1_1detail_1_1LexicalCast_3_01std_1_1string_00_01In_01_4.html#ae1a5849c5db68f15a5cf39e14e47639c">operator()</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a>&amp; out, Arithmetic in)</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; {</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; out = <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string/to_string.html">std::to_string</a>(in);</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; }</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; </div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> Enumeration = In&gt;</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/enable_if.html">std::enable_if_t&lt;std::is_enum&lt;Enumeration&gt;::value</a>, <span class="keywordtype">bool</span>&gt;</div>
<div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="structbeast_1_1detail_1_1LexicalCast_3_01std_1_1string_00_01In_01_4.html#a96fb4e502f3270968ac2628cdd75424e"> 160</a></span>&#160; <a class="code" href="structbeast_1_1detail_1_1LexicalCast_3_01std_1_1string_00_01In_01_4.html#a96fb4e502f3270968ac2628cdd75424e">operator()</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a>&amp; out, Enumeration in)</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; {</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; out = <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string/to_string.html">std::to_string</a>(</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; <span class="keyword">static_cast&lt;</span><a class="codeRef" href="http://en.cppreference.com/w/cpp/types/underlying_type.html">std::underlying_type_t&lt;Enumeration&gt;</a><span class="keyword">&gt;</span>(in));</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; }</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160;};</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; </div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160;<span class="comment">// Parse std::string to number</span></div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> Out&gt;</div>
<div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4.html"> 170</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structbeast_1_1detail_1_1LexicalCast.html">LexicalCast</a>&lt;Out, <a class="code" href="namespacestd.html">std</a>::string&gt;</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160;{</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; <span class="keyword">explicit</span> <a class="code" href="structbeast_1_1detail_1_1LexicalCast.html">LexicalCast</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; </div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; static_assert(</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/is_integral.html">std::is_integral&lt;Out&gt;::value</a>,</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; <span class="stringliteral">&quot;beast::LexicalCast can only be used with integral types&quot;</span>);</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; </div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> Integral = Out&gt;</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/enable_if.html">std::enable_if_t&lt;std::is_unsigned&lt;Integral&gt;::value</a>, <span class="keywordtype">bool</span>&gt;</div>
<div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4.html#a3ee836ecd0beec9d6f124f57707d524a"> 180</a></span>&#160; <a class="code" href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4.html#a3ee836ecd0beec9d6f124f57707d524a">operator()</a>(Integral&amp; out, <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; in)<span class="keyword"> const</span></div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; <span class="keywordflow">return</span> <a class="code" href="namespacebeast_1_1detail.html#a656c30e412ea4bce8e82a710d29f0732">parseUnsigned</a>(out, in.begin(), in.end());</div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; }</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01char_01_5_01_4.html#ab51af7f68ba7886952227b4b34e3b8e3"> 141</a></span>&#160; <a class="code" href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01char_01_5_01_4.html#ab51af7f68ba7886952227b4b34e3b8e3">operator()</a>(Out&amp; out, <span class="keywordtype">char</span>* in)<span class="keyword"> const</span></div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <span class="keywordflow">return</span> <a class="code" href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4.html">LexicalCast&lt;Out, std::string&gt;</a>()(out, in);</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; }</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160;};</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; </div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160;} <span class="comment">// namespace detail</span></div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; </div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160;<span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; </div>
<div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="structbeast_1_1BadLexicalCast.html"> 154</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structbeast_1_1BadLexicalCast.html">BadLexicalCast</a> : <span class="keyword">public</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/bad_cast.html">std::bad_cast</a></div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160;{</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; <span class="keyword">explicit</span> <a class="code" href="structbeast_1_1BadLexicalCast.html#ad2a88637429ced890600c345e040384a">BadLexicalCast</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160;};</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; </div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> Out, <span class="keyword">class</span> In&gt;</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160;<span class="keywordtype">bool</span></div>
<div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="namespacebeast.html#aeb241ed2f4422ea57283956ca58c5d42"> 164</a></span>&#160;<a class="code" href="namespacebeast.html#aeb241ed2f4422ea57283956ca58c5d42">lexicalCastChecked</a>(Out&amp; out, In in)</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160;{</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <span class="keywordflow">return</span> <a class="code" href="structbeast_1_1detail_1_1LexicalCast.html">detail::LexicalCast&lt;Out, In&gt;</a>()(out, in);</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160;}</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; </div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> Out, <span class="keyword">class</span> In&gt;</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160;Out</div>
<div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="namespacebeast.html#a0aecda88ba6663d0c9f5c25a7d41722b"> 177</a></span>&#160;<a class="code" href="namespacebeast.html#a0aecda88ba6663d0c9f5c25a7d41722b">lexicalCastThrow</a>(In in)</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160;{</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <span class="keywordflow">if</span> (Out out; <a class="code" href="namespacebeast.html#aeb241ed2f4422ea57283956ca58c5d42">lexicalCastChecked</a>(out, in))</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; <span class="keywordflow">return</span> out;</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; </div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="structbeast_1_1BadLexicalCast.html">BadLexicalCast</a>();</div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160;}</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; </div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> Integral = Out&gt;</div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/enable_if.html">std::enable_if_t&lt;std::is_signed&lt;Integral&gt;::value</a>, <span class="keywordtype">bool</span>&gt;</div>
<div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4.html#ac846b92603eccd34dc96c9820e14a293"> 187</a></span>&#160; <a class="code" href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4.html#ac846b92603eccd34dc96c9820e14a293">operator()</a>(Integral&amp; out, <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; in)<span class="keyword"> const</span></div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; <span class="keywordflow">return</span> <a class="code" href="namespacebeast_1_1detail.html#a46e6c345f0fe678c8953d540211bab29">parseSigned</a>(out, in.begin(), in.end());</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160; }</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; </div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4.html#a856f7e1ddf2ca2ea9ad0afaabcf83de9"> 193</a></span>&#160; <a class="code" href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4.html#a856f7e1ddf2ca2ea9ad0afaabcf83de9">operator()</a>(<span class="keywordtype">bool</span>&amp; out, <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> in)<span class="keyword"> const</span></div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; <span class="comment">// Convert the input to lowercase</span></div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/algorithm/transform.html">std::transform</a>(in.begin(), in.end(), in.begin(), [](<span class="keyword">auto</span> c) {</div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; return std::tolower(static_cast&lt;unsigned char&gt;(c));</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160; });</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> Out, <span class="keyword">class</span> In&gt;</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160;Out</div>
<div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="namespacebeast.html#a67b02c0e029d6e8394e8832e74c95f27"> 192</a></span>&#160;<a class="code" href="namespacebeast.html#a67b02c0e029d6e8394e8832e74c95f27">lexicalCast</a>(In in, Out defaultValue = Out())</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160;{</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; <span class="keywordflow">if</span> (Out out; <a class="code" href="namespacebeast.html#aeb241ed2f4422ea57283956ca58c5d42">lexicalCastChecked</a>(out, in))</div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; <span class="keywordflow">return</span> out;</div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; </div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; <span class="keywordflow">return</span> defaultValue;</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160;}</div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; </div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; <span class="keywordflow">if</span> (in == <span class="stringliteral">&quot;1&quot;</span> || in == <span class="stringliteral">&quot;true&quot;</span>)</div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; {</div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160; out = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160; }</div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160; </div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160; <span class="keywordflow">if</span> (in == <span class="stringliteral">&quot;0&quot;</span> || in == <span class="stringliteral">&quot;false&quot;</span>)</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160; {</div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; out = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160; }</div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160; </div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160; }</div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160;};</div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160; </div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160;<span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160; </div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160;<span class="comment">// Conversion from null terminated char const*</span></div>
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> Out&gt;</div>
<div class="line"><a name="l00220"></a><span class="lineno"><a class="line" href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01char_01const_01_5_01_4.html"> 220</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structbeast_1_1detail_1_1LexicalCast.html">LexicalCast</a>&lt;Out, char const*&gt;</div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160;{</div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160; <span class="keyword">explicit</span> <a class="code" href="structbeast_1_1detail_1_1LexicalCast.html">LexicalCast</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>&#160; </div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00225"></a><span class="lineno"><a class="line" href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01char_01const_01_5_01_4.html#a9cd177969727c4f05ebfc958d15a74f0"> 225</a></span>&#160; <a class="code" href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01char_01const_01_5_01_4.html#a9cd177969727c4f05ebfc958d15a74f0">operator()</a>(Out&amp; out, <span class="keywordtype">char</span> <span class="keyword">const</span>* in)<span class="keyword"> const</span></div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>&#160; <span class="keywordflow">return</span> <a class="code" href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4.html">LexicalCast&lt;Out, std::string&gt;</a>()(out, in);</div>
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160; }</div>
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>&#160;};</div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>&#160; </div>
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160;<span class="comment">// Conversion from null terminated char*</span></div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160;<span class="comment">// The string is not modified.</span></div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> Out&gt;</div>
<div class="line"><a name="l00234"></a><span class="lineno"><a class="line" href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01char_01_5_01_4.html"> 234</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structbeast_1_1detail_1_1LexicalCast.html">LexicalCast</a>&lt;Out, char*&gt;</div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>&#160;{</div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>&#160; <span class="keyword">explicit</span> <a class="code" href="structbeast_1_1detail_1_1LexicalCast.html">LexicalCast</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160; </div>
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160; <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00239"></a><span class="lineno"><a class="line" href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01char_01_5_01_4.html#ab51af7f68ba7886952227b4b34e3b8e3"> 239</a></span>&#160; <a class="code" href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01char_01_5_01_4.html#ab51af7f68ba7886952227b4b34e3b8e3">operator()</a>(Out&amp; out, <span class="keywordtype">char</span>* in)<span class="keyword"> const</span></div>
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>&#160; <span class="keywordflow">return</span> <a class="code" href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4.html">LexicalCast&lt;Out, std::string&gt;</a>()(out, in);</div>
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>&#160; }</div>
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>&#160;};</div>
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>&#160; </div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>&#160;<span class="preprocessor">#if BOOST_COMP_MSVC</span></div>
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>&#160;<span class="preprocessor">#pragma warning(pop)</span></div>
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160; </div>
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160;} <span class="comment">// namespace detail</span></div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160; </div>
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160;<span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160; </div>
<div class="line"><a name="l00256"></a><span class="lineno"><a class="line" href="structbeast_1_1BadLexicalCast.html"> 256</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structbeast_1_1BadLexicalCast.html">BadLexicalCast</a> : <span class="keyword">public</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/bad_cast.html">std::bad_cast</a></div>
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>&#160;{</div>
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>&#160; <span class="keyword">explicit</span> <a class="code" href="structbeast_1_1BadLexicalCast.html#ad2a88637429ced890600c345e040384a">BadLexicalCast</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>&#160;};</div>
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>&#160; </div>
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> Out, <span class="keyword">class</span> In&gt;</div>
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>&#160;<span class="keywordtype">bool</span></div>
<div class="line"><a name="l00266"></a><span class="lineno"><a class="line" href="namespacebeast.html#aeb241ed2f4422ea57283956ca58c5d42"> 266</a></span>&#160;<a class="code" href="namespacebeast.html#aeb241ed2f4422ea57283956ca58c5d42">lexicalCastChecked</a>(Out&amp; out, In in)</div>
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>&#160;{</div>
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>&#160; <span class="keywordflow">return</span> <a class="code" href="structbeast_1_1detail_1_1LexicalCast.html">detail::LexicalCast&lt;Out, In&gt;</a>()(out, in);</div>
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>&#160;}</div>
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>&#160; </div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> Out, <span class="keyword">class</span> In&gt;</div>
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>&#160;Out</div>
<div class="line"><a name="l00279"></a><span class="lineno"><a class="line" href="namespacebeast.html#a0aecda88ba6663d0c9f5c25a7d41722b"> 279</a></span>&#160;<a class="code" href="namespacebeast.html#a0aecda88ba6663d0c9f5c25a7d41722b">lexicalCastThrow</a>(In in)</div>
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>&#160;{</div>
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>&#160; Out out;</div>
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>&#160; </div>
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="namespacebeast.html#aeb241ed2f4422ea57283956ca58c5d42">lexicalCastChecked</a>(out, in))</div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>&#160; <span class="keywordflow">return</span> out;</div>
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>&#160; </div>
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>&#160; <span class="keywordflow">throw</span> <a class="code" href="structbeast_1_1BadLexicalCast.html">BadLexicalCast</a>();</div>
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>&#160;}</div>
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>&#160; </div>
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> Out, <span class="keyword">class</span> In&gt;</div>
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>&#160;Out</div>
<div class="line"><a name="l00296"></a><span class="lineno"><a class="line" href="namespacebeast.html#a67b02c0e029d6e8394e8832e74c95f27"> 296</a></span>&#160;<a class="code" href="namespacebeast.html#a67b02c0e029d6e8394e8832e74c95f27">lexicalCast</a>(In in, Out defaultValue = Out())</div>
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>&#160;{</div>
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>&#160; Out out;</div>
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>&#160; </div>
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>&#160; <span class="keywordflow">if</span> (<a class="code" href="namespacebeast.html#aeb241ed2f4422ea57283956ca58c5d42">lexicalCastChecked</a>(out, in))</div>
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>&#160; <span class="keywordflow">return</span> out;</div>
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>&#160; </div>
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>&#160; <span class="keywordflow">return</span> defaultValue;</div>
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>&#160;}</div>
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>&#160; </div>
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>&#160;} <span class="comment">// namespace beast</span></div>
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span>&#160; </div>
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160;} <span class="comment">// namespace beast</span></div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; </div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="anamespacebeast_1_1detail_html_a2c941f8108157976e4d3263334041703"><div class="ttname"><a href="namespacebeast_1_1detail.html#a2c941f8108157976e4d3263334041703">beast::detail::parse_integral</a></div><div class="ttdeci">bool parse_integral(Int &amp;num, FwdIt first, FwdIt last, Accumulator accumulator)</div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00049">LexicalCast.h:49</a></div></div>
<div class="ttc" id="ais_signed_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/is_signed.html">std::is_signed</a></div></div>
<div class="ttc" id="ais_unsigned_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/is_unsigned.html">std::is_unsigned</a></div></div>
<div class="ttc" id="abasic_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="autility_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/utility.html">utility</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_aa70e0717665bcd738e7f2061871659a5"><div class="ttname"><a href="namespacebeast_1_1detail.html#aa70e0717665bcd738e7f2061871659a5">beast::detail::parse_positive_integral</a></div><div class="ttdeci">bool parse_positive_integral(Int &amp;num, FwdIt first, FwdIt last)</div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00091">LexicalCast.h:91</a></div></div>
<div class="ttc" id="anamespacebeast_html_a67b02c0e029d6e8394e8832e74c95f27"><div class="ttname"><a href="namespacebeast.html#a67b02c0e029d6e8394e8832e74c95f27">beast::lexicalCast</a></div><div class="ttdeci">Out lexicalCast(In in, Out defaultValue=Out())</div><div class="ttdoc">Convert from one type to another.</div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00296">LexicalCast.h:296</a></div></div>
<div class="ttc" id="astructbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4_html_a96cba3e784d4f9d5cdf5c53f456bd20d"><div class="ttname"><a href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4.html#a96cba3e784d4f9d5cdf5c53f456bd20d">beast::detail::LexicalCast&lt; Out, std::string &gt;::operator()</a></div><div class="ttdeci">std::enable_if_t&lt; std::is_integral_v&lt; Integral &gt; &amp;&amp;!std::is_same_v&lt; Integral, bool &gt;, bool &gt; operator()(Integral &amp;out, std::string const &amp;in) const</div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00081">LexicalCast.h:81</a></div></div>
<div class="ttc" id="acharconv_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/charconv.html">charconv</a></div></div>
<div class="ttc" id="anamespacebeast_html_a67b02c0e029d6e8394e8832e74c95f27"><div class="ttname"><a href="namespacebeast.html#a67b02c0e029d6e8394e8832e74c95f27">beast::lexicalCast</a></div><div class="ttdeci">Out lexicalCast(In in, Out defaultValue=Out())</div><div class="ttdoc">Convert from one type to another.</div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00192">LexicalCast.h:192</a></div></div>
<div class="ttc" id="aiterator_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/iterator.html">iterator</a></div></div>
<div class="ttc" id="astructbeast_1_1BadLexicalCast_html"><div class="ttname"><a href="structbeast_1_1BadLexicalCast.html">beast::BadLexicalCast</a></div><div class="ttdoc">Thrown when a conversion is not possible with LexicalCast.</div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00256">LexicalCast.h:256</a></div></div>
<div class="ttc" id="astructbeast_1_1detail_1_1LexicalCast_3_01Out_00_01char_01_5_01_4_html_ab51af7f68ba7886952227b4b34e3b8e3"><div class="ttname"><a href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01char_01_5_01_4.html#ab51af7f68ba7886952227b4b34e3b8e3">beast::detail::LexicalCast&lt; Out, char * &gt;::operator()</a></div><div class="ttdeci">bool operator()(Out &amp;out, char *in) const</div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00239">LexicalCast.h:239</a></div></div>
<div class="ttc" id="aiostream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/iostream.html">iostream</a></div></div>
<div class="ttc" id="astructbeast_1_1detail_1_1LexicalCast_3_01std_1_1string_00_01In_01_4_html_a9011ec7c5676a9404b7fa71e736d640b"><div class="ttname"><a href="structbeast_1_1detail_1_1LexicalCast_3_01std_1_1string_00_01In_01_4.html#a9011ec7c5676a9404b7fa71e736d640b">beast::detail::LexicalCast&lt; std::string, In &gt;::operator()</a></div><div class="ttdeci">std::enable_if_t&lt; std::is_arithmetic_v&lt; Arithmetic &gt;, bool &gt; operator()(std::string &amp;out, Arithmetic in)</div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00051">LexicalCast.h:51</a></div></div>
<div class="ttc" id="astructbeast_1_1BadLexicalCast_html"><div class="ttname"><a href="structbeast_1_1BadLexicalCast.html">beast::BadLexicalCast</a></div><div class="ttdoc">Thrown when a conversion is not possible with LexicalCast.</div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00154">LexicalCast.h:154</a></div></div>
<div class="ttc" id="astructbeast_1_1detail_1_1LexicalCast_3_01Out_00_01char_01_5_01_4_html_ab51af7f68ba7886952227b4b34e3b8e3"><div class="ttname"><a href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01char_01_5_01_4.html#ab51af7f68ba7886952227b4b34e3b8e3">beast::detail::LexicalCast&lt; Out, char * &gt;::operator()</a></div><div class="ttdeci">bool operator()(Out &amp;out, char *in) const</div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00141">LexicalCast.h:141</a></div></div>
<div class="ttc" id="aalgorithm_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/algorithm.html">algorithm</a></div></div>
<div class="ttc" id="aunderlying_type_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/underlying_type.html">std::underlying_type_t</a></div></div>
<div class="ttc" id="abad_cast_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/bad_cast.html">std::bad_cast</a></div><div class="ttdoc">STL class.</div></div>
<div class="ttc" id="astructbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4_html"><div class="ttname"><a href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4.html">beast::detail::LexicalCast&lt; Out, std::string &gt;</a></div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00170">LexicalCast.h:170</a></div></div>
<div class="ttc" id="astructbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4_html_ac846b92603eccd34dc96c9820e14a293"><div class="ttname"><a href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4.html#ac846b92603eccd34dc96c9820e14a293">beast::detail::LexicalCast&lt; Out, std::string &gt;::operator()</a></div><div class="ttdeci">std::enable_if_t&lt; std::is_signed&lt; Integral &gt;::value, bool &gt; operator()(Integral &amp;out, std::string const &amp;in) const</div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00187">LexicalCast.h:187</a></div></div>
<div class="ttc" id="astructbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4_html"><div class="ttname"><a href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4.html">beast::detail::LexicalCast&lt; Out, std::string &gt;</a></div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00069">LexicalCast.h:69</a></div></div>
<div class="ttc" id="aenable_if_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/enable_if.html">std::enable_if_t</a></div></div>
<div class="ttc" id="astructbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4_html_a3ee836ecd0beec9d6f124f57707d524a"><div class="ttname"><a href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4.html#a3ee836ecd0beec9d6f124f57707d524a">beast::detail::LexicalCast&lt; Out, std::string &gt;::operator()</a></div><div class="ttdeci">std::enable_if_t&lt; std::is_unsigned&lt; Integral &gt;::value, bool &gt; operator()(Integral &amp;out, std::string const &amp;in) const</div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00180">LexicalCast.h:180</a></div></div>
<div class="ttc" id="astructbeast_1_1detail_1_1LexicalCast_3_01std_1_1string_00_01In_01_4_html_ae1a5849c5db68f15a5cf39e14e47639c"><div class="ttname"><a href="structbeast_1_1detail_1_1LexicalCast_3_01std_1_1string_00_01In_01_4.html#ae1a5849c5db68f15a5cf39e14e47639c">beast::detail::LexicalCast&lt; std::string, In &gt;::operator()</a></div><div class="ttdeci">std::enable_if_t&lt; std::is_arithmetic&lt; Arithmetic &gt;::value, bool &gt; operator()(std::string &amp;out, Arithmetic in)</div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00152">LexicalCast.h:152</a></div></div>
<div class="ttc" id="ato_string_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string/to_string.html">std::to_string</a></div><div class="ttdeci">T to_string(T... args)</div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_a46e6c345f0fe678c8953d540211bab29"><div class="ttname"><a href="namespacebeast_1_1detail.html#a46e6c345f0fe678c8953d540211bab29">beast::detail::parseSigned</a></div><div class="ttdeci">bool parseSigned(IntType &amp;result, FwdIt first, FwdIt last)</div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00109">LexicalCast.h:109</a></div></div>
<div class="ttc" id="ais_integral_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/is_integral.html">std::is_integral</a></div></div>
<div class="ttc" id="aerrc_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/error/errc.html">std::errc</a></div></div>
<div class="ttc" id="afrom_chars_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/from_chars.html">std::from_chars</a></div><div class="ttdeci">T from_chars(T... args)</div></div>
<div class="ttc" id="atransform_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/algorithm/transform.html">std::transform</a></div><div class="ttdeci">T transform(T... args)</div></div>
<div class="ttc" id="anamespacebeast_html_a0aecda88ba6663d0c9f5c25a7d41722b"><div class="ttname"><a href="namespacebeast.html#a0aecda88ba6663d0c9f5c25a7d41722b">beast::lexicalCastThrow</a></div><div class="ttdeci">Out lexicalCastThrow(In in)</div><div class="ttdoc">Convert from one type to another, throw on error.</div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00279">LexicalCast.h:279</a></div></div>
<div class="ttc" id="astructbeast_1_1detail_1_1LexicalCast_3_01Out_00_01char_01const_01_5_01_4_html_a9cd177969727c4f05ebfc958d15a74f0"><div class="ttname"><a href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01char_01const_01_5_01_4.html#a9cd177969727c4f05ebfc958d15a74f0">beast::detail::LexicalCast&lt; Out, char const * &gt;::operator()</a></div><div class="ttdeci">bool operator()(Out &amp;out, char const *in) const</div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00225">LexicalCast.h:225</a></div></div>
<div class="ttc" id="astructbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4_html_a856f7e1ddf2ca2ea9ad0afaabcf83de9"><div class="ttname"><a href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4.html#a856f7e1ddf2ca2ea9ad0afaabcf83de9">beast::detail::LexicalCast&lt; Out, std::string &gt;::operator()</a></div><div class="ttdeci">bool operator()(bool &amp;out, std::string in) const</div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00193">LexicalCast.h:193</a></div></div>
<div class="ttc" id="amin_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/numeric_limits/min.html">std::numeric_limits::min</a></div><div class="ttdeci">T min(T... args)</div></div>
<div class="ttc" id="astructbeast_1_1detail_1_1LexicalCast_3_01std_1_1string_00_01In_01_4_html_a96fb4e502f3270968ac2628cdd75424e"><div class="ttname"><a href="structbeast_1_1detail_1_1LexicalCast_3_01std_1_1string_00_01In_01_4.html#a96fb4e502f3270968ac2628cdd75424e">beast::detail::LexicalCast&lt; std::string, In &gt;::operator()</a></div><div class="ttdeci">std::enable_if_t&lt; std::is_enum&lt; Enumeration &gt;::value, bool &gt; operator()(std::string &amp;out, Enumeration in)</div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00160">LexicalCast.h:160</a></div></div>
<div class="ttc" id="anamespacebeast_html_a0aecda88ba6663d0c9f5c25a7d41722b"><div class="ttname"><a href="namespacebeast.html#a0aecda88ba6663d0c9f5c25a7d41722b">beast::lexicalCastThrow</a></div><div class="ttdeci">Out lexicalCastThrow(In in)</div><div class="ttdoc">Convert from one type to another, throw on error.</div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00177">LexicalCast.h:177</a></div></div>
<div class="ttc" id="astructbeast_1_1detail_1_1LexicalCast_3_01Out_00_01char_01const_01_5_01_4_html_a9cd177969727c4f05ebfc958d15a74f0"><div class="ttname"><a href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01char_01const_01_5_01_4.html#a9cd177969727c4f05ebfc958d15a74f0">beast::detail::LexicalCast&lt; Out, char const * &gt;::operator()</a></div><div class="ttdeci">bool operator()(Out &amp;out, char const *in) const</div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00127">LexicalCast.h:127</a></div></div>
<div class="ttc" id="astructbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4_html_a856f7e1ddf2ca2ea9ad0afaabcf83de9"><div class="ttname"><a href="structbeast_1_1detail_1_1LexicalCast_3_01Out_00_01std_1_1string_01_4.html#a856f7e1ddf2ca2ea9ad0afaabcf83de9">beast::detail::LexicalCast&lt; Out, std::string &gt;::operator()</a></div><div class="ttdeci">bool operator()(bool &amp;out, std::string in) const</div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00095">LexicalCast.h:95</a></div></div>
<div class="ttc" id="acstdlib_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/cstdlib.html">cstdlib</a></div></div>
<div class="ttc" id="acerrno_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/cerrno.html">cerrno</a></div></div>
<div class="ttc" id="alimits_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/limits.html">limits</a></div></div>
<div class="ttc" id="anamespacebeast_html_aeb241ed2f4422ea57283956ca58c5d42"><div class="ttname"><a href="namespacebeast.html#aeb241ed2f4422ea57283956ca58c5d42">beast::lexicalCastChecked</a></div><div class="ttdeci">bool lexicalCastChecked(Out &amp;out, In in)</div><div class="ttdoc">Intelligently convert from one type to another.</div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00266">LexicalCast.h:266</a></div></div>
<div class="ttc" id="anamespacebeast_html_aeb241ed2f4422ea57283956ca58c5d42"><div class="ttname"><a href="namespacebeast.html#aeb241ed2f4422ea57283956ca58c5d42">beast::lexicalCastChecked</a></div><div class="ttdeci">bool lexicalCastChecked(Out &amp;out, In in)</div><div class="ttdoc">Intelligently convert from one type to another.</div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00164">LexicalCast.h:164</a></div></div>
<div class="ttc" id="anamespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div><div class="ttdoc">STL namespace.</div></div>
<div class="ttc" id="astructbeast_1_1BadLexicalCast_html_ad2a88637429ced890600c345e040384a"><div class="ttname"><a href="structbeast_1_1BadLexicalCast.html#ad2a88637429ced890600c345e040384a">beast::BadLexicalCast::BadLexicalCast</a></div><div class="ttdeci">BadLexicalCast()=default</div></div>
<div class="ttc" id="acassert_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/cassert.html">cassert</a></div></div>
<div class="ttc" id="atypeinfo_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/typeinfo.html">typeinfo</a></div></div>
<div class="ttc" id="amax_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/numeric_limits/max.html">std::numeric_limits::max</a></div><div class="ttdeci">T max(T... args)</div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_a656c30e412ea4bce8e82a710d29f0732"><div class="ttname"><a href="namespacebeast_1_1detail.html#a656c30e412ea4bce8e82a710d29f0732">beast::detail::parseUnsigned</a></div><div class="ttdeci">bool parseUnsigned(UIntType &amp;result, FwdIt first, FwdIt last)</div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00126">LexicalCast.h:126</a></div></div>
<div class="ttc" id="astructbeast_1_1detail_1_1LexicalCast_3_01std_1_1string_00_01In_01_4_html_af7b8a6eed91152133d7b85ac04430363"><div class="ttname"><a href="structbeast_1_1detail_1_1LexicalCast_3_01std_1_1string_00_01In_01_4.html#af7b8a6eed91152133d7b85ac04430363">beast::detail::LexicalCast&lt; std::string, In &gt;::operator()</a></div><div class="ttdeci">std::enable_if_t&lt; std::is_enum_v&lt; Enumeration &gt;, bool &gt; operator()(std::string &amp;out, Enumeration in)</div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00059">LexicalCast.h:59</a></div></div>
<div class="ttc" id="atype_traits_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/type_traits.html">type_traits</a></div></div>
<div class="ttc" id="anamespacebeast_1_1detail_html_ae415183e29129e8b9e510e044632ead9"><div class="ttname"><a href="namespacebeast_1_1detail.html#ae415183e29129e8b9e510e044632ead9">beast::detail::parse_negative_integral</a></div><div class="ttdeci">bool parse_negative_integral(Int &amp;num, FwdIt first, FwdIt last)</div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00070">LexicalCast.h:70</a></div></div>
<div class="ttc" id="astructbeast_1_1detail_1_1LexicalCast_html"><div class="ttname"><a href="structbeast_1_1detail_1_1LexicalCast.html">beast::detail::LexicalCast</a></div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00142">LexicalCast.h:142</a></div></div>
<div class="ttc" id="astructbeast_1_1detail_1_1LexicalCast_html"><div class="ttname"><a href="structbeast_1_1detail_1_1LexicalCast.html">beast::detail::LexicalCast</a></div><div class="ttdef"><b>Definition:</b> <a href="LexicalCast_8h_source.html#l00041">LexicalCast.h:41</a></div></div>
<div class="ttc" id="anamespacebeast_html"><div class="ttname"><a href="namespacebeast.html">beast</a></div><div class="ttdef"><b>Definition:</b> <a href="base__uint_8h_source.html#l00641">base_uint.h:641</a></div></div>
<div class="ttc" id="astring_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/string.html">string</a></div></div>
<!-- start footer part -->