<!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"/> <title>Apache log4cxx: StringHelper Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript"> $(document).ready(initResizable); </script> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.3 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">Apache log4cxx <span id="projectnumber">Version 0.10.0</span></div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> </div> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> initNavTree('classlog4cxx_1_1helpers_1_1_string_helper.html',''); </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#pub-static-methods">Static Public Member Functions</a> </div> <div class="headertitle"> <h1>StringHelper Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="log4cxx::helpers::StringHelper" --> <p>String manipulation routines. <a href="#_details">More...</a></p> <p><a href="classlog4cxx_1_1helpers_1_1_string_helper-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-static-methods"></a> Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1_string_helper.html#a74f03f162e4f708745a912594bde0afd">trim</a> (const <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> &s)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1_string_helper.html#acc9c580d76e9ca24b80bfd508b872616">startsWith</a> (const <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> &s, const <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> &suffix)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1_string_helper.html#a438ff4b505054058ab50b4b1f677081d">endsWith</a> (const <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> &s, const <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> &suffix)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1_string_helper.html#a2dbc65416f3d813469568d4a75b32896">equalsIgnoreCase</a> (const <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> &s1, const logchar *upper, const logchar *lower)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1_string_helper.html#ae7683bd4692095a3ee38647eae86774d">equalsIgnoreCase</a> (const <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> &s1, const <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> &upper, const <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> &lower)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1_string_helper.html#a69bbf54d7408fb484f8f1dc5fb21ec15">toInt</a> (const <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> &s)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="log4cxx_8h.html#a9428ea88111d30223da12c76693b0b35">log4cxx_int64_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1_string_helper.html#aacef1a0c17c35174f28ecfb292d02a50">toInt64</a> (const <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> &s)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1_string_helper.html#aa15d4008595e9cff026f89e451faed68">toString</a> (int i, <a class="el" href="classlog4cxx_1_1helpers_1_1_pool.html">log4cxx::helpers::Pool</a> &pool, <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> &dst)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1_string_helper.html#aab83b153df1ab5e1f78c9708f6e1aaa9">toString</a> (<a class="el" href="log4cxx_8h.html#a9428ea88111d30223da12c76693b0b35">log4cxx_int64_t</a> i, <a class="el" href="classlog4cxx_1_1helpers_1_1_pool.html">log4cxx::helpers::Pool</a> &pool, <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> &dst)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1_string_helper.html#a33d4a6460aeb853218c99a3498e514ef">toString</a> (size_t i, <a class="el" href="classlog4cxx_1_1helpers_1_1_pool.html">log4cxx::helpers::Pool</a> &pool, <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> &dst)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1_string_helper.html#a4dfea18726598dbe8f91793bda29d3ef">toString</a> (bool val, <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> &dst)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1_string_helper.html#a0a6e5a01a9151e7628aeb765928f6299">toLowerCase</a> (const <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> &s)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1_string_helper.html#af8860e2344bfd62611fa88ca7e3e4c5c">format</a> (const <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> &pattern, const std::vector< <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> > &params)</td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <div class="textblock"><p>String manipulation routines. </p> </div><hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a438ff4b505054058ab50b4b1f677081d"></a><!-- doxytag: member="log4cxx::helpers::StringHelper::endsWith" ref="a438ff4b505054058ab50b4b1f677081d" args="(const LogString &s, const LogString &suffix)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static bool endsWith </td> <td>(</td> <td class="paramtype">const <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> & </td> <td class="paramname"><em>s</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> & </td> <td class="paramname"><em>suffix</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a2dbc65416f3d813469568d4a75b32896"></a><!-- doxytag: member="log4cxx::helpers::StringHelper::equalsIgnoreCase" ref="a2dbc65416f3d813469568d4a75b32896" args="(const LogString &s1, const logchar *upper, const logchar *lower)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static bool equalsIgnoreCase </td> <td>(</td> <td class="paramtype">const <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> & </td> <td class="paramname"><em>s1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const logchar * </td> <td class="paramname"><em>upper</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const logchar * </td> <td class="paramname"><em>lower</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="ae7683bd4692095a3ee38647eae86774d"></a><!-- doxytag: member="log4cxx::helpers::StringHelper::equalsIgnoreCase" ref="ae7683bd4692095a3ee38647eae86774d" args="(const LogString &s1, const LogString &upper, const LogString &lower)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static bool equalsIgnoreCase </td> <td>(</td> <td class="paramtype">const <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> & </td> <td class="paramname"><em>s1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> & </td> <td class="paramname"><em>upper</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> & </td> <td class="paramname"><em>lower</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="af8860e2344bfd62611fa88ca7e3e4c5c"></a><!-- doxytag: member="log4cxx::helpers::StringHelper::format" ref="af8860e2344bfd62611fa88ca7e3e4c5c" args="(const LogString &pattern, const std::vector< LogString > &params)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> format </td> <td>(</td> <td class="paramtype">const <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> & </td> <td class="paramname"><em>pattern</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::vector< <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> > & </td> <td class="paramname"><em>params</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="acc9c580d76e9ca24b80bfd508b872616"></a><!-- doxytag: member="log4cxx::helpers::StringHelper::startsWith" ref="acc9c580d76e9ca24b80bfd508b872616" args="(const LogString &s, const LogString &suffix)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static bool startsWith </td> <td>(</td> <td class="paramtype">const <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> & </td> <td class="paramname"><em>s</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> & </td> <td class="paramname"><em>suffix</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a69bbf54d7408fb484f8f1dc5fb21ec15"></a><!-- doxytag: member="log4cxx::helpers::StringHelper::toInt" ref="a69bbf54d7408fb484f8f1dc5fb21ec15" args="(const LogString &s)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static int toInt </td> <td>(</td> <td class="paramtype">const <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> & </td> <td class="paramname"><em>s</em></td><td>)</td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="aacef1a0c17c35174f28ecfb292d02a50"></a><!-- doxytag: member="log4cxx::helpers::StringHelper::toInt64" ref="aacef1a0c17c35174f28ecfb292d02a50" args="(const LogString &s)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="log4cxx_8h.html#a9428ea88111d30223da12c76693b0b35">log4cxx_int64_t</a> toInt64 </td> <td>(</td> <td class="paramtype">const <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> & </td> <td class="paramname"><em>s</em></td><td>)</td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a0a6e5a01a9151e7628aeb765928f6299"></a><!-- doxytag: member="log4cxx::helpers::StringHelper::toLowerCase" ref="a0a6e5a01a9151e7628aeb765928f6299" args="(const LogString &s)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> toLowerCase </td> <td>(</td> <td class="paramtype">const <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> & </td> <td class="paramname"><em>s</em></td><td>)</td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a33d4a6460aeb853218c99a3498e514ef"></a><!-- doxytag: member="log4cxx::helpers::StringHelper::toString" ref="a33d4a6460aeb853218c99a3498e514ef" args="(size_t i, log4cxx::helpers::Pool &pool, LogString &dst)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static void toString </td> <td>(</td> <td class="paramtype">size_t </td> <td class="paramname"><em>i</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classlog4cxx_1_1helpers_1_1_pool.html">log4cxx::helpers::Pool</a> & </td> <td class="paramname"><em>pool</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> & </td> <td class="paramname"><em>dst</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="aab83b153df1ab5e1f78c9708f6e1aaa9"></a><!-- doxytag: member="log4cxx::helpers::StringHelper::toString" ref="aab83b153df1ab5e1f78c9708f6e1aaa9" args="(log4cxx_int64_t i, log4cxx::helpers::Pool &pool, LogString &dst)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static void toString </td> <td>(</td> <td class="paramtype"><a class="el" href="log4cxx_8h.html#a9428ea88111d30223da12c76693b0b35">log4cxx_int64_t</a> </td> <td class="paramname"><em>i</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classlog4cxx_1_1helpers_1_1_pool.html">log4cxx::helpers::Pool</a> & </td> <td class="paramname"><em>pool</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> & </td> <td class="paramname"><em>dst</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="aa15d4008595e9cff026f89e451faed68"></a><!-- doxytag: member="log4cxx::helpers::StringHelper::toString" ref="aa15d4008595e9cff026f89e451faed68" args="(int i, log4cxx::helpers::Pool &pool, LogString &dst)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static void toString </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"><em>i</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classlog4cxx_1_1helpers_1_1_pool.html">log4cxx::helpers::Pool</a> & </td> <td class="paramname"><em>pool</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> & </td> <td class="paramname"><em>dst</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a4dfea18726598dbe8f91793bda29d3ef"></a><!-- doxytag: member="log4cxx::helpers::StringHelper::toString" ref="a4dfea18726598dbe8f91793bda29d3ef" args="(bool val, LogString &dst)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static void toString </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"><em>val</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> & </td> <td class="paramname"><em>dst</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a74f03f162e4f708745a912594bde0afd"></a><!-- doxytag: member="log4cxx::helpers::StringHelper::trim" ref="a74f03f162e4f708745a912594bde0afd" args="(const LogString &s)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> trim </td> <td>(</td> <td class="paramtype">const <a class="el" href="namespacelog4cxx.html#ad7ec98d27bca7666e23f27dd1fb181c8">LogString</a> & </td> <td class="paramname"><em>s</em></td><td>)</td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="stringhelper_8h.html">stringhelper.h</a></li> </ul> </div> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespacelog4cxx.html">log4cxx</a> </li> <li class="navelem"><a class="el" href="namespacelog4cxx_1_1helpers.html">helpers</a> </li> <li class="navelem"><a class="el" href="classlog4cxx_1_1helpers_1_1_string_helper.html">StringHelper</a> </li> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> </BODY> </HTML>