• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching full:comment

8 …v class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
9 <a name="l00002"></a>00002 <span class="comment">www.sourceforge.net/projects/tinyxml</span>
10 <a name="l00003"></a>00003 <span class="comment">Original file by Yves Berquin.</span>
11 <a name="l00004"></a>00004 <span class="comment"></span>
12 <a name="l00005"></a>00005 <span class="comment">This software is provided 'as-is', without any exp…
13 <a name="l00006"></a>00006 <span class="comment">warranty. In no event will the authors be held lia…
14 <a name="l00007"></a>00007 <span class="comment">damages arising from the use of this software.</sp…
15 <a name="l00008"></a>00008 <span class="comment"></span>
16 <a name="l00009"></a>00009 <span class="comment">Permission is granted to anyone to use this softwa…
17 <a name="l00010"></a>00010 <span class="comment">purpose, including commercial applications, and to…
18 <a name="l00011"></a>00011 <span class="comment">redistribute it freely, subject to the following r…
19 <a name="l00012"></a>00012 <span class="comment"></span>
20 <a name="l00013"></a>00013 <span class="comment">1. The origin of this software must not be misrepr…
21 <a name="l00014"></a>00014 <span class="comment">not claim that you wrote the original software. If…
22 <a name="l00015"></a>00015 <span class="comment">software in a product, an acknowledgment in the pr…
23 <a name="l00016"></a>00016 <span class="comment">would be appreciated but is not required.</span>
24 <a name="l00017"></a>00017 <span class="comment"></span>
25 <a name="l00018"></a>00018 <span class="comment">2. Altered source versions must be plainly marked …
26 <a name="l00019"></a>00019 <span class="comment">must not be misrepresented as being the original s…
27 <a name="l00020"></a>00020 <span class="comment"></span>
28 <a name="l00021"></a>00021 <span class="comment">3. This notice may not be removed or altered from …
29 <a name="l00022"></a>00022 <span class="comment">distribution.</span>
30 <a name="l00023"></a>00023 <span class="comment">*/</span>
32 <a name="l00025"></a>00025 <span class="comment">/*</span>
33 <a name="l00026"></a>00026 <span class="comment"> * THIS FILE WAS ALTERED BY Tyge Lovset, 7. April …
34 <a name="l00027"></a>00027 <span class="comment"> *</span>
35 <a name="l00028"></a>00028 <span class="comment"> * - completely rewritten. compact, clean, and fas…
36 <a name="l00029"></a>00029 <span class="comment"> * - sizeof(TiXmlString) = pointer size (4 bytes o…
37 <a name="l00030"></a>00030 <span class="comment"> * - fixed reserve() to work as per specification.…
38 <a name="l00031"></a>00031 <span class="comment"> * - fixed buggy compares operator==(), operator&l…
39 <a name="l00032"></a>00032 <span class="comment"> * - fixed operator+=() to take a const ref argume…
40 <a name="l00033"></a>00033 <span class="comment"> * - added "copy" constructor with length, and mos…
41 <a name="l00034"></a>00034 <span class="comment"> * - added swap(), clear(), size(), capacity(), op…
42 <a name="l00035"></a>00035 <span class="comment"> */</span>
52 <a name="l00045"></a>00045 <span class="comment">/*</span>
53 <a name="l00046"></a>00046 <span class="comment"> TiXmlString is an emulation of a subset of the …
54 <a name="l00047"></a>00047 <span class="comment"> Its purpose is to allow compiling TinyXML on co…
55 <a name="l00048"></a>00048 <span class="comment"> Only the member functions relevant to the TinyX…
56 <a name="l00049"></a>00049 <span class="comment"> The buffer allocation is made by a simplistic p…
57 <a name="l00050"></a>00050 <span class="comment"> a string and there's no more room, we allocate …
58 <a name="l00051"></a>00051 <span class="comment">*/</span>
62 <a name="l00055"></a>00055 <span class="comment">// The size type used</span>
65 <a name="l00058"></a>00058 <span class="comment">// Error value for find primitive</span>
66 …tic</span> <span class="keyword">const</span> size_type npos; <span class="comment">// = -1;</span>
69 <a name="l00062"></a>00062 <span class="comment">// TiXmlString empty constructor</span>
74 <a name="l00067"></a>00067 <span class="comment">// TiXmlString copy constructor</span>
81 <a name="l00074"></a>00074 <span class="comment">// TiXmlString constructor, based on a string<…
88 <a name="l00081"></a>00081 <span class="comment">// TiXmlString constructor, based on a string<…
95 <a name="l00088"></a>00088 <span class="comment">// TiXmlString destructor</span>
101 <a name="l00094"></a>00094 <span class="comment">// = operator</span>
107 <a name="l00100"></a>00100 <span class="comment">// = operator</span>
114 <a name="l00107"></a>00107 <span class="comment">// += operator. Maps to append</span>
120 <a name="l00113"></a>00113 <span class="comment">// += operator. Maps to append</span>
126 <a name="l00119"></a>00119 <span class="comment">// += operator. Maps to append</span>
133 <a name="l00126"></a>00126 <span class="comment">// Convert a TiXmlString into a null-terminate…
136 <a name="l00129"></a>00129 <span class="comment">// Convert a TiXmlString into a char * (need n…
139 <a name="l00132"></a>00132 <span class="comment">// Return the length of a TiXmlString</span>
142 <a name="l00135"></a>00135 <span class="comment">// Alias for length()</span>
145 <a name="l00138"></a>00138 <span class="comment">// Checks if a TiXmlString is empty</span>
148 <a name="l00141"></a>00141 <span class="comment">// Return capacity of string</span>
152 <a name="l00145"></a>00145 <span class="comment">// single char extraction</span>
159 <a name="l00152"></a>00152 <span class="comment">// [] operator</span>
166 <a name="l00159"></a>00159 <span class="comment">// find a char in a string. Return TiXmlString…
172 <a name="l00165"></a>00165 <span class="comment">// find a char in a string from an offset. Ret…
186 <a name="l00179"></a>00179 <span class="comment">//Lee:</span>
187 <a name="l00180"></a>00180 <span class="comment">//The original was just too strange, thoug…
188 <a name="l00181"></a>00181 <span class="comment">// TiXmlString().swap(*this);</span>
189 <a name="l00182"></a>00182 <span class="comment">//Instead use the quit &amp; re-init:</spa…
194 <a name="l00187"></a>00187 <span class="comment">/* Function to reserve a big amount of data w…
195 <a name="l00188"></a>00188 <span class="comment"> function DOES NOT clear the content of the…
196 <a name="l00189"></a>00189 <span class="comment"> */</span>
253 …>return</span> ( a.length() == b.length() ) <span class="comment">// optimization …
254 … &amp;&amp; ( strcmp(a.c_str(), b.c_str()) == 0 ); <span class="comment">// actual compar…
276 <a name="l00269"></a>00269 <span class="comment">/*</span>
277 <a name="l00270"></a>00270 <span class="comment"> TiXmlOutStream is an emulation of std::ostream.…
278 <a name="l00271"></a>00271 <span class="comment"> Only the operators that we need for TinyXML hav…
279 <a name="l00272"></a>00272 <span class="comment">*/</span>
284 <a name="l00277"></a>00277 <span class="comment">// TiXmlOutStream &lt;&lt; operator.</span>
291 <a name="l00284"></a>00284 <span class="comment">// TiXmlOutStream &lt;&lt; operator.</span>