source: NonGTP/FCollada/Documentation/_f_u_string_8h-source.html @ 964

Revision 964, 12.2 KB checked in by igarcia, 18 years ago (diff)
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3<title>FCollada: FUtils/FUString.h Source File</title>
4<link href="doxygen.css" rel="stylesheet" type="text/css">
5<link href="tabs.css" rel="stylesheet" type="text/css">
6</head><body>
7<!-- Generated by Doxygen 1.4.6-NO -->
8<div class="tabs">
9  <ul>
10    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
11    <li><a href="modules.html"><span>Modules</span></a></li>
12    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
13    <li><a href="classes.html"><span>Classes</span></a></li>
14    <li id="current"><a href="files.html"><span>Files</span></a></li>
15    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
16  </ul></div>
17<div class="tabs">
18  <ul>
19    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
20    <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
21  </ul></div>
22<h1>FUtils/FUString.h</h1><a href="_f_u_string_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
23<a name="l00002"></a>00002 <span class="comment">    Copyright (C) 2005-2006 Feeling Software Inc.</span>
24<a name="l00003"></a>00003 <span class="comment">    MIT License: http://www.opensource.org/licenses/mit-license.php</span>
25<a name="l00004"></a>00004 <span class="comment">*/</span>
26<a name="l00005"></a>00005
27<a name="l00012"></a>00012 <span class="preprocessor">#ifndef _FU_STRING_H_</span>
28<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#define _FU_STRING_H_</span>
29<a name="l00014"></a>00014 <span class="preprocessor"></span>
30<a name="l00016"></a><a class="code" href="_f_u_string_8h.html#9d4bf31ffe89848bf494306fc985f05a">00016</a> <span class="keyword">typedef</span> <a class="code" href="classvector.html">vector&lt;fstring&gt;</a> <a class="code" href="classvector.html">FStringList</a>;
31<a name="l00017"></a>00017
32<a name="l00019"></a><a class="code" href="_f_u_string_8h.html#b299f9dc236c92da18f20b0edbbb4e96">00019</a> <span class="keyword">typedef</span> <a class="code" href="classvector.html">vector&lt;string&gt;</a> <a class="code" href="classvector.html">StringList</a>;
33<a name="l00020"></a>00020
34<a name="l00025"></a><a class="code" href="_f_u_string_8h.html#e76535c7bb202935f3aa400fa719709f">00025</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="_f_m_array_8h.html#10854668923860f01d22d6f543c34cb2">IsEquivalent</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* sz1, <span class="keyword">const</span> <span class="keywordtype">char</span>* sz2) { <span class="keywordflow">return</span> strcmp(sz1, sz2) == 0; }
35<a name="l00026"></a><a class="code" href="_f_u_string_8h.html#0d1bc5a88fefdbc3821a9d9550b020d5">00026</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="_f_m_array_8h.html#10854668923860f01d22d6f543c34cb2">IsEquivalent</a>(<span class="keyword">const</span> string&amp; sz1, <span class="keyword">const</span> <span class="keywordtype">char</span>* sz2) { <span class="keywordflow">return</span> strcmp(sz1.c_str(), sz2) == 0; }
36<a name="l00027"></a><a class="code" href="_f_u_string_8h.html#ca75a3a78374d9c41372d3d1ec53c813">00027</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="_f_m_array_8h.html#10854668923860f01d22d6f543c34cb2">IsEquivalent</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* sz1, <span class="keyword">const</span> string&amp; sz2) { <span class="keywordflow">return</span> strcmp(sz1, sz2.c_str()) == 0; }
37<a name="l00028"></a><a class="code" href="_f_u_string_8h.html#03829e1087fb1fa2466fdead137d7fc5">00028</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="_f_m_array_8h.html#10854668923860f01d22d6f543c34cb2">IsEquivalent</a>(<span class="keyword">const</span> string&amp; sz1, <span class="keyword">const</span> string&amp; sz2) { <span class="keywordflow">return</span> strcmp(sz1.c_str(), sz2.c_str()) == 0; }
38<a name="l00034"></a><a class="code" href="_f_u_string_8h.html#e933908ca3352ec1cc766c5f01d9f063">00034</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="_f_m_matrix44_8h.html#50948795a56eefc94456157d12214892">operator==</a>(<span class="keyword">const</span> string&amp; sz1, <span class="keyword">const</span> <span class="keywordtype">char</span>* sz2) { <span class="keywordflow">return</span> strcmp(sz1.c_str(), sz2) == 0; }
39<a name="l00035"></a>00035
40<a name="l00041"></a>00041 FCOLLADA_EXPORT string <a class="code" href="_f_m_vector2_8h.html#27199a28e5bb94856ebc59f994365bc6">operator+</a>(<span class="keyword">const</span> string&amp; sz1, int32 i);
41<a name="l00042"></a>00042
42<a name="l00043"></a>00043 <span class="preprocessor">#ifdef UNICODE</span>
43<a name="l00044"></a>00044 <span class="preprocessor"></span>
44<a name="l00048"></a><a class="code" href="_f_u_string_8h.html#4829ed31b5313a3915074738694863dc">00048</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="_f_m_array_8h.html#10854668923860f01d22d6f543c34cb2">IsEquivalent</a>(<span class="keyword">const</span> fchar* sz1, <span class="keyword">const</span> fchar* sz2) { <span class="keywordflow">return</span> fstrcmp(sz1, sz2) == 0; }
45<a name="l00049"></a><a class="code" href="_f_u_string_8h.html#ec4c7bdaf81be879737f6b9c4e7e7df2">00049</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="_f_m_array_8h.html#10854668923860f01d22d6f543c34cb2">IsEquivalent</a>(<span class="keyword">const</span> fstring&amp; sz1, <span class="keyword">const</span> fchar* sz2) { <span class="keywordflow">return</span> fstrcmp(sz1.c_str(), sz2) == 0; }
46<a name="l00050"></a><a class="code" href="_f_u_string_8h.html#e3fb823d0b5ed533959999fd7e7159db">00050</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="_f_m_array_8h.html#10854668923860f01d22d6f543c34cb2">IsEquivalent</a>(<span class="keyword">const</span> fchar* sz1, <span class="keyword">const</span> fstring&amp; sz2) { <span class="keywordflow">return</span> fstrcmp(sz1, sz2.c_str()) == 0; }
47<a name="l00051"></a><a class="code" href="_f_u_string_8h.html#748e622abdb10bcbc150fbe058985b9e">00051</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="_f_m_array_8h.html#10854668923860f01d22d6f543c34cb2">IsEquivalent</a>(<span class="keyword">const</span> fstring&amp; sz1, <span class="keyword">const</span> fstring&amp; sz2) { <span class="keywordflow">return</span> fstrcmp(sz1.c_str(), sz2.c_str()) == 0; }
48<a name="l00057"></a><a class="code" href="_f_u_string_8h.html#f01ccca18ec8dc46d1b4398ef2ae82da">00057</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="_f_m_matrix44_8h.html#50948795a56eefc94456157d12214892">operator==</a>(<span class="keyword">const</span> fstring&amp; sz1, <span class="keyword">const</span> fchar* sz2) { <span class="keywordflow">return</span> fstrcmp(sz1.c_str(), sz2) == 0; }
49<a name="l00058"></a>00058
50<a name="l00064"></a>00064 FCOLLADA_EXPORT fstring <a class="code" href="_f_m_vector2_8h.html#27199a28e5bb94856ebc59f994365bc6">operator+</a>(<span class="keyword">const</span> fstring&amp; sz1, int32 i);
51<a name="l00065"></a>00065 <span class="preprocessor">#endif // UNICODE</span>
52<a name="l00066"></a>00066 <span class="preprocessor"></span>
53<a name="l00067"></a>00067 <span class="comment">// Include the main string modification classes.</span>
54<a name="l00068"></a>00068 <span class="preprocessor">#include "<a class="code" href="_f_u_string_builder_8h.html">FUtils/FUStringBuilder.h</a>"</span>
55<a name="l00069"></a>00069 <span class="preprocessor">#include "<a class="code" href="_f_u_string_conversion_8h.html">FUtils/FUStringConversion.h</a>"</span>
56<a name="l00070"></a>00070
57<a name="l00072"></a><a class="code" href="_f_u_string_8h.html#afc191eda457ff64f0e441d65311e4b8">00072</a> <span class="preprocessor">#define FS(a) fstring(FC(a))</span>
58<a name="l00073"></a>00073 <span class="preprocessor"></span>
59<a name="l00074"></a><a class="code" href="_f_u_string_8h.html#07704e1457df8a52db49b436f419d9f9">00074</a> <span class="preprocessor">#define TO_FSTRING(a) FUStringConversion::ToFString(a)</span>
60<a name="l00075"></a>00075 <span class="preprocessor"></span>
61<a name="l00076"></a><a class="code" href="_f_u_string_8h.html#bbdf4f5bce6b0fed7d6a617fab284e7b">00076</a> <span class="preprocessor">#define TO_STRING(a) FUStringConversion::ToString(a)</span>
62<a name="l00077"></a>00077 <span class="preprocessor"></span>
63<a name="l00079"></a>00079 <span class="keyword">extern</span> FCOLLADA_EXPORT <span class="keyword">const</span> string <a class="code" href="_f_u_string_8h.html#7c763168a33e4ef3d90a21c38fb41ebf">emptyString</a>;
64<a name="l00081"></a>00081 <span class="keyword">extern</span> FCOLLADA_EXPORT <span class="keyword">const</span> fstring <a class="code" href="_f_u_string_8h.html#7c13272f2634a74aa80ed7c5280f25c9">emptyFString</a>;
65<a name="l00082"></a>00082
66<a name="l00087"></a><a class="code" href="_f_u_string_8h.html#2e2574151e6928b12f562d2822cc6e83">00087</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="_f_m_array_8h.html#10854668923860f01d22d6f543c34cb2">IsEquivalent</a>(<a class="code" href="class_f_u_string_builder_t.html">FUSStringBuilder</a>&amp; builder, <span class="keyword">const</span> <span class="keywordtype">char</span>* sz) { <span class="keywordflow">return</span> <a class="code" href="_f_m_array_8h.html#10854668923860f01d22d6f543c34cb2">IsEquivalent</a>(builder.<a class="code" href="class_f_u_string_builder_t.html#1fa2543a75ae974e86aaef3ebf726e0c">ToCharPtr</a>(), sz); }
67<a name="l00088"></a><a class="code" href="_f_u_string_8h.html#e97f438f1194f68c701e5811cdb3a4af">00088</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="_f_m_array_8h.html#10854668923860f01d22d6f543c34cb2">IsEquivalent</a>(<a class="code" href="class_f_u_string_builder_t.html">FUSStringBuilder</a>&amp; builder, <span class="keyword">const</span> string&amp; sz) { <span class="keywordflow">return</span> <a class="code" href="_f_m_array_8h.html#10854668923860f01d22d6f543c34cb2">IsEquivalent</a>(builder.<a class="code" href="class_f_u_string_builder_t.html#1fa2543a75ae974e86aaef3ebf726e0c">ToCharPtr</a>(), sz.c_str()); }
68<a name="l00089"></a><a class="code" href="_f_u_string_8h.html#2f9707c158bbc91894573de75a34e447">00089</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="_f_m_array_8h.html#10854668923860f01d22d6f543c34cb2">IsEquivalent</a>(<a class="code" href="class_f_u_string_builder_t.html">FUStringBuilder</a>&amp; builder, <span class="keyword">const</span> fchar* sz) { <span class="keywordflow">return</span> <a class="code" href="_f_m_array_8h.html#10854668923860f01d22d6f543c34cb2">IsEquivalent</a>(builder.<a class="code" href="class_f_u_string_builder_t.html#1fa2543a75ae974e86aaef3ebf726e0c">ToCharPtr</a>(), sz); }
69<a name="l00090"></a><a class="code" href="_f_u_string_8h.html#10a2a02687e50236ef50f3d6984cf263">00090</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="_f_m_array_8h.html#10854668923860f01d22d6f543c34cb2">IsEquivalent</a>(<a class="code" href="class_f_u_string_builder_t.html">FUStringBuilder</a>&amp; builder, <span class="keyword">const</span> fstring&amp; sz) { <span class="keywordflow">return</span> <a class="code" href="_f_m_array_8h.html#10854668923860f01d22d6f543c34cb2">IsEquivalent</a>(builder.<a class="code" href="class_f_u_string_builder_t.html#1fa2543a75ae974e86aaef3ebf726e0c">ToCharPtr</a>(), sz.c_str()); }
70<a name="l00092"></a>00092 <span class="preprocessor">#endif // _FU_STRING_H_</span>
71</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri May 12 16:44:39 2006 for FCollada by&nbsp;
72<a href="http://www.doxygen.org/index.html">
73<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6-NO </small></address>
74</body>
75</html>
Note: See TracBrowser for help on using the repository browser.