| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 |
<head> |
| 4 |
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 5 |
<meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 6 |
<title>Kyoto Cabinet: kyotocabinet::Regex Class Reference</title> |
| 7 |
|
| 8 |
<link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 9 |
<link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
</head> |
| 14 |
<body> |
| 15 |
<div id="top"><!-- do not remove this div! --> |
| 16 |
|
| 17 |
|
| 18 |
<div id="titlearea"> |
| 19 |
<table cellspacing="0" cellpadding="0"> |
| 20 |
<tbody> |
| 21 |
<tr style="height: 56px;"> |
| 22 |
|
| 23 |
|
| 24 |
<td style="padding-left: 0.5em;"> |
| 25 |
<div id="projectname">Kyoto Cabinet |
| 26 |
|
| 27 |
</div> |
| 28 |
|
| 29 |
</td> |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
</tr> |
| 34 |
</tbody> |
| 35 |
</table> |
| 36 |
</div> |
| 37 |
|
| 38 |
<!-- Generated by Doxygen 1.7.6.1 --> |
| 39 |
<div id="navrow1" class="tabs"> |
| 40 |
<ul class="tablist"> |
| 41 |
<li><a href="index.html"><span>Main Page</span></a></li> |
| 42 |
<li><a href="namespaces.html"><span>Namespaces</span></a></li> |
| 43 |
<li class="current"><a href="annotated.html"><span>Classes</span></a></li> |
| 44 |
<li><a href="files.html"><span>Files</span></a></li> |
| 45 |
</ul> |
| 46 |
</div> |
| 47 |
<div id="navrow2" class="tabs2"> |
| 48 |
<ul class="tablist"> |
| 49 |
<li><a href="annotated.html"><span>Class List</span></a></li> |
| 50 |
<li><a href="classes.html"><span>Class Index</span></a></li> |
| 51 |
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
| 52 |
<li><a href="functions.html"><span>Class Members</span></a></li> |
| 53 |
</ul> |
| 54 |
</div> |
| 55 |
<div id="nav-path" class="navpath"> |
| 56 |
<ul> |
| 57 |
<li class="navelem"><a class="el" href="namespacekyotocabinet.html">kyotocabinet</a> </li> |
| 58 |
<li class="navelem"><a class="el" href="classkyotocabinet_1_1Regex.html">Regex</a> </li> |
| 59 |
</ul> |
| 60 |
</div> |
| 61 |
</div> |
| 62 |
<div class="header"> |
| 63 |
<div class="summary"> |
| 64 |
<a href="#pub-types">Public Types</a> | |
| 65 |
<a href="#pub-methods">Public Member Functions</a> | |
| 66 |
<a href="#pub-static-methods">Static Public Member Functions</a> </div> |
| 67 |
<div class="headertitle"> |
| 68 |
<div class="title">kyotocabinet::Regex Class Reference</div> </div> |
| 69 |
</div><!--header--> |
| 70 |
<div class="contents"> |
| 71 |
<!-- doxytag: class="kyotocabinet::Regex" --> |
| 72 |
<p>Regular expression. |
| 73 |
<a href="classkyotocabinet_1_1Regex.html#details">More...</a></p> |
| 74 |
|
| 75 |
<p><code>#include <kcregex.h></code></p> |
| 76 |
|
| 77 |
<p><a href="classkyotocabinet_1_1Regex-members.html">List of all members.</a></p> |
| 78 |
<table class="memberdecls"> |
| 79 |
<tr><td colspan="2"><h2><a name="pub-types"></a> |
| 80 |
Public Types</h2></td></tr> |
| 81 |
<tr><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classkyotocabinet_1_1Regex.html#a80ed6239125ac588fc686a055708d08d">Option</a> { <a class="el" href="classkyotocabinet_1_1Regex.html#a80ed6239125ac588fc686a055708d08dab7b9193ddfad2cc5ff6401067c2e4569">IGNCASE</a> = 1 << 0, |
| 82 |
<a class="el" href="classkyotocabinet_1_1Regex.html#a80ed6239125ac588fc686a055708d08da5c0805855750f219cffe3bf37c165a4d">MATCHONLY</a> = 1 << 1 |
| 83 |
}</td></tr> |
| 84 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Options. <a href="classkyotocabinet_1_1Regex.html#a80ed6239125ac588fc686a055708d08d">More...</a><br/></td></tr> |
| 85 |
<tr><td colspan="2"><h2><a name="pub-methods"></a> |
| 86 |
Public Member Functions</h2></td></tr> |
| 87 |
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classkyotocabinet_1_1Regex.html#a543d919f88d832a70f7d7ba5e794600a">Regex</a> ()</td></tr> |
| 88 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <a href="#a543d919f88d832a70f7d7ba5e794600a"></a><br/></td></tr> |
| 89 |
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classkyotocabinet_1_1Regex.html#a34ee0a9869b2bad3f27a8ccf140d4ab7">~Regex</a> ()</td></tr> |
| 90 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a34ee0a9869b2bad3f27a8ccf140d4ab7"></a><br/></td></tr> |
| 91 |
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classkyotocabinet_1_1Regex.html#aa97d16daee7a906a8cb2da9c7074576b">compile</a> (const std::string &regex, uint32_t opts=0)</td></tr> |
| 92 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Compile a string of regular expression. <a href="#aa97d16daee7a906a8cb2da9c7074576b"></a><br/></td></tr> |
| 93 |
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classkyotocabinet_1_1Regex.html#adf7b6066fb2edd764d4fff519b9ccaf2">match</a> (const std::string &str)</td></tr> |
| 94 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Check whether a string matches the regular expression. <a href="#adf7b6066fb2edd764d4fff519b9ccaf2"></a><br/></td></tr> |
| 95 |
<tr><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classkyotocabinet_1_1Regex.html#ad6611f28f2a01531c5d24a67ff461c0a">replace</a> (const std::string &str, const std::string &alt)</td></tr> |
| 96 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Check whether a string matches the regular expression. <a href="#ad6611f28f2a01531c5d24a67ff461c0a"></a><br/></td></tr> |
| 97 |
<tr><td colspan="2"><h2><a name="pub-static-methods"></a> |
| 98 |
Static Public Member Functions</h2></td></tr> |
| 99 |
<tr><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classkyotocabinet_1_1Regex.html#a421bc32fc09b163ea846641d7a303237">match</a> (const std::string &str, const std::string &pattern, uint32_t opts=0)</td></tr> |
| 100 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Check whether a string matches a regular expression. <a href="#a421bc32fc09b163ea846641d7a303237"></a><br/></td></tr> |
| 101 |
<tr><td class="memItemLeft" align="right" valign="top">static std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classkyotocabinet_1_1Regex.html#a9e9011cdaac269de39cbfe35aecf9981">replace</a> (const std::string &str, const std::string &pattern, const std::string &alt, uint32_t opts=0)</td></tr> |
| 102 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Check whether a string matches the regular expression. <a href="#a9e9011cdaac269de39cbfe35aecf9981"></a><br/></td></tr> |
| 103 |
</table> |
| 104 |
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2> |
| 105 |
<div class="textblock"><p>Regular expression. </p> |
| 106 |
</div><hr/><h2>Member Enumeration Documentation</h2> |
| 107 |
<a class="anchor" id="a80ed6239125ac588fc686a055708d08d"></a><!-- doxytag: member="kyotocabinet::Regex::Option" ref="a80ed6239125ac588fc686a055708d08d" args="" --> |
| 108 |
<div class="memitem"> |
| 109 |
<div class="memproto"> |
| 110 |
<table class="memname"> |
| 111 |
<tr> |
| 112 |
<td class="memname">enum <a class="el" href="classkyotocabinet_1_1Regex.html#a80ed6239125ac588fc686a055708d08d">kyotocabinet::Regex::Option</a></td> |
| 113 |
</tr> |
| 114 |
</table> |
| 115 |
</div> |
| 116 |
<div class="memdoc"> |
| 117 |
|
| 118 |
<p>Options. </p> |
| 119 |
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0"> |
| 120 |
<tr><td valign="top"><em><a class="anchor" id="a80ed6239125ac588fc686a055708d08dab7b9193ddfad2cc5ff6401067c2e4569"></a><!-- doxytag: member="IGNCASE" ref="a80ed6239125ac588fc686a055708d08dab7b9193ddfad2cc5ff6401067c2e4569" args="" -->IGNCASE</em> </td><td> |
| 121 |
<p>case-insensitive </p> |
| 122 |
</td></tr> |
| 123 |
<tr><td valign="top"><em><a class="anchor" id="a80ed6239125ac588fc686a055708d08da5c0805855750f219cffe3bf37c165a4d"></a><!-- doxytag: member="MATCHONLY" ref="a80ed6239125ac588fc686a055708d08da5c0805855750f219cffe3bf37c165a4d" args="" -->MATCHONLY</em> </td><td> |
| 124 |
<p>matching only </p> |
| 125 |
</td></tr> |
| 126 |
</table> |
| 127 |
</dd> |
| 128 |
</dl> |
| 129 |
|
| 130 |
</div> |
| 131 |
</div> |
| 132 |
<hr/><h2>Constructor & Destructor Documentation</h2> |
| 133 |
<a class="anchor" id="a543d919f88d832a70f7d7ba5e794600a"></a><!-- doxytag: member="kyotocabinet::Regex::Regex" ref="a543d919f88d832a70f7d7ba5e794600a" args="()" --> |
| 134 |
<div class="memitem"> |
| 135 |
<div class="memproto"> |
| 136 |
<table class="memname"> |
| 137 |
<tr> |
| 138 |
<td class="memname"><a class="el" href="classkyotocabinet_1_1Regex.html#a543d919f88d832a70f7d7ba5e794600a">kyotocabinet::Regex::Regex</a> </td> |
| 139 |
<td>(</td> |
| 140 |
<td class="paramname"></td><td>)</td> |
| 141 |
<td><code> [explicit]</code></td> |
| 142 |
</tr> |
| 143 |
</table> |
| 144 |
</div> |
| 145 |
<div class="memdoc"> |
| 146 |
|
| 147 |
<p>Default constructor. </p> |
| 148 |
|
| 149 |
</div> |
| 150 |
</div> |
| 151 |
<a class="anchor" id="a34ee0a9869b2bad3f27a8ccf140d4ab7"></a><!-- doxytag: member="kyotocabinet::Regex::~Regex" ref="a34ee0a9869b2bad3f27a8ccf140d4ab7" args="()" --> |
| 152 |
<div class="memitem"> |
| 153 |
<div class="memproto"> |
| 154 |
<table class="memname"> |
| 155 |
<tr> |
| 156 |
<td class="memname"><a class="el" href="classkyotocabinet_1_1Regex.html#a34ee0a9869b2bad3f27a8ccf140d4ab7">kyotocabinet::Regex::~Regex</a> </td> |
| 157 |
<td>(</td> |
| 158 |
<td class="paramname"></td><td>)</td> |
| 159 |
<td></td> |
| 160 |
</tr> |
| 161 |
</table> |
| 162 |
</div> |
| 163 |
<div class="memdoc"> |
| 164 |
|
| 165 |
<p>Destructor. </p> |
| 166 |
|
| 167 |
</div> |
| 168 |
</div> |
| 169 |
<hr/><h2>Member Function Documentation</h2> |
| 170 |
<a class="anchor" id="aa97d16daee7a906a8cb2da9c7074576b"></a><!-- doxytag: member="kyotocabinet::Regex::compile" ref="aa97d16daee7a906a8cb2da9c7074576b" args="(const std::string &regex, uint32_t opts=0)" --> |
| 171 |
<div class="memitem"> |
| 172 |
<div class="memproto"> |
| 173 |
<table class="memname"> |
| 174 |
<tr> |
| 175 |
<td class="memname">bool <a class="el" href="classkyotocabinet_1_1Regex.html#aa97d16daee7a906a8cb2da9c7074576b">kyotocabinet::Regex::compile</a> </td> |
| 176 |
<td>(</td> |
| 177 |
<td class="paramtype">const std::string & </td> |
| 178 |
<td class="paramname"><em>regex</em>, </td> |
| 179 |
</tr> |
| 180 |
<tr> |
| 181 |
<td class="paramkey"></td> |
| 182 |
<td></td> |
| 183 |
<td class="paramtype">uint32_t </td> |
| 184 |
<td class="paramname"><em>opts</em> = <code>0</code> </td> |
| 185 |
</tr> |
| 186 |
<tr> |
| 187 |
<td></td> |
| 188 |
<td>)</td> |
| 189 |
<td></td><td></td> |
| 190 |
</tr> |
| 191 |
</table> |
| 192 |
</div> |
| 193 |
<div class="memdoc"> |
| 194 |
|
| 195 |
<p>Compile a string of regular expression. </p> |
| 196 |
<dl class="params"><dt><b>Parameters:</b></dt><dd> |
| 197 |
<table class="params"> |
| 198 |
<tr><td class="paramname">regex</td><td>the string of regular expression. </td></tr> |
| 199 |
<tr><td class="paramname">opts</td><td>the optional features by bitwise-or: <a class="el" href="classkyotocabinet_1_1Regex.html#a80ed6239125ac588fc686a055708d08dab7b9193ddfad2cc5ff6401067c2e4569" title="case-insensitive">Regex::IGNCASE</a> for case-insensitive matching, <a class="el" href="classkyotocabinet_1_1Regex.html#a80ed6239125ac588fc686a055708d08da5c0805855750f219cffe3bf37c165a4d" title="matching only">Regex::MATCHONLY</a> for matching only usage. </td></tr> |
| 200 |
</table> |
| 201 |
</dd> |
| 202 |
</dl> |
| 203 |
|
| 204 |
</div> |
| 205 |
</div> |
| 206 |
<a class="anchor" id="adf7b6066fb2edd764d4fff519b9ccaf2"></a><!-- doxytag: member="kyotocabinet::Regex::match" ref="adf7b6066fb2edd764d4fff519b9ccaf2" args="(const std::string &str)" --> |
| 207 |
<div class="memitem"> |
| 208 |
<div class="memproto"> |
| 209 |
<table class="memname"> |
| 210 |
<tr> |
| 211 |
<td class="memname">bool <a class="el" href="classkyotocabinet_1_1Regex.html#adf7b6066fb2edd764d4fff519b9ccaf2">kyotocabinet::Regex::match</a> </td> |
| 212 |
<td>(</td> |
| 213 |
<td class="paramtype">const std::string & </td> |
| 214 |
<td class="paramname"><em>str</em></td><td>)</td> |
| 215 |
<td></td> |
| 216 |
</tr> |
| 217 |
</table> |
| 218 |
</div> |
| 219 |
<div class="memdoc"> |
| 220 |
|
| 221 |
<p>Check whether a string matches the regular expression. </p> |
| 222 |
<dl class="params"><dt><b>Parameters:</b></dt><dd> |
| 223 |
<table class="params"> |
| 224 |
<tr><td class="paramname">str</td><td>the string. </td></tr> |
| 225 |
</table> |
| 226 |
</dd> |
| 227 |
</dl> |
| 228 |
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the string matches, or false if not. </dd></dl> |
| 229 |
|
| 230 |
</div> |
| 231 |
</div> |
| 232 |
<a class="anchor" id="ad6611f28f2a01531c5d24a67ff461c0a"></a><!-- doxytag: member="kyotocabinet::Regex::replace" ref="ad6611f28f2a01531c5d24a67ff461c0a" args="(const std::string &str, const std::string &alt)" --> |
| 233 |
<div class="memitem"> |
| 234 |
<div class="memproto"> |
| 235 |
<table class="memname"> |
| 236 |
<tr> |
| 237 |
<td class="memname">std::string <a class="el" href="classkyotocabinet_1_1Regex.html#ad6611f28f2a01531c5d24a67ff461c0a">kyotocabinet::Regex::replace</a> </td> |
| 238 |
<td>(</td> |
| 239 |
<td class="paramtype">const std::string & </td> |
| 240 |
<td class="paramname"><em>str</em>, </td> |
| 241 |
</tr> |
| 242 |
<tr> |
| 243 |
<td class="paramkey"></td> |
| 244 |
<td></td> |
| 245 |
<td class="paramtype">const std::string & </td> |
| 246 |
<td class="paramname"><em>alt</em> </td> |
| 247 |
</tr> |
| 248 |
<tr> |
| 249 |
<td></td> |
| 250 |
<td>)</td> |
| 251 |
<td></td><td></td> |
| 252 |
</tr> |
| 253 |
</table> |
| 254 |
</div> |
| 255 |
<div class="memdoc"> |
| 256 |
|
| 257 |
<p>Check whether a string matches the regular expression. </p> |
| 258 |
<dl class="params"><dt><b>Parameters:</b></dt><dd> |
| 259 |
<table class="params"> |
| 260 |
<tr><td class="paramname">str</td><td>the string. </td></tr> |
| 261 |
<tr><td class="paramname">alt</td><td>the alternative string with which each substring is replaced. Each "$" in the string escapes the following character. Special escapes "$1" through "$9" refer to partial substrings corresponding to sub-expressions in the regular expression. "$0" and "$&" refer to the whole matching substring. </td></tr> |
| 262 |
</table> |
| 263 |
</dd> |
| 264 |
</dl> |
| 265 |
<dl class="return"><dt><b>Returns:</b></dt><dd>the result string. </dd></dl> |
| 266 |
|
| 267 |
</div> |
| 268 |
</div> |
| 269 |
<a class="anchor" id="a421bc32fc09b163ea846641d7a303237"></a><!-- doxytag: member="kyotocabinet::Regex::match" ref="a421bc32fc09b163ea846641d7a303237" args="(const std::string &str, const std::string &pattern, uint32_t opts=0)" --> |
| 270 |
<div class="memitem"> |
| 271 |
<div class="memproto"> |
| 272 |
<table class="memname"> |
| 273 |
<tr> |
| 274 |
<td class="memname">static bool <a class="el" href="classkyotocabinet_1_1Regex.html#adf7b6066fb2edd764d4fff519b9ccaf2">kyotocabinet::Regex::match</a> </td> |
| 275 |
<td>(</td> |
| 276 |
<td class="paramtype">const std::string & </td> |
| 277 |
<td class="paramname"><em>str</em>, </td> |
| 278 |
</tr> |
| 279 |
<tr> |
| 280 |
<td class="paramkey"></td> |
| 281 |
<td></td> |
| 282 |
<td class="paramtype">const std::string & </td> |
| 283 |
<td class="paramname"><em>pattern</em>, </td> |
| 284 |
</tr> |
| 285 |
<tr> |
| 286 |
<td class="paramkey"></td> |
| 287 |
<td></td> |
| 288 |
<td class="paramtype">uint32_t </td> |
| 289 |
<td class="paramname"><em>opts</em> = <code>0</code> </td> |
| 290 |
</tr> |
| 291 |
<tr> |
| 292 |
<td></td> |
| 293 |
<td>)</td> |
| 294 |
<td></td><td><code> [static]</code></td> |
| 295 |
</tr> |
| 296 |
</table> |
| 297 |
</div> |
| 298 |
<div class="memdoc"> |
| 299 |
|
| 300 |
<p>Check whether a string matches a regular expression. </p> |
| 301 |
<dl class="params"><dt><b>Parameters:</b></dt><dd> |
| 302 |
<table class="params"> |
| 303 |
<tr><td class="paramname">str</td><td>the string. </td></tr> |
| 304 |
<tr><td class="paramname">pattern</td><td>the matching pattern. </td></tr> |
| 305 |
<tr><td class="paramname">opts</td><td>the optional features by bitwise-or: <a class="el" href="classkyotocabinet_1_1Regex.html#a80ed6239125ac588fc686a055708d08dab7b9193ddfad2cc5ff6401067c2e4569" title="case-insensitive">Regex::IGNCASE</a> for case-insensitive matching, <a class="el" href="classkyotocabinet_1_1Regex.html#a80ed6239125ac588fc686a055708d08da5c0805855750f219cffe3bf37c165a4d" title="matching only">Regex::MATCHONLY</a> for matching only usage. </td></tr> |
| 306 |
</table> |
| 307 |
</dd> |
| 308 |
</dl> |
| 309 |
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the string matches, or false if not. </dd></dl> |
| 310 |
|
| 311 |
</div> |
| 312 |
</div> |
| 313 |
<a class="anchor" id="a9e9011cdaac269de39cbfe35aecf9981"></a><!-- doxytag: member="kyotocabinet::Regex::replace" ref="a9e9011cdaac269de39cbfe35aecf9981" args="(const std::string &str, const std::string &pattern, const std::string &alt, uint32_t opts=0)" --> |
| 314 |
<div class="memitem"> |
| 315 |
<div class="memproto"> |
| 316 |
<table class="memname"> |
| 317 |
<tr> |
| 318 |
<td class="memname">static std::string <a class="el" href="classkyotocabinet_1_1Regex.html#ad6611f28f2a01531c5d24a67ff461c0a">kyotocabinet::Regex::replace</a> </td> |
| 319 |
<td>(</td> |
| 320 |
<td class="paramtype">const std::string & </td> |
| 321 |
<td class="paramname"><em>str</em>, </td> |
| 322 |
</tr> |
| 323 |
<tr> |
| 324 |
<td class="paramkey"></td> |
| 325 |
<td></td> |
| 326 |
<td class="paramtype">const std::string & </td> |
| 327 |
<td class="paramname"><em>pattern</em>, </td> |
| 328 |
</tr> |
| 329 |
<tr> |
| 330 |
<td class="paramkey"></td> |
| 331 |
<td></td> |
| 332 |
<td class="paramtype">const std::string & </td> |
| 333 |
<td class="paramname"><em>alt</em>, </td> |
| 334 |
</tr> |
| 335 |
<tr> |
| 336 |
<td class="paramkey"></td> |
| 337 |
<td></td> |
| 338 |
<td class="paramtype">uint32_t </td> |
| 339 |
<td class="paramname"><em>opts</em> = <code>0</code> </td> |
| 340 |
</tr> |
| 341 |
<tr> |
| 342 |
<td></td> |
| 343 |
<td>)</td> |
| 344 |
<td></td><td><code> [static]</code></td> |
| 345 |
</tr> |
| 346 |
</table> |
| 347 |
</div> |
| 348 |
<div class="memdoc"> |
| 349 |
|
| 350 |
<p>Check whether a string matches the regular expression. </p> |
| 351 |
<dl class="params"><dt><b>Parameters:</b></dt><dd> |
| 352 |
<table class="params"> |
| 353 |
<tr><td class="paramname">str</td><td>the string. </td></tr> |
| 354 |
<tr><td class="paramname">pattern</td><td>the matching pattern. </td></tr> |
| 355 |
<tr><td class="paramname">alt</td><td>the alternative string with which each substring is replaced. Each "$" in the string escapes the following character. Special escapes "$1" through "$9" refer to partial substrings corresponding to sub-expressions in the regular expression. "$0" and "$&" refer to the whole matching substring. </td></tr> |
| 356 |
<tr><td class="paramname">opts</td><td>the optional features by bitwise-or: <a class="el" href="classkyotocabinet_1_1Regex.html#a80ed6239125ac588fc686a055708d08dab7b9193ddfad2cc5ff6401067c2e4569" title="case-insensitive">Regex::IGNCASE</a> for case-insensitive matching, <a class="el" href="classkyotocabinet_1_1Regex.html#a80ed6239125ac588fc686a055708d08da5c0805855750f219cffe3bf37c165a4d" title="matching only">Regex::MATCHONLY</a> for matching only usage. </td></tr> |
| 357 |
</table> |
| 358 |
</dd> |
| 359 |
</dl> |
| 360 |
<dl class="return"><dt><b>Returns:</b></dt><dd>the result string. </dd></dl> |
| 361 |
|
| 362 |
</div> |
| 363 |
</div> |
| 364 |
</div><!-- contents --> |
| 365 |
|
| 366 |
|
| 367 |
<hr class="footer"/><address class="footer"><small> |
| 368 |
Generated on Fri May 25 2012 01:21:36 for Kyoto Cabinet by  <a href="http://www.doxygen.org/index.html"> |
| 369 |
<img class="footer" src="doxygen.png" alt="doxygen"/> |
| 370 |
</a> 1.7.6.1 |
| 371 |
</small></address> |
| 372 |
|
| 373 |
</body> |
| 374 |
</html> |