This commit is contained in:
manojsdoshi
2020-04-24 01:09:47 +00:00
parent 4ad595bf18
commit 430f6c0cf3
2864 changed files with 304301 additions and 292875 deletions

View File

@@ -106,54 +106,59 @@ $(function() {
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;{</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classripple_1_1base64__test.html#a70f5a4786f2e9171f79628a9fcefc5ab"> 38</a></span>&#160; <a class="code" href="classripple_1_1base64__test.html#a70f5a4786f2e9171f79628a9fcefc5ab">check</a> (<a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; in, <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; out)</div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classripple_1_1base64__test.html#a70f5a4786f2e9171f79628a9fcefc5ab"> 38</a></span>&#160; <a class="code" href="classripple_1_1base64__test.html#a70f5a4786f2e9171f79628a9fcefc5ab">check</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; in, <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span>&amp; out)</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; {</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> encoded = <a class="code" href="namespaceripple.html#a9e4e400df889dc7cb9df0f859a8e4f18">base64_encode</a> (<a class="code" href="namespaceripple.html#a7cc64e12723fbc9606d85442a2569feda13b5bfe96f3e2fe411c9f66f4a582adf">in</a>);</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <span class="keyword">auto</span> <span class="keyword">const</span> encoded = <a class="code" href="namespaceripple.html#a9e4e400df889dc7cb9df0f859a8e4f18">base64_encode</a>(<a class="code" href="namespaceripple.html#a7cc64e12723fbc9606d85442a2569feda13b5bfe96f3e2fe411c9f66f4a582adf">in</a>);</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; BEAST_EXPECT(encoded == <a class="code" href="namespaceripple.html#a7cc64e12723fbc9606d85442a2569fedac68271a63ddbc431c307beb7d2918275">out</a>);</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; BEAST_EXPECT(<a class="code" href="namespaceripple.html#a551be32de1cc0f8a8ff1f14ee84d892b">base64_decode</a> (encoded) == <a class="code" href="namespaceripple.html#a7cc64e12723fbc9606d85442a2569feda13b5bfe96f3e2fe411c9f66f4a582adf">in</a>);</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; BEAST_EXPECT(<a class="code" href="namespaceripple.html#a551be32de1cc0f8a8ff1f14ee84d892b">base64_decode</a>(encoded) == <a class="code" href="namespaceripple.html#a7cc64e12723fbc9606d85442a2569feda13b5bfe96f3e2fe411c9f66f4a582adf">in</a>);</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; }</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; </div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; <span class="keywordtype">void</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="classripple_1_1base64__test.html#a3fa189c95f7931e4abebca3ebcc91c6a"> 46</a></span>&#160; <a class="code" href="classripple_1_1base64__test.html#a3fa189c95f7931e4abebca3ebcc91c6a">run</a>()<span class="keyword"> override</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="keyword"> </span>{</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <a class="code" href="classripple_1_1base64__test.html#a70f5a4786f2e9171f79628a9fcefc5ab">check</a> (<span class="stringliteral">&quot;&quot;</span>, <span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <a class="code" href="classripple_1_1base64__test.html#a70f5a4786f2e9171f79628a9fcefc5ab">check</a> (<span class="stringliteral">&quot;f&quot;</span>, <span class="stringliteral">&quot;Zg==&quot;</span>);</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <a class="code" href="classripple_1_1base64__test.html#a70f5a4786f2e9171f79628a9fcefc5ab">check</a> (<span class="stringliteral">&quot;fo&quot;</span>, <span class="stringliteral">&quot;Zm8=&quot;</span>);</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <a class="code" href="classripple_1_1base64__test.html#a70f5a4786f2e9171f79628a9fcefc5ab">check</a> (<span class="stringliteral">&quot;foo&quot;</span>, <span class="stringliteral">&quot;Zm9v&quot;</span>);</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <a class="code" href="classripple_1_1base64__test.html#a70f5a4786f2e9171f79628a9fcefc5ab">check</a> (<span class="stringliteral">&quot;foob&quot;</span>, <span class="stringliteral">&quot;Zm9vYg==&quot;</span>);</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <a class="code" href="classripple_1_1base64__test.html#a70f5a4786f2e9171f79628a9fcefc5ab">check</a> (<span class="stringliteral">&quot;fooba&quot;</span>, <span class="stringliteral">&quot;Zm9vYmE=&quot;</span>);</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <a class="code" href="classripple_1_1base64__test.html#a70f5a4786f2e9171f79628a9fcefc5ab">check</a> (<span class="stringliteral">&quot;foobar&quot;</span>, <span class="stringliteral">&quot;Zm9vYmFy&quot;</span>);</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <a class="code" href="classripple_1_1base64__test.html#a70f5a4786f2e9171f79628a9fcefc5ab">check</a>(<span class="stringliteral">&quot;&quot;</span>, <span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <a class="code" href="classripple_1_1base64__test.html#a70f5a4786f2e9171f79628a9fcefc5ab">check</a>(<span class="stringliteral">&quot;f&quot;</span>, <span class="stringliteral">&quot;Zg==&quot;</span>);</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <a class="code" href="classripple_1_1base64__test.html#a70f5a4786f2e9171f79628a9fcefc5ab">check</a>(<span class="stringliteral">&quot;fo&quot;</span>, <span class="stringliteral">&quot;Zm8=&quot;</span>);</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <a class="code" href="classripple_1_1base64__test.html#a70f5a4786f2e9171f79628a9fcefc5ab">check</a>(<span class="stringliteral">&quot;foo&quot;</span>, <span class="stringliteral">&quot;Zm9v&quot;</span>);</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <a class="code" href="classripple_1_1base64__test.html#a70f5a4786f2e9171f79628a9fcefc5ab">check</a>(<span class="stringliteral">&quot;foob&quot;</span>, <span class="stringliteral">&quot;Zm9vYg==&quot;</span>);</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <a class="code" href="classripple_1_1base64__test.html#a70f5a4786f2e9171f79628a9fcefc5ab">check</a>(<span class="stringliteral">&quot;fooba&quot;</span>, <span class="stringliteral">&quot;Zm9vYmE=&quot;</span>);</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <a class="code" href="classripple_1_1base64__test.html#a70f5a4786f2e9171f79628a9fcefc5ab">check</a>(<span class="stringliteral">&quot;foobar&quot;</span>, <span class="stringliteral">&quot;Zm9vYmFy&quot;</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; <a class="code" href="classripple_1_1base64__test.html#a70f5a4786f2e9171f79628a9fcefc5ab">check</a>(</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="stringliteral">&quot;Man is distinguished, not only by his reason, but by this singular passion from &quot;</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="stringliteral">&quot;other animals, which is a lust of the mind, that by a perseverance of delight &quot;</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <span class="stringliteral">&quot;in the continued and indefatigable generation of knowledge, exceeds the short &quot;</span></div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="stringliteral">&quot;vehemence of any carnal pleasure.&quot;</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; ,</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="stringliteral">&quot;TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb24sIGJ1dCBieSB0aGlz&quot;</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="stringliteral">&quot;IHNpbmd1bGFyIHBhc3Npb24gZnJvbSBvdGhlciBhbmltYWxzLCB3aGljaCBpcyBhIGx1c3Qgb2Yg&quot;</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <span class="stringliteral">&quot;dGhlIG1pbmQsIHRoYXQgYnkgYSBwZXJzZXZlcmFuY2Ugb2YgZGVsaWdodCBpbiB0aGUgY29udGlu&quot;</span></div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="stringliteral">&quot;dWVkIGFuZCBpbmRlZmF0aWdhYmxlIGdlbmVyYXRpb24gb2Yga25vd2xlZGdlLCBleGNlZWRzIHRo&quot;</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <span class="stringliteral">&quot;ZSBzaG9ydCB2ZWhlbWVuY2Ugb2YgYW55IGNhcm5hbCBwbGVhc3VyZS4=&quot;</span></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; </div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span> notBase64 = <span class="stringliteral">&quot;not_base64!!&quot;</span>;</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span> truncated = <span class="stringliteral">&quot;not&quot;</span>;</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; BEAST_EXPECT(<a class="code" href="namespaceripple.html#a551be32de1cc0f8a8ff1f14ee84d892b">base64_decode</a>(notBase64) == <a class="code" href="namespaceripple.html#a551be32de1cc0f8a8ff1f14ee84d892b">base64_decode</a>(truncated));</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;};</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;<a class="code" href="namespaceripple.html#a2701412a11b118c19256a4c901db2938">BEAST_DEFINE_TESTSUITE</a>(base64, ripple_basics, <a class="code" href="namespaceripple.html">ripple</a>);</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="comment">// ripple</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="stringliteral">&quot;Man is distinguished, not only by his reason, but by this &quot;</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="stringliteral">&quot;singular passion from &quot;</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <span class="stringliteral">&quot;other animals, which is a lust of the mind, that by a &quot;</span></div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="stringliteral">&quot;perseverance of delight &quot;</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="stringliteral">&quot;in the continued and indefatigable generation of knowledge, &quot;</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="stringliteral">&quot;exceeds the short &quot;</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="stringliteral">&quot;vehemence of any carnal pleasure.&quot;</span>,</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <span class="stringliteral">&quot;TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb24sIGJ1dC&quot;</span></div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="stringliteral">&quot;BieSB0aGlz&quot;</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <span class="stringliteral">&quot;IHNpbmd1bGFyIHBhc3Npb24gZnJvbSBvdGhlciBhbmltYWxzLCB3aGljaCBpcyBhIG&quot;</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <span class="stringliteral">&quot;x1c3Qgb2Yg&quot;</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="stringliteral">&quot;dGhlIG1pbmQsIHRoYXQgYnkgYSBwZXJzZXZlcmFuY2Ugb2YgZGVsaWdodCBpbiB0aG&quot;</span></div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <span class="stringliteral">&quot;UgY29udGlu&quot;</span></div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <span class="stringliteral">&quot;dWVkIGFuZCBpbmRlZmF0aWdhYmxlIGdlbmVyYXRpb24gb2Yga25vd2xlZGdlLCBleG&quot;</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; <span class="stringliteral">&quot;NlZWRzIHRo&quot;</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <span class="stringliteral">&quot;ZSBzaG9ydCB2ZWhlbWVuY2Ugb2YgYW55IGNhcm5hbCBwbGVhc3VyZS4=&quot;</span>);</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; </div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span> notBase64 = <span class="stringliteral">&quot;not_base64!!&quot;</span>;</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> <span class="keyword">const</span> truncated = <span class="stringliteral">&quot;not&quot;</span>;</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; BEAST_EXPECT(<a class="code" href="namespaceripple.html#a551be32de1cc0f8a8ff1f14ee84d892b">base64_decode</a>(notBase64) == <a class="code" href="namespaceripple.html#a551be32de1cc0f8a8ff1f14ee84d892b">base64_decode</a>(truncated));</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;};</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;<a class="code" href="namespaceripple.html#a2701412a11b118c19256a4c901db2938">BEAST_DEFINE_TESTSUITE</a>(base64, ripple_basics, <a class="code" href="namespaceripple.html">ripple</a>);</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;} <span class="comment">// namespace ripple</span></div>
</div><!-- fragment --></div><!-- contents -->
<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="anamespaceripple_html_a2701412a11b118c19256a4c901db2938"><div class="ttname"><a href="namespaceripple.html#a2701412a11b118c19256a4c901db2938">ripple::BEAST_DEFINE_TESTSUITE</a></div><div class="ttdeci">BEAST_DEFINE_TESTSUITE(AccountTxPaging, app, ripple)</div></div>
<div class="ttc" id="anamespaceripple_html_a9e4e400df889dc7cb9df0f859a8e4f18"><div class="ttname"><a href="namespaceripple.html#a9e4e400df889dc7cb9df0f859a8e4f18">ripple::base64_encode</a></div><div class="ttdeci">std::string base64_encode(std::uint8_t const *data, std::size_t len)</div><div class="ttdef"><b>Definition:</b> <a href="base64_8cpp_source.html#l00227">base64.cpp:227</a></div></div>
<div class="ttc" id="anamespaceripple_html_a9e4e400df889dc7cb9df0f859a8e4f18"><div class="ttname"><a href="namespaceripple.html#a9e4e400df889dc7cb9df0f859a8e4f18">ripple::base64_encode</a></div><div class="ttdeci">std::string base64_encode(std::uint8_t const *data, std::size_t len)</div><div class="ttdef"><b>Definition:</b> <a href="base64_8cpp_source.html#l00236">base64.cpp:236</a></div></div>
<div class="ttc" id="anamespaceripple_html_a7cc64e12723fbc9606d85442a2569feda13b5bfe96f3e2fe411c9f66f4a582adf"><div class="ttname"><a href="namespaceripple.html#a7cc64e12723fbc9606d85442a2569feda13b5bfe96f3e2fe411c9f66f4a582adf">ripple::QualityDirection::in</a></div><div class="ttdeci">@ in</div></div>
<div class="ttc" id="aclassripple_1_1base64__test_html_a3fa189c95f7931e4abebca3ebcc91c6a"><div class="ttname"><a href="classripple_1_1base64__test.html#a3fa189c95f7931e4abebca3ebcc91c6a">ripple::base64_test::run</a></div><div class="ttdeci">void run() override</div><div class="ttdef"><b>Definition:</b> <a href="base64__test_8cpp_source.html#l00046">base64_test.cpp:46</a></div></div>
<div class="ttc" id="anamespaceripple_html_a7cc64e12723fbc9606d85442a2569fedac68271a63ddbc431c307beb7d2918275"><div class="ttname"><a href="namespaceripple.html#a7cc64e12723fbc9606d85442a2569fedac68271a63ddbc431c307beb7d2918275">ripple::QualityDirection::out</a></div><div class="ttdeci">@ out</div></div>
<div class="ttc" id="anamespaceripple_html_a551be32de1cc0f8a8ff1f14ee84d892b"><div class="ttname"><a href="namespaceripple.html#a551be32de1cc0f8a8ff1f14ee84d892b">ripple::base64_decode</a></div><div class="ttdeci">std::string base64_decode(std::string const &amp;data)</div><div class="ttdef"><b>Definition:</b> <a href="base64_8cpp_source.html#l00237">base64.cpp:237</a></div></div>
<div class="ttc" id="anamespaceripple_html_a551be32de1cc0f8a8ff1f14ee84d892b"><div class="ttname"><a href="namespaceripple.html#a551be32de1cc0f8a8ff1f14ee84d892b">ripple::base64_decode</a></div><div class="ttdeci">std::string base64_decode(std::string const &amp;data)</div><div class="ttdef"><b>Definition:</b> <a href="base64_8cpp_source.html#l00245">base64.cpp:245</a></div></div>
<div class="ttc" id="aclassripple_1_1base64__test_html"><div class="ttname"><a href="classripple_1_1base64__test.html">ripple::base64_test</a></div><div class="ttdef"><b>Definition:</b> <a href="base64__test_8cpp_source.html#l00034">base64_test.cpp:34</a></div></div>
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
<div class="ttc" id="aclassripple_1_1base64__test_html_a70f5a4786f2e9171f79628a9fcefc5ab"><div class="ttname"><a href="classripple_1_1base64__test.html#a70f5a4786f2e9171f79628a9fcefc5ab">ripple::base64_test::check</a></div><div class="ttdeci">void check(std::string const &amp;in, std::string const &amp;out)</div><div class="ttdef"><b>Definition:</b> <a href="base64__test_8cpp_source.html#l00038">base64_test.cpp:38</a></div></div>