diff options
Diffstat (limited to '_m_d5_8hpp_source.html')
-rw-r--r-- | _m_d5_8hpp_source.html | 65 |
1 files changed, 32 insertions, 33 deletions
diff --git a/_m_d5_8hpp_source.html b/_m_d5_8hpp_source.html index b7cb92a..20ca4bd 100644 --- a/_m_d5_8hpp_source.html +++ b/_m_d5_8hpp_source.html @@ -89,7 +89,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); <div id="nav-path" class="navpath"> <ul> -<li class="navelem"><a class="el" href="dir_23ec12649285f9fabf3a6b7380226c28.html">util</a></li> </ul> +<li class="navelem"><a class="el" href="dir_92105864f9e085ad080aaeef739227b1.html">util</a></li> </ul> </div> </div><!-- top --> <div class="header"> @@ -107,38 +107,37 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); <div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div> <div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include <<a class="code" href="_string_8h.html">string.h</a>></span></div> <div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div> -<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <iostream></span></div> -<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include <sstream></span></div> -<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include <iomanip></span></div> -<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include "<a class="code" href="_common_8h.html">uscxml/Common.h</a>"</span></div> -<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div> -<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="keyword">namespace </span><a class="code" href="namespaceuscxml.html">uscxml</a> {</div> -<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div> -<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  USCXML_API <span class="keyword">inline</span> std::string md5(<span class="keyword">const</span> <span class="keywordtype">char</span>* data, <span class="keywordtype">size_t</span> length) {</div> -<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <a class="code" href="structmd5__state__s.html">md5_state_t</a> state;</div> -<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  md5_byte_t digest[16];</div> -<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div> -<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  md5_init(&state);</div> -<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  md5_append(&state, (<span class="keyword">const</span> md5_byte_t *)data, length);</div> -<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  md5_finish(&state, digest);</div> -<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div> -<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  std::ostringstream ss;</div> -<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  ss << std::hex << std::uppercase << std::setfill( <span class="charliteral">'0'</span> );</div> -<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i < 16; i++) {</div> -<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  ss << std::setw( 2 ) << (int)digest[i];</div> -<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  }</div> -<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div> -<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordflow">return</span> ss.str();</div> -<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  }</div> -<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div> -<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  USCXML_API <span class="keyword">inline</span> std::string md5(<span class="keyword">const</span> std::string& data) {</div> -<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keywordflow">return</span> md5(data.data(), data.size());</div> -<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  }</div> -<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div> -<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> }</div> +<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <sstream></span></div> +<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include <iomanip></span></div> +<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include "<a class="code" href="_common_8h.html">uscxml/Common.h</a>"</span></div> +<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div> +<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">namespace </span><a class="code" href="namespaceuscxml.html">uscxml</a> {</div> +<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div> +<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  USCXML_API <span class="keyword">inline</span> std::string md5(<span class="keyword">const</span> <span class="keywordtype">char</span>* data, <span class="keywordtype">size_t</span> length) {</div> +<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <a class="code" href="structmd5__state__s.html">md5_state_t</a> state;</div> +<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  md5_byte_t digest[16];</div> +<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div> +<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  md5_init(&state);</div> +<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  md5_append(&state, (<span class="keyword">const</span> md5_byte_t *)data, length);</div> +<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  md5_finish(&state, digest);</div> +<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div> +<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  std::ostringstream ss;</div> +<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  ss << std::hex << std::uppercase << std::setfill( <span class="charliteral">'0'</span> );</div> +<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i < 16; i++) {</div> +<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  ss << std::setw( 2 ) << (int)digest[i];</div> +<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  }</div> +<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div> +<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keywordflow">return</span> ss.str();</div> +<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  }</div> +<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div> +<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  USCXML_API <span class="keyword">inline</span> std::string md5(<span class="keyword">const</span> std::string& data) {</div> +<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keywordflow">return</span> md5(data.data(), data.size());</div> +<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  }</div> +<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div> +<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> }</div> +<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div> <div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div> -<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div> -<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="preprocessor">#endif </span><span class="comment">/* end of include guard: MD5_HPP_70TU4G5T */</span><span class="preprocessor"></span></div> +<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="preprocessor">#endif </span><span class="comment">/* end of include guard: MD5_HPP_70TU4G5T */</span><span class="preprocessor"></span></div> <div class="ttc" id="structmd5__state__s_html"><div class="ttname"><a href="structmd5__state__s.html">md5_state_s</a></div><div class="ttdef"><b>Definition:</b> MD5.h:81</div></div> <div class="ttc" id="namespaceuscxml_html"><div class="ttname"><a href="namespaceuscxml.html">uscxml</a></div><div class="ttdef"><b>Definition:</b> Breakpoint.cpp:26</div></div> <div class="ttc" id="_common_8h_html"><div class="ttname"><a href="_common_8h.html">Common.h</a></div></div> @@ -152,7 +151,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); </div> </div> <!-- <hr class="footer"/><address class="footer"><small> -Generated on Mon Dec 12 2016 19:50:04 for uSCXML by  <a href="http://www.doxygen.org/index.html"> +Generated on Sun Apr 30 2017 22:52:19 for uSCXML by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.10 </small></address> --> |