<?xml version='1.0' encoding='ISO-8859-1' standalone='yes'?>
<doxygen version="1.2.14">
  <compounddef id="DefaultXMLTraits_8h" kind="file">
    <compoundname>DefaultXMLTraits.h</compoundname>
    <includes local="no">string</includes>
    <includes id="config_8h" local="yes">config.h</includes>
    <includes local="yes">DefaultXMLTraits.cpp</includes>
    <includedby id="Node_8h" local="yes">Node.h</includedby>
    <includedby id="DOM__Parser_8h" local="yes">DOM_Parser.h</includedby>
    <includedby id="SAX__Parser_8h" local="yes">SAX_Parser.h</includedby>
    <includedby id="MiX_8h" local="yes">MiX.h</includedby>
    <incdepgraph>
      <node id="130">
        <label>DefaultXMLTraits.h</label>
        <link id="DefaultXMLTraits.h"/>
        <childnode id="131" relation="public-inheritance">
        </childnode>
        <childnode id="132" relation="public-inheritance">
        </childnode>
        <childnode id="133" relation="public-inheritance">
        </childnode>
      </node>
      <node id="131">
        <label>string</label>
      </node>
      <node id="133">
        <label>DefaultXMLTraits.cpp</label>
      </node>
      <node id="132">
        <label>config.h</label>
        <link id="config_8h"/>
      </node>
    </incdepgraph>
    <invincdepgraph>
      <node id="134">
        <label>DefaultXMLTraits.h</label>
        <link id="DefaultXMLTraits.h"/>
        <childnode id="135" relation="public-inheritance">
        </childnode>
        <childnode id="143" relation="public-inheritance">
        </childnode>
        <childnode id="144" relation="public-inheritance">
        </childnode>
        <childnode id="138" relation="public-inheritance">
        </childnode>
      </node>
      <node id="143">
        <label>DOM_Parser.h</label>
        <link id="DOM__Parser_8h"/>
        <childnode id="138" relation="public-inheritance">
        </childnode>
      </node>
      <node id="141">
        <label>NodeContainer.h</label>
        <link id="NodeContainer_8h"/>
        <childnode id="142" relation="public-inheritance">
        </childnode>
        <childnode id="138" relation="public-inheritance">
        </childnode>
      </node>
      <node id="139">
        <label>Value.h</label>
        <link id="Value_8h"/>
        <childnode id="137" relation="public-inheritance">
        </childnode>
        <childnode id="140" relation="public-inheritance">
        </childnode>
        <childnode id="138" relation="public-inheritance">
        </childnode>
      </node>
      <node id="144">
        <label>SAX_Parser.h</label>
        <link id="SAX__Parser_8h"/>
        <childnode id="143" relation="public-inheritance">
        </childnode>
        <childnode id="138" relation="public-inheritance">
        </childnode>
      </node>
      <node id="138">
        <label>MiX.h</label>
        <link id="MiX_8h"/>
      </node>
      <node id="135">
        <label>Node.h</label>
        <link id="Node_8h"/>
        <childnode id="136" relation="public-inheritance">
        </childnode>
        <childnode id="139" relation="public-inheritance">
        </childnode>
        <childnode id="141" relation="public-inheritance">
        </childnode>
        <childnode id="138" relation="public-inheritance">
        </childnode>
      </node>
      <node id="137">
        <label>Attribute.h</label>
        <link id="Attribute_8h"/>
        <childnode id="138" relation="public-inheritance">
        </childnode>
      </node>
      <node id="136">
        <label>NamedNode.h</label>
        <link id="NamedNode_8h"/>
        <childnode id="137" relation="public-inheritance">
        </childnode>
        <childnode id="138" relation="public-inheritance">
        </childnode>
      </node>
      <node id="142">
        <label>Element.h</label>
        <link id="Element_8h"/>
        <childnode id="138" relation="public-inheritance">
        </childnode>
      </node>
      <node id="140">
        <label>Comment.h</label>
        <link id="Comment_8h"/>
        <childnode id="138" relation="public-inheritance">
        </childnode>
      </node>
    </invincdepgraph>
    <innernamespace refid="namespaceMiX">MiX</innernamespace>
    <briefdescription>
    </briefdescription>
    <detaileddescription>
    </detaileddescription>
    <programlisting>
