aboutsummaryrefslogtreecommitdiffstats
path: root/doc/html/utility_8h_source.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/utility_8h_source.html')
-rw-r--r--doc/html/utility_8h_source.html215
1 files changed, 0 insertions, 215 deletions
diff --git a/doc/html/utility_8h_source.html b/doc/html/utility_8h_source.html
deleted file mode 100644
index efaaad5..0000000
--- a/doc/html/utility_8h_source.html
+++ /dev/null
@@ -1,215 +0,0 @@
-<!-- HTML header for doxygen 1.8.3.1-->
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
-<meta http-equiv="X-UA-Compatible" content="IE=9"/>
-<meta name="generator" content="Doxygen 1.8.6"/>
-<title>Templates -- Meow: meowpp/utility.h Source File</title>
-<link href="tabs.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="jquery.js"></script>
-<script type="text/javascript" src="dynsections.js"></script>
-<link href="navtree.css" rel="stylesheet" type="text/css"/>
-<script type="text/javascript" src="resize.js"></script>
-<script type="text/javascript" src="navtree.js"></script>
-<script type="text/javascript">
- $(document).ready(initResizable);
- $(window).load(resizeHeight);
-</script>
-<link href="stylesheet.css" rel="stylesheet" type="text/css" />
-<link href="custom.css" rel="stylesheet" type="text/css"/>
-</head>
-<body>
-<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
-<div id="titlearea">
-<table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
- <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
- <td style="padding-left: 0.5em;">
- <div id="projectname">Templates -- Meow
- &#160;<span id="projectnumber">1.2.11</span>
- </div>
- <div id="projectbrief">A C++ template contains kinds of interesting classes and functions</div>
- </td>
- </tr>
- </tbody>
-</table>
-</div>
-<!-- end header part -->
-<!-- Generated by Doxygen 1.8.6 -->
-</div><!-- top -->
-<div id="side-nav" class="ui-resizable side-nav-resizable">
- <div id="nav-tree">
- <div id="nav-tree-contents">
- <div id="nav-sync" class="sync"></div>
- </div>
- </div>
- <div id="splitbar" style="-moz-user-select:none;"
- class="ui-resizable-handle">
- </div>
-</div>
-<script type="text/javascript">
-$(document).ready(function(){initNavTree('utility_8h_source.html','');});
-</script>
-<div id="doc-content">
-<div class="header">
- <div class="headertitle">
-<div class="title">utility.h</div> </div>
-</div><!--header-->
-<div class="contents">
-<a href="utility_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="preprocessor">#ifndef utility_H__</span></div>
-<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define utility_H__</span></div>
-<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="preprocessor"></span></div>
-<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="preprocessor">#include &lt;cstdlib&gt;</span></div>
-<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="preprocessor">#include &lt;cstring&gt;</span></div>
-<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="preprocessor">#include &lt;cstdio&gt;</span></div>
-<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="preprocessor">#include &lt;cstdarg&gt;</span></div>
-<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;</div>
-<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
-<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;</div>
-<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="keyword">namespace </span>meow {</div>
-<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;</div>
-<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> F1, <span class="keyword">class</span> F2 = F1, <span class="keyword">class</span> T1 = F1, <span class="keyword">class</span> T2 = T1&gt;</div>
-<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="structmeow_1_1PairToPair.html"> 20</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structmeow_1_1PairToPair.html">PairToPair</a> {</div>
-<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="structmeow_1_1PairToPair.html#ab4217b13ec4c82d36b181e30667c1cd2"> 21</a></span>&#160; std::pair&lt;F1, F2&gt; <a class="code" href="structmeow_1_1PairToPair.html#ab4217b13ec4c82d36b181e30667c1cd2">from</a>;</div>
-<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="structmeow_1_1PairToPair.html#abdc2cd1026b2c3c25c138d7edd168d0b"> 22</a></span>&#160; std::pair&lt;T1, T2&gt; <a class="code" href="structmeow_1_1PairToPair.html#abdc2cd1026b2c3c25c138d7edd168d0b">to</a>;</div>
-<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div>
-<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="structmeow_1_1PairToPair.html#a424fce604376e2fd88e75d610821ef5a"> 24</a></span>&#160; <a class="code" href="structmeow_1_1PairToPair.html#a424fce604376e2fd88e75d610821ef5a">PairToPair</a>() {</div>
-<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; }</div>
-<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="structmeow_1_1PairToPair.html#a347ec4950c8bee1698c579be6824afc0"> 26</a></span>&#160; <a class="code" href="structmeow_1_1PairToPair.html#a347ec4950c8bee1698c579be6824afc0">PairToPair</a>(<a class="code" href="structmeow_1_1PairToPair.html">PairToPair</a> <span class="keyword">const</span>&amp; pp): <a class="code" href="structmeow_1_1PairToPair.html#ab4217b13ec4c82d36b181e30667c1cd2">from</a>(pp.<a class="code" href="structmeow_1_1PairToPair.html#ab4217b13ec4c82d36b181e30667c1cd2">from</a>), <a class="code" href="structmeow_1_1PairToPair.html#abdc2cd1026b2c3c25c138d7edd168d0b">to</a>(pp.<a class="code" href="structmeow_1_1PairToPair.html#abdc2cd1026b2c3c25c138d7edd168d0b">to</a>) {</div>
-<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; }</div>
-<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="structmeow_1_1PairToPair.html#a37b9cb3164dcbb17fc66045becb1ad1b"> 28</a></span>&#160; <a class="code" href="structmeow_1_1PairToPair.html#a37b9cb3164dcbb17fc66045becb1ad1b">PairToPair</a>(F1 <span class="keyword">const</span>&amp; f1, F2 <span class="keyword">const</span>&amp; f2, T1 <span class="keyword">const</span>&amp; t1, T2 <span class="keyword">const</span>&amp; t2):</div>
-<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; <a class="code" href="structmeow_1_1PairToPair.html#ab4217b13ec4c82d36b181e30667c1cd2">from</a>(f1, f2), <a class="code" href="structmeow_1_1PairToPair.html#abdc2cd1026b2c3c25c138d7edd168d0b">to</a>(t1, t2) {</div>
-<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; }</div>
-<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="structmeow_1_1PairToPair.html#a0853f223425e0a23f54c7c6989242ab6"> 31</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="structmeow_1_1PairToPair.html#a0853f223425e0a23f54c7c6989242ab6">operator==</a>(<a class="code" href="structmeow_1_1PairToPair.html">PairToPair</a> <span class="keyword">const</span>&amp; p)<span class="keyword"> const </span>{</div>
-<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; <span class="keywordflow">return</span> (<a class="code" href="structmeow_1_1PairToPair.html#ab4217b13ec4c82d36b181e30667c1cd2">from</a> == p.<a class="code" href="structmeow_1_1PairToPair.html#ab4217b13ec4c82d36b181e30667c1cd2">from</a> &amp;&amp; <a class="code" href="structmeow_1_1PairToPair.html#abdc2cd1026b2c3c25c138d7edd168d0b">to</a> == p.<a class="code" href="structmeow_1_1PairToPair.html#abdc2cd1026b2c3c25c138d7edd168d0b">to</a>);</div>
-<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; }</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;</div>
-<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="namespacemeow.html#a09946550cc38b132151643d3408b0175"> 43</a></span>&#160;<span class="keyword">inline</span> std::string <a class="code" href="namespacemeow.html#a09946550cc38b132151643d3408b0175">stringPrintf</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> * fmt, ...) {</div>
-<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <span class="keywordtype">char</span> str[8192];</div>
-<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; va_list args;</div>
-<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; va_start(args, fmt);</div>
-<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; vsnprintf(str, 8192, fmt, args);</div>
-<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; va_end(args);</div>
-<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="keywordflow">return</span> std::string(str);</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;</div>
-<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="namespacemeow.html#a532a4a224ccd34baa4c6317a8a014ba4"> 61</a></span>&#160;<span class="keyword">inline</span> std::string <a class="code" href="namespacemeow.html#a532a4a224ccd34baa4c6317a8a014ba4">stringReplace</a>(std::string str,</div>
-<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; std::string <span class="keyword">const</span>&amp; from,</div>
-<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; std::string <span class="keyword">const</span>&amp; to) {</div>
-<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; std::string out = str;</div>
-<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="keywordtype">int</span> len = from.length();</div>
-<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> pos; (pos = out.find(from)) != std::string::npos; ) {</div>
-<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; out.replace(pos, len, to);</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; <span class="keywordflow">return</span> out;</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;</div>
-<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="namespacemeow.html#a375bf0494e671d61343f5be28f3204fb"> 82</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="namespacemeow.html#a375bf0494e671d61343f5be28f3204fb">cstringEndWith</a>(<span class="keywordtype">char</span> <span class="keyword">const</span>* str, <span class="keywordtype">int</span> n, ...) {</div>
-<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <span class="keywordtype">int</span> len = strlen(str);</div>
-<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; va_list args;</div>
-<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; va_start(args, n);</div>
-<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; n; i++) {</div>
-<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <span class="keywordtype">char</span> <span class="keyword">const</span>* arg = va_arg(args, <span class="keywordtype">char</span> <span class="keyword">const</span>*);</div>
-<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="keywordtype">int</span> arglen = strlen(arg);</div>
-<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <span class="keywordflow">if</span> (arglen &lt;= len &amp;&amp; strcmp(str + len - arglen, arg) == 0) {</div>
-<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
-<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; }</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; va_end(args);</div>
-<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</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;</div>
-<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="utility_8h.html#a7b550f1ff25a89286527a460c390a902"> 104</a></span>&#160;<span class="preprocessor">#define debugPrintf(str) \</span></div>
-<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160;<span class="preprocessor">debugPrintf_(\</span></div>
-<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160;<span class="preprocessor"> __FILE__,\</span></div>
-<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160;<span class="preprocessor"> __FUNCTION__,\</span></div>
-<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160;<span class="preprocessor"> __LINE__,\</span></div>
-<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160;<span class="preprocessor"> str)</span></div>
-<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="namespacemeow.html#a644a491d867da42696e3cf226019fc25"> 110</a></span>&#160;<span class="preprocessor"></span><span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="namespacemeow.html#a644a491d867da42696e3cf226019fc25">debugPrintf_</a>(<span class="keywordtype">char</span> <span class="keyword">const</span>* file,</div>
-<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <span class="keywordtype">char</span> <span class="keyword">const</span>* func,</div>
-<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <span class="keywordtype">size_t</span> line,</div>
-<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <span class="keywordtype">char</span> <span class="keyword">const</span>* msg) {</div>
-<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160;<span class="preprocessor">#ifdef DEBUG</span></div>
-<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160;<span class="preprocessor"></span> fprintf(stderr, <span class="stringliteral">&quot;%s[%d] %s &gt;&gt; %s&quot;</span>, file, line, func, msg);</div>
-<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;<span class="preprocessor">#endif // DEBUG</span></div>
-<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160;<span class="preprocessor"></span>}</div>
-<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160;</div>
-<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="namespacemeow.html#a9aad86d9211af4ca27b72f87c2643926"> 146</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="namespacemeow.html#a9aad86d9211af4ca27b72f87c2643926">messagePrintf</a>(<span class="keywordtype">int</span> level_change, <span class="keywordtype">char</span> <span class="keyword">const</span>* fmt, ...) {</div>
-<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; <span class="keyword">static</span> <span class="keywordtype">int</span> level = 0;</div>
-<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; <span class="keyword">static</span> <span class="keywordtype">int</span> last_level = -5;</div>
-<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <span class="keywordtype">char</span> str[8192];</div>
-<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; va_list args;</div>
-<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; va_start(args, fmt);</div>
-<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; vsnprintf(str, 8192, fmt, args);</div>
-<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; va_end(args);</div>
-<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; <span class="keywordflow">if</span> (last_level == 1 &amp;&amp; level_change == -1) {</div>
-<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; printf(<span class="stringliteral">&quot; ...%s\n&quot;</span>, str);</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; <span class="keywordflow">else</span> {</div>
-<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; <span class="keywordflow">if</span> (last_level == 1) printf(<span class="stringliteral">&quot;\n&quot;</span>);</div>
-<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; <span class="keywordtype">int</span> level2 = level + (level_change == -1 ? -1 : 0);</div>
-<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; level2; i++) printf(<span class="stringliteral">&quot;| &quot;</span>);</div>
-<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; printf(<span class="stringliteral">&quot;%s%s&quot;</span>, (level_change == -1 ? <span class="stringliteral">&quot;...&quot;</span> : <span class="stringliteral">&quot;&quot;</span>), str);</div>
-<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; <span class="keywordflow">if</span> (level_change != 1) printf(<span class="stringliteral">&quot;\n&quot;</span>);</div>
-<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; }</div>
-<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; level += level_change;</div>
-<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; last_level = level_change;</div>
-<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; fflush(stdout);</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="l00179"></a><span class="lineno"><a class="line" href="namespacemeow.html#a575ff1d89bedceb3f850e0c6b7ab2396"> 179</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="namespacemeow.html#a575ff1d89bedceb3f850e0c6b7ab2396">filenameCompare</a>(std::string <span class="keyword">const</span>&amp; f1, std::string <span class="keyword">const</span>&amp; f2) {</div>
-<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; <span class="keywordtype">char</span> <span class="keyword">const</span>* s1 = f1.c_str();</div>
-<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; <span class="keywordtype">char</span> <span class="keyword">const</span>* s2 = f2.c_str();</div>
-<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; <span class="keywordtype">int</span> l1 = f1.length();</div>
-<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; <span class="keywordtype">int</span> l2 = f2.length();</div>
-<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; <span class="keywordtype">int</span> i1, i2;</div>
-<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; <span class="keywordflow">for</span> (i1 = i2 = 0; i1 &lt; l1 || i2 &lt; l2; i1++, i2++) {</div>
-<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; <span class="keywordflow">if</span> (isdigit(s1[i1]) &amp;&amp; isdigit(s2[i2])) {</div>
-<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; <span class="keywordtype">int</span> n1 = atoi(s1 + i1);</div>
-<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; <span class="keywordtype">int</span> n2 = atoi(s2 + i2);</div>
-<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; <span class="keywordflow">if</span> (n1 != n2)</div>
-<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160; <span class="keywordflow">return</span> (n1 &lt; n2);</div>
-<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; <span class="keywordflow">while</span>(i1 + 1 &lt; l1 &amp;&amp; isdigit(s1[i1 + 1])) i1++;</div>
-<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; <span class="keywordflow">while</span>(i2 + 1 &lt; l2 &amp;&amp; isdigit(s2[i2 + 1])) i2++;</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">else</span> {</div>
-<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; <span class="keywordflow">if</span>(s1[i1] != s2[i2])</div>
-<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; <span class="keywordflow">return</span> s1[i1] &lt; s2[i2];</div>
-<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; }</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; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
-<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160;}</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="comment">// meow</span></div>
-<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160;</div>
-<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160;<span class="preprocessor">#endif // utility_H__</span></div>
-<div class="ttc" id="structmeow_1_1PairToPair_html_abdc2cd1026b2c3c25c138d7edd168d0b"><div class="ttname"><a href="structmeow_1_1PairToPair.html#abdc2cd1026b2c3c25c138d7edd168d0b">meow::PairToPair::to</a></div><div class="ttdeci">std::pair&lt; T1, T2 &gt; to</div><div class="ttdef"><b>Definition:</b> <a href="utility_8h_source.html#l00022">utility.h:22</a></div></div>
-<div class="ttc" id="namespacemeow_html_a575ff1d89bedceb3f850e0c6b7ab2396"><div class="ttname"><a href="namespacemeow.html#a575ff1d89bedceb3f850e0c6b7ab2396">meow::filenameCompare</a></div><div class="ttdeci">bool filenameCompare(std::string const &amp;f1, std::string const &amp;f2)</div><div class="ttdoc">將兩個字串用人類習慣的檔名排序方式排序 </div><div class="ttdef"><b>Definition:</b> <a href="utility_8h_source.html#l00179">utility.h:179</a></div></div>
-<div class="ttc" id="structmeow_1_1PairToPair_html"><div class="ttname"><a href="structmeow_1_1PairToPair.html">meow::PairToPair</a></div><div class="ttdoc">A structur with memember .from.first , .from.second , .to.first , .to.second. </div><div class="ttdef"><b>Definition:</b> <a href="utility_8h_source.html#l00020">utility.h:20</a></div></div>
-<div class="ttc" id="structmeow_1_1PairToPair_html_a0853f223425e0a23f54c7c6989242ab6"><div class="ttname"><a href="structmeow_1_1PairToPair.html#a0853f223425e0a23f54c7c6989242ab6">meow::PairToPair::operator==</a></div><div class="ttdeci">bool operator==(PairToPair const &amp;p) const </div><div class="ttdef"><b>Definition:</b> <a href="utility_8h_source.html#l00031">utility.h:31</a></div></div>
-<div class="ttc" id="namespacemeow_html_a375bf0494e671d61343f5be28f3204fb"><div class="ttname"><a href="namespacemeow.html#a375bf0494e671d61343f5be28f3204fb">meow::cstringEndWith</a></div><div class="ttdeci">bool cstringEndWith(char const *str, int n,...)</div><div class="ttdoc">檢查給定字串的結尾是否符合給定的數個patterns中的一個 </div><div class="ttdef"><b>Definition:</b> <a href="utility_8h_source.html#l00082">utility.h:82</a></div></div>
-<div class="ttc" id="namespacemeow_html_a644a491d867da42696e3cf226019fc25"><div class="ttname"><a href="namespacemeow.html#a644a491d867da42696e3cf226019fc25">meow::debugPrintf_</a></div><div class="ttdeci">void debugPrintf_(char const *file, char const *func, size_t line, char const *msg)</div><div class="ttdef"><b>Definition:</b> <a href="utility_8h_source.html#l00110">utility.h:110</a></div></div>
-<div class="ttc" id="namespacemeow_html_a532a4a224ccd34baa4c6317a8a014ba4"><div class="ttname"><a href="namespacemeow.html#a532a4a224ccd34baa4c6317a8a014ba4">meow::stringReplace</a></div><div class="ttdeci">std::string stringReplace(std::string str, std::string const &amp;from, std::string const &amp;to)</div><div class="ttdoc">將輸入字串中的某個pattern取代成另一個pattern </div><div class="ttdef"><b>Definition:</b> <a href="utility_8h_source.html#l00061">utility.h:61</a></div></div>
-<div class="ttc" id="structmeow_1_1PairToPair_html_a424fce604376e2fd88e75d610821ef5a"><div class="ttname"><a href="structmeow_1_1PairToPair.html#a424fce604376e2fd88e75d610821ef5a">meow::PairToPair::PairToPair</a></div><div class="ttdeci">PairToPair()</div><div class="ttdef"><b>Definition:</b> <a href="utility_8h_source.html#l00024">utility.h:24</a></div></div>
-<div class="ttc" id="structmeow_1_1PairToPair_html_a37b9cb3164dcbb17fc66045becb1ad1b"><div class="ttname"><a href="structmeow_1_1PairToPair.html#a37b9cb3164dcbb17fc66045becb1ad1b">meow::PairToPair::PairToPair</a></div><div class="ttdeci">PairToPair(F1 const &amp;f1, F2 const &amp;f2, T1 const &amp;t1, T2 const &amp;t2)</div><div class="ttdef"><b>Definition:</b> <a href="utility_8h_source.html#l00028">utility.h:28</a></div></div>
-<div class="ttc" id="structmeow_1_1PairToPair_html_ab4217b13ec4c82d36b181e30667c1cd2"><div class="ttname"><a href="structmeow_1_1PairToPair.html#ab4217b13ec4c82d36b181e30667c1cd2">meow::PairToPair::from</a></div><div class="ttdeci">std::pair&lt; F1, F2 &gt; from</div><div class="ttdef"><b>Definition:</b> <a href="utility_8h_source.html#l00021">utility.h:21</a></div></div>
-<div class="ttc" id="namespacemeow_html_a09946550cc38b132151643d3408b0175"><div class="ttname"><a href="namespacemeow.html#a09946550cc38b132151643d3408b0175">meow::stringPrintf</a></div><div class="ttdeci">std::string stringPrintf(char const *fmt,...)</div><div class="ttdoc">類似C的printf, 不過是將格式化的字串丟到 std::string 裡回傳 </div><div class="ttdef"><b>Definition:</b> <a href="utility_8h_source.html#l00043">utility.h:43</a></div></div>
-<div class="ttc" id="structmeow_1_1PairToPair_html_a347ec4950c8bee1698c579be6824afc0"><div class="ttname"><a href="structmeow_1_1PairToPair.html#a347ec4950c8bee1698c579be6824afc0">meow::PairToPair::PairToPair</a></div><div class="ttdeci">PairToPair(PairToPair const &amp;pp)</div><div class="ttdef"><b>Definition:</b> <a href="utility_8h_source.html#l00026">utility.h:26</a></div></div>
-<div class="ttc" id="namespacemeow_html_a9aad86d9211af4ca27b72f87c2643926"><div class="ttname"><a href="namespacemeow.html#a9aad86d9211af4ca27b72f87c2643926">meow::messagePrintf</a></div><div class="ttdeci">void messagePrintf(int level_change, char const *fmt,...)</div><div class="ttdoc">階層式輸出 </div><div class="ttdef"><b>Definition:</b> <a href="utility_8h_source.html#l00146">utility.h:146</a></div></div>
-</div><!-- fragment --></div><!-- contents -->
-</div><!-- doc-content -->
-<!-- HTML footer for doxygen 1.8.3.1-->
-<!-- start footer part -->
-<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
- <ul>
- <li class="navelem"><a class="el" href="dir_92fecd8d02dd5e7a67429447fdf0f60f.html">meowpp</a></li><li class="navelem"><a class="el" href="utility_8h.html">utility.h</a></li>
- <li class="footer">Generated on Mon Sep 8 2014 21:25:40 for Templates -- Meow by
- <a href="http://www.doxygen.org/index.html">
- <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
- </ul>
-</div>
-</body>
-</html>