| <?xml version='1.0' encoding='UTF-8' standalone='no'?> |
| <doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.9.8" xml:lang="en-US"> |
| <compounddef id="string__util__test_8cc" kind="file" language="C++"> |
| <compoundname>string_util_test.cc</compoundname> |
| <includes refid="string__util_8h" local="yes">iceberg/util/string_util.h</includes> |
| <includes local="no">gtest/gtest.h</includes> |
| <incdepgraph> |
| <node id="12"> |
| <label>iceberg/iceberg_export.h</label> |
| <link refid="iceberg__export_8h_source"/> |
| </node> |
| <node id="13"> |
| <label>iceberg/result.h</label> |
| <link refid="result_8h_source"/> |
| <childnode refid="14" relation="include"> |
| </childnode> |
| <childnode refid="15" relation="include"> |
| </childnode> |
| <childnode refid="7" relation="include"> |
| </childnode> |
| <childnode refid="12" relation="include"> |
| </childnode> |
| </node> |
| <node id="1"> |
| <label>iceberg/test/string_util_test.cc</label> |
| <link refid="string__util__test_8cc"/> |
| <childnode refid="2" relation="include"> |
| </childnode> |
| <childnode refid="16" relation="include"> |
| </childnode> |
| </node> |
| <node id="2"> |
| <label>iceberg/util/string_util.h</label> |
| <link refid="string__util_8h_source"/> |
| <childnode refid="3" relation="include"> |
| </childnode> |
| <childnode refid="4" relation="include"> |
| </childnode> |
| <childnode refid="5" relation="include"> |
| </childnode> |
| <childnode refid="6" relation="include"> |
| </childnode> |
| <childnode refid="7" relation="include"> |
| </childnode> |
| <childnode refid="8" relation="include"> |
| </childnode> |
| <childnode refid="9" relation="include"> |
| </childnode> |
| <childnode refid="10" relation="include"> |
| </childnode> |
| <childnode refid="11" relation="include"> |
| </childnode> |
| <childnode refid="12" relation="include"> |
| </childnode> |
| <childnode refid="13" relation="include"> |
| </childnode> |
| </node> |
| <node id="3"> |
| <label>algorithm</label> |
| </node> |
| <node id="4"> |
| <label>cerrno</label> |
| </node> |
| <node id="5"> |
| <label>charconv</label> |
| </node> |
| <node id="14"> |
| <label>expected</label> |
| </node> |
| <node id="15"> |
| <label>format</label> |
| </node> |
| <node id="16"> |
| <label>gtest/gtest.h</label> |
| </node> |
| <node id="6"> |
| <label>ranges</label> |
| </node> |
| <node id="7"> |
| <label>string</label> |
| </node> |
| <node id="8"> |
| <label>string_view</label> |
| </node> |
| <node id="9"> |
| <label>type_traits</label> |
| </node> |
| <node id="10"> |
| <label>typeinfo</label> |
| </node> |
| <node id="11"> |
| <label>utility</label> |
| </node> |
| </incdepgraph> |
| <innernamespace refid="namespaceiceberg">iceberg</innernamespace> |
| <briefdescription> |
| </briefdescription> |
| <detaileddescription> |
| </detaileddescription> |
| <programlisting> |
| <codeline lineno="1"><highlight class="comment">/*</highlight></codeline> |
| <codeline lineno="2"><highlight class="comment"><sp/>*<sp/>Licensed<sp/>to<sp/>the<sp/>Apache<sp/>Software<sp/>Foundation<sp/>(ASF)<sp/>under<sp/>one</highlight></codeline> |
| <codeline lineno="3"><highlight class="comment"><sp/>*<sp/>or<sp/>more<sp/>contributor<sp/>license<sp/>agreements.<sp/><sp/>See<sp/>the<sp/>NOTICE<sp/>file</highlight></codeline> |
| <codeline lineno="4"><highlight class="comment"><sp/>*<sp/>distributed<sp/>with<sp/>this<sp/>work<sp/>for<sp/>additional<sp/>information</highlight></codeline> |
| <codeline lineno="5"><highlight class="comment"><sp/>*<sp/>regarding<sp/>copyright<sp/>ownership.<sp/><sp/>The<sp/>ASF<sp/>licenses<sp/>this<sp/>file</highlight></codeline> |
| <codeline lineno="6"><highlight class="comment"><sp/>*<sp/>to<sp/>you<sp/>under<sp/>the<sp/>Apache<sp/>License,<sp/>Version<sp/>2.0<sp/>(the</highlight></codeline> |
| <codeline lineno="7"><highlight class="comment"><sp/>*<sp/>"License");<sp/>you<sp/>may<sp/>not<sp/>use<sp/>this<sp/>file<sp/>except<sp/>in<sp/>compliance</highlight></codeline> |
| <codeline lineno="8"><highlight class="comment"><sp/>*<sp/>with<sp/>the<sp/>License.<sp/><sp/>You<sp/>may<sp/>obtain<sp/>a<sp/>copy<sp/>of<sp/>the<sp/>License<sp/>at</highlight></codeline> |
| <codeline lineno="9"><highlight class="comment"><sp/>*</highlight></codeline> |
| <codeline lineno="10"><highlight class="comment"><sp/>*<sp/><sp/><sp/>http://www.apache.org/licenses/LICENSE-2.0</highlight></codeline> |
| <codeline lineno="11"><highlight class="comment"><sp/>*</highlight></codeline> |
| <codeline lineno="12"><highlight class="comment"><sp/>*<sp/>Unless<sp/>required<sp/>by<sp/>applicable<sp/>law<sp/>or<sp/>agreed<sp/>to<sp/>in<sp/>writing,</highlight></codeline> |
| <codeline lineno="13"><highlight class="comment"><sp/>*<sp/>software<sp/>distributed<sp/>under<sp/>the<sp/>License<sp/>is<sp/>distributed<sp/>on<sp/>an</highlight></codeline> |
| <codeline lineno="14"><highlight class="comment"><sp/>*<sp/>"AS<sp/>IS"<sp/>BASIS,<sp/>WITHOUT<sp/>WARRANTIES<sp/>OR<sp/>CONDITIONS<sp/>OF<sp/>ANY</highlight></codeline> |
| <codeline lineno="15"><highlight class="comment"><sp/>*<sp/>KIND,<sp/>either<sp/>express<sp/>or<sp/>implied.<sp/><sp/>See<sp/>the<sp/>License<sp/>for<sp/>the</highlight></codeline> |
| <codeline lineno="16"><highlight class="comment"><sp/>*<sp/>specific<sp/>language<sp/>governing<sp/>permissions<sp/>and<sp/>limitations</highlight></codeline> |
| <codeline lineno="17"><highlight class="comment"><sp/>*<sp/>under<sp/>the<sp/>License.</highlight></codeline> |
| <codeline lineno="18"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="19"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="20"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"iceberg/util/string_util.h"</highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="21"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="22"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><gtest/gtest.h></highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="23"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="24"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">iceberg<sp/>{</highlight></codeline> |
| <codeline lineno="25"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="26"><highlight class="normal">TEST(StringUtilsTest,<sp/>ToLower)<sp/>{</highlight></codeline> |
| <codeline lineno="27"><highlight class="normal"><sp/><sp/>ASSERT_EQ(StringUtils::ToLower(</highlight><highlight class="stringliteral">"AbC"</highlight><highlight class="normal">),<sp/></highlight><highlight class="stringliteral">"abc"</highlight><highlight class="normal">);</highlight></codeline> |
| <codeline lineno="28"><highlight class="normal"><sp/><sp/>ASSERT_EQ(StringUtils::ToLower(</highlight><highlight class="stringliteral">"A-bC"</highlight><highlight class="normal">),<sp/></highlight><highlight class="stringliteral">"a-bc"</highlight><highlight class="normal">);</highlight></codeline> |
| <codeline lineno="29"><highlight class="normal"><sp/><sp/>ASSERT_EQ(StringUtils::ToLower(</highlight><highlight class="stringliteral">"A_bC"</highlight><highlight class="normal">),<sp/></highlight><highlight class="stringliteral">"a_bc"</highlight><highlight class="normal">);</highlight></codeline> |
| <codeline lineno="30"><highlight class="normal"><sp/><sp/>ASSERT_EQ(StringUtils::ToLower(</highlight><highlight class="stringliteral">""</highlight><highlight class="normal">),<sp/></highlight><highlight class="stringliteral">""</highlight><highlight class="normal">);</highlight></codeline> |
| <codeline lineno="31"><highlight class="normal"><sp/><sp/>ASSERT_EQ(StringUtils::ToLower(</highlight><highlight class="stringliteral">"<sp/>"</highlight><highlight class="normal">),<sp/></highlight><highlight class="stringliteral">"<sp/>"</highlight><highlight class="normal">);</highlight></codeline> |
| <codeline lineno="32"><highlight class="normal"><sp/><sp/>ASSERT_EQ(StringUtils::ToLower(</highlight><highlight class="stringliteral">"123"</highlight><highlight class="normal">),<sp/></highlight><highlight class="stringliteral">"123"</highlight><highlight class="normal">);</highlight></codeline> |
| <codeline lineno="33"><highlight class="normal">}</highlight></codeline> |
| <codeline lineno="34"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="35"><highlight class="normal">TEST(StringUtilsTest,<sp/>ToUpper)<sp/>{</highlight></codeline> |
| <codeline lineno="36"><highlight class="normal"><sp/><sp/>ASSERT_EQ(StringUtils::ToUpper(</highlight><highlight class="stringliteral">"abc"</highlight><highlight class="normal">),<sp/></highlight><highlight class="stringliteral">"ABC"</highlight><highlight class="normal">);</highlight></codeline> |
| <codeline lineno="37"><highlight class="normal"><sp/><sp/>ASSERT_EQ(StringUtils::ToUpper(</highlight><highlight class="stringliteral">"A-bC"</highlight><highlight class="normal">),<sp/></highlight><highlight class="stringliteral">"A-BC"</highlight><highlight class="normal">);</highlight></codeline> |
| <codeline lineno="38"><highlight class="normal"><sp/><sp/>ASSERT_EQ(StringUtils::ToUpper(</highlight><highlight class="stringliteral">"A_bC"</highlight><highlight class="normal">),<sp/></highlight><highlight class="stringliteral">"A_BC"</highlight><highlight class="normal">);</highlight></codeline> |
| <codeline lineno="39"><highlight class="normal"><sp/><sp/>ASSERT_EQ(StringUtils::ToUpper(</highlight><highlight class="stringliteral">""</highlight><highlight class="normal">),<sp/></highlight><highlight class="stringliteral">""</highlight><highlight class="normal">);</highlight></codeline> |
| <codeline lineno="40"><highlight class="normal"><sp/><sp/>ASSERT_EQ(StringUtils::ToUpper(</highlight><highlight class="stringliteral">"<sp/>"</highlight><highlight class="normal">),<sp/></highlight><highlight class="stringliteral">"<sp/>"</highlight><highlight class="normal">);</highlight></codeline> |
| <codeline lineno="41"><highlight class="normal"><sp/><sp/>ASSERT_EQ(StringUtils::ToUpper(</highlight><highlight class="stringliteral">"123"</highlight><highlight class="normal">),<sp/></highlight><highlight class="stringliteral">"123"</highlight><highlight class="normal">);</highlight></codeline> |
| <codeline lineno="42"><highlight class="normal">}</highlight></codeline> |
| <codeline lineno="43"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="44"><highlight class="normal">}<sp/><sp/></highlight><highlight class="comment">//<sp/>namespace<sp/>iceberg</highlight><highlight class="normal"></highlight></codeline> |
| </programlisting> |
| <location file="iceberg/test/string_util_test.cc"/> |
| </compounddef> |
| </doxygen> |