1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
|
<!-- 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 File Reference</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
 <span id="projectnumber">1.2.9</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.html','');});
</script>
<div id="doc-content">
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> |
<a href="#namespaces">Namespaces</a> |
<a href="#define-members">Macros</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">utility.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include <cstdlib></code><br/>
<code>#include <cstring></code><br/>
<code>#include <cstdio></code><br/>
<code>#include <cstdarg></code><br/>
<code>#include <string></code><br/>
</div>
<p><a href="utility_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structmeow_1_1PairToPair.html">meow::PairToPair< F1, F2, T1, T2 ></a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">A structur with memember <code></code>.from.first , <code></code>.from.second , <code></code>.to.first , <code></code>.to.second. <a href="structmeow_1_1PairToPair.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespacemeow"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemeow.html">meow</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a7b550f1ff25a89286527a460c390a902"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="utility_8h.html#a7b550f1ff25a89286527a460c390a902">debugPrintf</a>(str)</td></tr>
<tr class="memdesc:a7b550f1ff25a89286527a460c390a902"><td class="mdescLeft"> </td><td class="mdescRight">若DEBUG有被define過, 將字串印到stderr, 並且附上檔名行號與所在函數名 <a href="#a7b550f1ff25a89286527a460c390a902">More...</a><br/></td></tr>
<tr class="separator:a7b550f1ff25a89286527a460c390a902"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a09946550cc38b132151643d3408b0175"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemeow.html#a09946550cc38b132151643d3408b0175">meow::stringPrintf</a> (char const *fmt,...)</td></tr>
<tr class="memdesc:a09946550cc38b132151643d3408b0175"><td class="mdescLeft"> </td><td class="mdescRight">類似C的printf, 不過是將格式化的字串丟到 <code>std::string</code> 裡回傳 <a href="#a09946550cc38b132151643d3408b0175">More...</a><br/></td></tr>
<tr class="separator:a09946550cc38b132151643d3408b0175"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a532a4a224ccd34baa4c6317a8a014ba4"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemeow.html#a532a4a224ccd34baa4c6317a8a014ba4">meow::stringReplace</a> (std::string str, std::string const &from, std::string const &to)</td></tr>
<tr class="memdesc:a532a4a224ccd34baa4c6317a8a014ba4"><td class="mdescLeft"> </td><td class="mdescRight">將輸入字串中的某個pattern取代成另一個pattern <a href="#a532a4a224ccd34baa4c6317a8a014ba4">More...</a><br/></td></tr>
<tr class="separator:a532a4a224ccd34baa4c6317a8a014ba4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a375bf0494e671d61343f5be28f3204fb"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemeow.html#a375bf0494e671d61343f5be28f3204fb">meow::cstringEndWith</a> (char const *str, <a class="el" href="classint.html">int</a> n,...)</td></tr>
<tr class="memdesc:a375bf0494e671d61343f5be28f3204fb"><td class="mdescLeft"> </td><td class="mdescRight">檢查給定字串的結尾是否符合給定的數個patterns中的一個 <a href="#a375bf0494e671d61343f5be28f3204fb">More...</a><br/></td></tr>
<tr class="separator:a375bf0494e671d61343f5be28f3204fb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a644a491d867da42696e3cf226019fc25"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemeow.html#a644a491d867da42696e3cf226019fc25">meow::debugPrintf_</a> (char const *file, char const *func, size_t line, char const *msg)</td></tr>
<tr class="separator:a644a491d867da42696e3cf226019fc25"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9aad86d9211af4ca27b72f87c2643926"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemeow.html#a9aad86d9211af4ca27b72f87c2643926">meow::messagePrintf</a> (<a class="el" href="classint.html">int</a> level_change, char const *fmt,...)</td></tr>
<tr class="memdesc:a9aad86d9211af4ca27b72f87c2643926"><td class="mdescLeft"> </td><td class="mdescRight">階層式輸出 <a href="#a9aad86d9211af4ca27b72f87c2643926">More...</a><br/></td></tr>
<tr class="separator:a9aad86d9211af4ca27b72f87c2643926"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a575ff1d89bedceb3f850e0c6b7ab2396"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemeow.html#a575ff1d89bedceb3f850e0c6b7ab2396">meow::filenameCompare</a> (std::string const &f1, std::string const &f2)</td></tr>
<tr class="memdesc:a575ff1d89bedceb3f850e0c6b7ab2396"><td class="mdescLeft"> </td><td class="mdescRight">將兩個字串用人類習慣的檔名排序方式排序 <a href="#a575ff1d89bedceb3f850e0c6b7ab2396">More...</a><br/></td></tr>
<tr class="separator:a575ff1d89bedceb3f850e0c6b7ab2396"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="a7b550f1ff25a89286527a460c390a902"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define debugPrintf</td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname">str</td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"><a class="code" href="namespacemeow.html#a644a491d867da42696e3cf226019fc25">debugPrintf_</a>(\</div>
<div class="line"> __FILE__,\</div>
<div class="line"> __FUNCTION__,\</div>
<div class="line"> __LINE__,\</div>
<div class="line"> str)</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><!-- fragment -->
<p>若DEBUG有被define過, 將字串印到stderr, 並且附上檔名行號與所在函數名 </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">str</td><td>要輸出的字串, 必須是c string, 即 <code>char</code> <code>const*</code> 型態 </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>無 </dd></dl>
<dl class="section note"><dt>Note</dt><dd>這是一個 <b>macro</b> </dd></dl>
<p>Definition at line <a class="el" href="utility_8h_source.html#l00104">104</a> of file <a class="el" href="utility_8h_source.html">utility.h</a>.</p>
</div>
</div>
</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 Fri Jun 27 2014 18:24:41 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>
|