253 lines
13 KiB
HTML
253 lines
13 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
|
<title>Subversion: c string functions</title>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
<link href="tabs.css" rel="stylesheet" type="text/css">
|
|
</head><body>
|
|
<!-- Generated by Doxygen 1.5.6 -->
|
|
<div class="navigation" id="top">
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li><a href="annotated.html"><span>Data Structures</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
<li>
|
|
<form action="search.php" method="get">
|
|
<table cellspacing="0" cellpadding="0" border="0">
|
|
<tr>
|
|
<td><label> <u>S</u>earch for </label></td>
|
|
<td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="contents">
|
|
<h1>c string functions<br>
|
|
<small>
|
|
[<a class="el" href="group__svn__string.html">String handling</a>]</small>
|
|
</h1>C strings.
|
|
<a href="#_details">More...</a><table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><td></td></tr>
|
|
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">apr_array_header_t * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__svn__string__cstrings.html#g1af9bdcdb39027b11107088fd02cad9b">svn_cstring_split</a> (const char *input, const char *sep_chars, <a class="el" href="svn__types_8h.html#22b35baddc4213c688d1bb12feea1024">svn_boolean_t</a> chop_whitespace, apr_pool_t *pool)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Divide <em>input</em> into substrings along <em>sep_chars</em> boundaries, return an array of copies of those substrings, allocating both the array and the copies in <em>pool</em>. <a href="#g1af9bdcdb39027b11107088fd02cad9b"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__svn__string__cstrings.html#gbb4be8497dbc9b869bcabefe93a08f83">svn_cstring_split_append</a> (apr_array_header_t *array, const char *input, const char *sep_chars, <a class="el" href="svn__types_8h.html#22b35baddc4213c688d1bb12feea1024">svn_boolean_t</a> chop_whitespace, apr_pool_t *pool)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Like <a class="el" href="group__svn__string__cstrings.html#g1af9bdcdb39027b11107088fd02cad9b" title="Divide input into substrings along sep_chars boundaries, return an array of copies...">svn_cstring_split()</a>, but append to existing <em>array</em> instead of creating a new one. <a href="#gbb4be8497dbc9b869bcabefe93a08f83"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g550544d34961e2cbd9b50364f1b200fe"></a><!-- doxytag: member="svn_string_cstrings::svn_cstring_match_glob_list" ref="g550544d34961e2cbd9b50364f1b200fe" args="(const char *str, apr_array_header_t *list)" -->
|
|
<a class="el" href="svn__types_8h.html#22b35baddc4213c688d1bb12feea1024">svn_boolean_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__svn__string__cstrings.html#g550544d34961e2cbd9b50364f1b200fe">svn_cstring_match_glob_list</a> (const char *str, apr_array_header_t *list)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return <code>TRUE</code> iff <em>str</em> matches any of the elements of <em>list</em>, a list of zero or more glob patterns. <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__svn__string__cstrings.html#g842ab6a90aecda5498232ad7dc5a3365">svn_cstring_count_newlines</a> (const char *msg)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the number of line breaks in <em>msg</em>, allowing any kind of newline termination (CR, LF, CRLF, or LFCR), even inconsistent. <a href="#g842ab6a90aecda5498232ad7dc5a3365"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__svn__string__cstrings.html#g76a5c28609bad95cf55ecb816f5831a0">svn_cstring_join</a> (apr_array_header_t *strings, const char *separator, apr_pool_t *pool)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return a cstring which is the concatenation of <em>strings</em> (an array of char *) each followed by <em>separator</em> (that is, <em>separator</em> will also end the resulting string). <a href="#g76a5c28609bad95cf55ecb816f5831a0"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__svn__string__cstrings.html#g33a5b549150b10cc9dae66e96062f077">svn_cstring_casecmp</a> (const char *str1, const char *str2)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Compare two strings <em>atr1</em> and <em>atr2</em>, treating case-equivalent unaccented Latin (ASCII subset) letters as equal. <a href="#g33a5b549150b10cc9dae66e96062f077"></a><br></td></tr>
|
|
</table>
|
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
C strings.
|
|
<p>
|
|
<hr><h2>Function Documentation</h2>
|
|
<a class="anchor" name="g33a5b549150b10cc9dae66e96062f077"></a><!-- doxytag: member="svn_string.h::svn_cstring_casecmp" ref="g33a5b549150b10cc9dae66e96062f077" args="(const char *str1, const char *str2)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int svn_cstring_casecmp </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const char * </td>
|
|
<td class="paramname"> <em>str1</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const char * </td>
|
|
<td class="paramname"> <em>str2</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Compare two strings <em>atr1</em> and <em>atr2</em>, treating case-equivalent unaccented Latin (ASCII subset) letters as equal.
|
|
<p>
|
|
<dl class="since" compact><dt><b>Since:</b></dt><dd>New in 1.5. </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="g842ab6a90aecda5498232ad7dc5a3365"></a><!-- doxytag: member="svn_string.h::svn_cstring_count_newlines" ref="g842ab6a90aecda5498232ad7dc5a3365" args="(const char *msg)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int svn_cstring_count_newlines </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const char * </td>
|
|
<td class="paramname"> <em>msg</em> </td>
|
|
<td> ) </td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Return the number of line breaks in <em>msg</em>, allowing any kind of newline termination (CR, LF, CRLF, or LFCR), even inconsistent.
|
|
<p>
|
|
<dl class="since" compact><dt><b>Since:</b></dt><dd>New in 1.2. </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="g76a5c28609bad95cf55ecb816f5831a0"></a><!-- doxytag: member="svn_string.h::svn_cstring_join" ref="g76a5c28609bad95cf55ecb816f5831a0" args="(apr_array_header_t *strings, const char *separator, apr_pool_t *pool)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">char* svn_cstring_join </td>
|
|
<td>(</td>
|
|
<td class="paramtype">apr_array_header_t * </td>
|
|
<td class="paramname"> <em>strings</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const char * </td>
|
|
<td class="paramname"> <em>separator</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">apr_pool_t * </td>
|
|
<td class="paramname"> <em>pool</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Return a cstring which is the concatenation of <em>strings</em> (an array of char *) each followed by <em>separator</em> (that is, <em>separator</em> will also end the resulting string).
|
|
<p>
|
|
Allocate the result in <em>pool</em>. If <em>strings</em> is empty, then return the empty string.<p>
|
|
<dl class="since" compact><dt><b>Since:</b></dt><dd>New in 1.2. </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="g1af9bdcdb39027b11107088fd02cad9b"></a><!-- doxytag: member="svn_string.h::svn_cstring_split" ref="g1af9bdcdb39027b11107088fd02cad9b" args="(const char *input, const char *sep_chars, svn_boolean_t chop_whitespace, apr_pool_t *pool)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">apr_array_header_t* svn_cstring_split </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const char * </td>
|
|
<td class="paramname"> <em>input</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const char * </td>
|
|
<td class="paramname"> <em>sep_chars</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="svn__types_8h.html#22b35baddc4213c688d1bb12feea1024">svn_boolean_t</a> </td>
|
|
<td class="paramname"> <em>chop_whitespace</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">apr_pool_t * </td>
|
|
<td class="paramname"> <em>pool</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Divide <em>input</em> into substrings along <em>sep_chars</em> boundaries, return an array of copies of those substrings, allocating both the array and the copies in <em>pool</em>.
|
|
<p>
|
|
None of the elements added to the array contain any of the characters in <em>sep_chars</em>, and none of the new elements are empty (thus, it is possible that the returned array will have length zero).<p>
|
|
If <em>chop_whitespace</em> is TRUE, then remove leading and trailing whitespace from the returned strings.
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="gbb4be8497dbc9b869bcabefe93a08f83"></a><!-- doxytag: member="svn_string.h::svn_cstring_split_append" ref="gbb4be8497dbc9b869bcabefe93a08f83" args="(apr_array_header_t *array, const char *input, const char *sep_chars, svn_boolean_t chop_whitespace, apr_pool_t *pool)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void svn_cstring_split_append </td>
|
|
<td>(</td>
|
|
<td class="paramtype">apr_array_header_t * </td>
|
|
<td class="paramname"> <em>array</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const char * </td>
|
|
<td class="paramname"> <em>input</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const char * </td>
|
|
<td class="paramname"> <em>sep_chars</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="svn__types_8h.html#22b35baddc4213c688d1bb12feea1024">svn_boolean_t</a> </td>
|
|
<td class="paramname"> <em>chop_whitespace</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">apr_pool_t * </td>
|
|
<td class="paramname"> <em>pool</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Like <a class="el" href="group__svn__string__cstrings.html#g1af9bdcdb39027b11107088fd02cad9b" title="Divide input into substrings along sep_chars boundaries, return an array of copies...">svn_cstring_split()</a>, but append to existing <em>array</em> instead of creating a new one.
|
|
<p>
|
|
Allocate the copied substrings in <em>pool</em> (i.e., caller decides whether or not to pass <em>array->pool</em> as <em>pool</em>).
|
|
</div>
|
|
</div><p>
|
|
</div>
|
|
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Oct 24 16:18:30 2008 for Subversion by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
|
|
</body>
|
|
</html>
|