<linenumber line="1"/><codeline><highlight class="comment">// -*- mode: c++ -*-</highlight></codeline>
<linenumber line="2"/><codeline><highlight class="preprocessor">#ifndef MiX_DEFAULTXMLTRAITS_H_</highlight></codeline>
<linenumber line="3"/><codeline><highlight class="preprocessor"></highlight><highlight class="preprocessor">#define MiX_DEFAULTXMLTRAITS_H_</highlight></codeline>
<linenumber line="4"/><codeline><highlight class="preprocessor"></highlight></codeline>
<linenumber line="5"/><codeline><highlight class="comment">// Adlib/DefaultXMLTraits.h</highlight></codeline>
<linenumber line="6"/><codeline><highlight class="comment">// (C) Copyright KUBO,Yotaro.</highlight></codeline>
<linenumber line="7"/><codeline><highlight class="comment">// [バージョン履歴]</highlight></codeline>
<linenumber line="8"/><codeline><highlight class="comment">// 0.4.7</highlight></codeline>
<linenumber line="9"/><codeline><highlight class="comment">//   - DefaultXMLTraits.cppのIncludeGuardマクロ名の変更</highlight></codeline>
<linenumber line="10"/><codeline><highlight class="preprocessor">#include &lt;string&gt;</highlight></codeline>
<linenumber line="11"/><codeline><highlight class="preprocessor">#include &quot;<ref refid="config_8h" kindref="compound">config.h</ref>&quot;</highlight></codeline>
<linenumber line="12"/><codeline></codeline>
<linenumber line="13"/><codeline><highlight class="keyword">namespace </highlight>MiX{</codeline>
<linenumber line="14"/><codeline></codeline>
<linenumber line="15"/><codeline>  <highlight class="keyword">template</highlight> &lt;<highlight class="keyword">class</highlight> <highlight class="keywordtype">char</highlight>T,<highlight class="keyword">class</highlight> <highlight class="keywordtype">char</highlight>_traits&gt;</codeline>
<linenumber line="16" refid="classMiX_1_1DefaultXMLTraits" kindref="compound"/><codeline>  <highlight class="keyword">class </highlight>DefaultXMLTraits{</codeline>
<linenumber line="17"/><codeline>  <highlight class="keyword">public</highlight>:</codeline>
<linenumber line="18" refid="classMiX_1_1DefaultXMLTraits_1s0" kindref="member"/><codeline>    <highlight class="keyword">typedef</highlight> std::basic_string&lt;charT,char_traits&gt; <ref refid="classMiX_1_1DefaultXMLTraits_1s0" kindref="member">basic_string_type</ref>;</codeline>
<linenumber line="19"/><codeline>  <highlight class="keyword">private</highlight>:</codeline>
<linenumber line="20"/><codeline>    <highlight class="keyword">static</highlight> <ref refid="classMiX_1_1DefaultXMLTraits_1s0" kindref="member">basic_string_type</ref> makeString(<highlight class="keyword">const</highlight> <highlight class="keywordtype">char</highlight>* szSrc);</codeline>
<linenumber line="21"/><codeline></codeline>
<linenumber line="22"/><codeline>  <highlight class="keyword">public</highlight>:</codeline>
<linenumber line="24" refid="classMiX_1_1DefaultXMLTraits_1d0" kindref="member"/><codeline>    <highlight class="keyword">static</highlight> charT <ref refid="classMiX_1_1DefaultXMLTraits_1d0" kindref="member">null</ref>(){ <highlight class="keywordflow">return</highlight> static_cast&lt;charT&gt;(<highlight class="charliteral">&apos;\0&apos;</highlight>); }</codeline>
<linenumber line="26" refid="classMiX_1_1DefaultXMLTraits_1d1" kindref="member"/><codeline>    <highlight class="keyword">static</highlight> charT <ref refid="classMiX_1_1DefaultXMLTraits_1d1" kindref="member">crlf</ref>(){ <highlight class="keywordflow">return</highlight> static_cast&lt;charT&gt;(<highlight class="charliteral">&apos;\n&apos;</highlight>); }</codeline>
<linenumber line="28" refid="classMiX_1_1DefaultXMLTraits_1d2" kindref="member"/><codeline>    <highlight class="keyword">static</highlight> charT <ref refid="classMiX_1_1DefaultXMLTraits_1d2" kindref="member">sp</ref>(){ <highlight class="keywordflow">return</highlight> static_cast&lt;charT&gt;(<highlight class="charliteral">&apos; &apos;</highlight>); }</codeline>
<linenumber line="30" refid="classMiX_1_1DefaultXMLTraits_1d3" kindref="member"/><codeline>    <highlight class="keyword">static</highlight> charT <ref refid="classMiX_1_1DefaultXMLTraits_1d3" kindref="member">tab</ref>(){ <highlight class="keywordflow">return</highlight> static_cast&lt;charT&gt;(<highlight class="charliteral">&apos;\t&apos;</highlight>); }</codeline>
<linenumber line="31"/><codeline></codeline>
<linenumber line="33" refid="classMiX_1_1DefaultXMLTraits_1d4" kindref="member"/><codeline>    <highlight class="keyword">static</highlight> charT <ref refid="classMiX_1_1DefaultXMLTraits_1d4" kindref="member">lt</ref>(){ <highlight class="keywordflow">return</highlight> static_cast&lt;charT&gt;(<highlight class="charliteral">&apos;&lt;&apos;</highlight>); }</codeline>
<linenumber line="35" refid="classMiX_1_1DefaultXMLTraits_1d5" kindref="member"/><codeline>    <highlight class="keyword">static</highlight> charT <ref refid="classMiX_1_1DefaultXMLTraits_1d5" kindref="member">eq</ref>(){ <highlight class="keywordflow">return</highlight> static_cast&lt;charT&gt;(<highlight class="charliteral">&apos;=&apos;</highlight>); }</codeline>
<linenumber line="37" refid="classMiX_1_1DefaultXMLTraits_1d6" kindref="member"/><codeline>    <highlight class="keyword">static</highlight> charT <ref refid="classMiX_1_1DefaultXMLTraits_1d6" kindref="member">gt</ref>(){ <highlight class="keywordflow">return</highlight> static_cast&lt;charT&gt;(<highlight class="charliteral">&apos;&gt;&apos;</highlight>); }</codeline>
<linenumber line="38"/><codeline></codeline>
<linenumber line="40" refid="classMiX_1_1DefaultXMLTraits_1d7" kindref="member"/><codeline>    <highlight class="keyword">static</highlight> charT <ref refid="classMiX_1_1DefaultXMLTraits_1d7" kindref="member">slash</ref>(){ <highlight class="keywordflow">return</highlight> static_cast&lt;charT&gt;(<highlight class="charliteral">&apos;/&apos;</highlight>); }</codeline>
<linenumber line="42" refid="classMiX_1_1DefaultXMLTraits_1d8" kindref="member"/><codeline>    <highlight class="keyword">static</highlight> charT <ref refid="classMiX_1_1DefaultXMLTraits_1d8" kindref="member">hyphen</ref>(){ <highlight class="keywordflow">return</highlight> static_cast&lt;charT&gt;(<highlight class="charliteral">&apos;-&apos;</highlight>); }</codeline>
<linenumber line="44" refid="classMiX_1_1DefaultXMLTraits_1d9" kindref="member"/><codeline>    <highlight class="keyword">static</highlight> charT <ref refid="classMiX_1_1DefaultXMLTraits_1d9" kindref="member">colon</ref>() { <highlight class="keywordflow">return</highlight> static_cast&lt;charT&gt;(<highlight class="charliteral">&apos;:&apos;</highlight>); }</codeline>
<linenumber line="46" refid="classMiX_1_1DefaultXMLTraits_1d10" kindref="member"/><codeline>    <highlight class="keyword">static</highlight> charT <ref refid="classMiX_1_1DefaultXMLTraits_1d10" kindref="member">semicolon</ref>(){ <highlight class="keywordflow">return</highlight> static_cast&lt;charT&gt;(<highlight class="charliteral">&apos;;&apos;</highlight>); }</codeline>
<linenumber line="47"/><codeline></codeline>
<linenumber line="49" refid="classMiX_1_1DefaultXMLTraits_1d11" kindref="member"/><codeline>    <highlight class="keyword">static</highlight> charT <ref refid="classMiX_1_1DefaultXMLTraits_1d11" kindref="member">exclamation</ref>(){ <highlight class="keywordflow">return</highlight> static_cast&lt;charT&gt;(<highlight class="charliteral">&apos;!&apos;</highlight>); }</codeline>
<linenumber line="51" refid="classMiX_1_1DefaultXMLTraits_1d12" kindref="member"/><codeline>    <highlight class="keyword">static</highlight> charT <ref refid="classMiX_1_1DefaultXMLTraits_1d12" kindref="member">question</ref>(){ <highlight class="keywordflow">return</highlight> static_cast&lt;charT&gt;(<highlight class="charliteral">&apos;?&apos;</highlight>); }</codeline>
<linenumber line="53" refid="classMiX_1_1DefaultXMLTraits_1d13" kindref="member"/><codeline>    <highlight class="keyword">static</highlight> charT <ref refid="classMiX_1_1DefaultXMLTraits_1d13" kindref="member">amp</ref>(){ <highlight class="keywordflow">return</highlight> static_cast&lt;charT&gt;(<highlight class="charliteral">&apos;&amp;&apos;</highlight>); }</codeline>
<linenumber line="54"/><codeline></codeline>
<linenumber line="56" refid="classMiX_1_1DefaultXMLTraits_1d14" kindref="member"/><codeline>    <highlight class="keyword">static</highlight> charT <ref refid="classMiX_1_1DefaultXMLTraits_1d14" kindref="member">dblquote</ref>() { <highlight class="keywordflow">return</highlight> static_cast&lt;charT&gt;(<highlight class="charliteral">&apos;\&quot;&apos;</highlight>); }</codeline>
<linenumber line="58" refid="classMiX_1_1DefaultXMLTraits_1d15" kindref="member"/><codeline>    <highlight class="keyword">static</highlight> charT <ref refid="classMiX_1_1DefaultXMLTraits_1d15" kindref="member">quote</ref>() { <highlight class="keywordflow">return</highlight> static_cast&lt;charT&gt;(<highlight class="charliteral">&apos;\&apos;&apos;</highlight>); }</codeline>
<linenumber line="59"/><codeline></codeline>
<linenumber line="60"/><codeline>    <highlight class="comment">//文字列処理</highlight></codeline>
<linenumber line="61"/><codeline>    <highlight class="comment">//XML文書中で使われる文字列を返す。</highlight></codeline>
<linenumber line="63" refid="classMiX_1_1DefaultXMLTraits_1d16" kindref="member"/><codeline><highlight class="comment">    static basic_string_type xml(){ </highlight></codeline>
<linenumber line="64"/><codeline>      <highlight class="keywordflow">return</highlight> makeString(<highlight class="stringliteral">&quot;xml&quot;</highlight>);</codeline>
<linenumber line="65"/><codeline>    }</codeline>
<linenumber line="67" refid="classMiX_1_1DefaultXMLTraits_1d17" kindref="member"/><codeline>    <highlight class="keyword">static</highlight> basic_string_type cdata(){</codeline>
<linenumber line="68"/><codeline>      <highlight class="keywordflow">return</highlight> makeString(<highlight class="stringliteral">&quot;CDATA&quot;</highlight>);</codeline>
<linenumber line="69"/><codeline>    }</codeline>
<linenumber line="71" refid="classMiX_1_1DefaultXMLTraits_1d18" kindref="member"/><codeline>    <highlight class="keyword">static</highlight> basic_string_type str_lt(){</codeline>
<linenumber line="72"/><codeline>      <highlight class="keywordflow">return</highlight> makeString(<highlight class="stringliteral">&quot;lt&quot;</highlight>);</codeline>
<linenumber line="73"/><codeline>    }</codeline>
<linenumber line="75" refid="classMiX_1_1DefaultXMLTraits_1d19" kindref="member"/><codeline>    <highlight class="keyword">static</highlight> basic_string_type str_gt(){</codeline>
<linenumber line="76"/><codeline>      <highlight class="keywordflow">return</highlight> makeString(<highlight class="stringliteral">&quot;gt&quot;</highlight>);</codeline>
<linenumber line="77"/><codeline>    }</codeline>
<linenumber line="79" refid="classMiX_1_1DefaultXMLTraits_1d20" kindref="member"/><codeline>    <highlight class="keyword">static</highlight> basic_string_type str_amp(){</codeline>
<linenumber line="80"/><codeline>      <highlight class="keywordflow">return</highlight> makeString(<highlight class="stringliteral">&quot;amp&quot;</highlight>);</codeline>
<linenumber line="81"/><codeline>    }</codeline>
<linenumber line="83" refid="classMiX_1_1DefaultXMLTraits_1d21" kindref="member"/><codeline>    <highlight class="keyword">static</highlight> basic_string_type str_quot(){</codeline>
<linenumber line="84"/><codeline>      <highlight class="keywordflow">return</highlight> makeString(<highlight class="stringliteral">&quot;quot&quot;</highlight>);</codeline>
<linenumber line="85"/><codeline>    }</codeline>
<linenumber line="87" refid="classMiX_1_1DefaultXMLTraits_1d22" kindref="member"/><codeline>    <highlight class="keyword">static</highlight> basic_string_type str_apos(){</codeline>
<linenumber line="88"/><codeline>      <highlight class="keywordflow">return</highlight> makeString(<highlight class="stringliteral">&quot;apos&quot;</highlight>);</codeline>
<linenumber line="89"/><codeline>    }</codeline>
<linenumber line="90"/><codeline></codeline>
<linenumber line="92" refid="classMiX_1_1DefaultXMLTraits_1d23" kindref="member"/><codeline>    <highlight class="keyword">static</highlight> basic_string_type str_xmlns(){ </codeline>
<linenumber line="93"/><codeline>      <highlight class="keywordflow">return</highlight> makeString(<highlight class="stringliteral">&quot;xmlns&quot;</highlight>);</codeline>
<linenumber line="94"/><codeline>    }</codeline>
<linenumber line="95"/><codeline></codeline>
<linenumber line="104" refid="classMiX_1_1DefaultXMLTraits_1d24" kindref="member"/><codeline>    <highlight class="keyword">static</highlight> <highlight class="keywordtype">int</highlight> ci_compare(<highlight class="keyword">const</highlight> charT* s1,<highlight class="keyword">const</highlight> charT* s2,size_t n){</codeline>
<linenumber line="105"/><codeline>      <highlight class="keywordflow">for</highlight>(size_t i=0;i&lt;n;i++){</codeline>
<linenumber line="106"/><codeline>	<highlight class="keywordtype">int</highlight> c1,c2;</codeline>
<linenumber line="107"/><codeline>	c1 = std::tolower(static_cast&lt;int&gt;(s1[i]));</codeline>
<linenumber line="108"/><codeline>	c2 = std::tolower(static_cast&lt;int&gt;(s2[i]));</codeline>
<linenumber line="109"/><codeline>	<highlight class="keywordflow">if</highlight>(c1&gt;c2) <highlight class="keywordflow">return</highlight> 1;</codeline>
<linenumber line="110"/><codeline>	<highlight class="keywordflow">if</highlight>(c1&lt;c2) <highlight class="keywordflow">return</highlight> -1;</codeline>
<linenumber line="111"/><codeline>      }</codeline>
<linenumber line="112"/><codeline>      <highlight class="keywordflow">return</highlight> 0;</codeline>
<linenumber line="113"/><codeline>    }</codeline>
<linenumber line="114"/><codeline>    </codeline>
<linenumber line="115"/><codeline>  };</codeline>
<linenumber line="116"/><codeline>}</codeline>
<linenumber line="117"/><codeline></codeline>
<linenumber line="118"/><codeline><highlight class="preprocessor">#ifndef MiX_DEFAULTXMLTRAITS_CPP_</highlight></codeline>
<linenumber line="119"/><codeline><highlight class="preprocessor"></highlight><highlight class="preprocessor">#include &quot;DefaultXMLTraits.cpp&quot;</highlight></codeline>
<linenumber line="120"/><codeline><highlight class="preprocessor">#endif</highlight></codeline>
<linenumber line="121"/><codeline><highlight class="preprocessor"></highlight></codeline>
<linenumber line="122"/><codeline><highlight class="preprocessor">#endif</highlight></codeline>
    </programlisting>
    <location file="/home/yotaro/prog/MiX-0.5.0/src/MiX/DefaultXMLTraits.h"/>
  </compounddef>
</doxygen>
