📄 group__str__helpers.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>MiniGUI V1.6.10 API Reference: String operation helpers</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.2 --><div class="qindex"><a class="qindex" href="index.htm">Main Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical List</a> | <a class="qindex" href="annotated.htm">Data Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File List</a> | <a class="qindex" href="functions.htm">Data Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related Pages</a></div><h1>String operation helpers<br><small>[<a class="el" href="group__lite__fns.htm">MiniGUI-Processes specific functions</a>]</small></h1><h2>Functions</h2><ul><li>MG_EXPORT char * <a class="el" href="group__str__helpers.htm#ga0">strnchr</a> (const char *s, size_t n, int c)<dl class="el"><dd class="mdescRight">Locates character in the first <em>n</em> characters of string <em>s</em>. <a href="#ga0"></a><br></dl><li>MG_EXPORT int <a class="el" href="group__str__helpers.htm#ga1">substrlen</a> (const char *text, int len, int delimiter, int *nr_delim)<dl class="el"><dd class="mdescRight">Locates a substring delimited by one or more delimiters in the first <em>len</em> characters of string <em>text</em>. <a href="#ga1"></a><br></dl><li>MG_EXPORT char * <a class="el" href="group__str__helpers.htm#ga2">strtrimall</a> (char *src)<dl class="el"><dd class="mdescRight">Deletes all space characters. <a href="#ga2"></a><br></dl></ul><hr><h2>Function Documentation</h2><a class="anchor" name="ga0" doxytag="minigui.h::strnchr"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">char * strnchr </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const char * </td> <td class="mdname" nowrap> <em>s</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>size_t </td> <td class="mdname" nowrap> <em>n</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>c</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Locates character in the first <em>n</em> characters of string <em>s</em>. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>s</em> </td><td>The pointer to the string. </td></tr> <tr><td valign="top"></td><td valign="top"><em>n</em> </td><td>The number of first characters will be searched. </td></tr> <tr><td valign="top"></td><td valign="top"><em>c</em> </td><td>The expected character.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Returns a pointer to the first occurrence of the character <em>c</em> in the string <em>s</em>.</dd></dl><dl compact><dt><b>See also:</b></dt><dd>strchr(3) </dd></dl> </td> </tr></table><a class="anchor" name="ga2" doxytag="minigui.h::strtrimall"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">char * strtrimall </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">char * </td> <td class="mdname1" valign="top" nowrap> <em>src</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Deletes all space characters. <p>This function deletes the blank space, form-feed('\f'), newline('\n'), carriage return('\r'), horizontal tab('\t'),and vertical tab('\v') in the head and the tail of the string.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>src</em> </td><td>The pointer to the string.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Returns a pointer to the string. </dd></dl> </td> </tr></table><a class="anchor" name="ga1" doxytag="minigui.h::substrlen"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int substrlen </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const char * </td> <td class="mdname" nowrap> <em>text</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>len</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>delimiter</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int * </td> <td class="mdname" nowrap> <em>nr_delim</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Locates a substring delimited by one or more delimiters in the first <em>len</em> characters of string <em>text</em>. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>text</em> </td><td>The pointer to the string. </td></tr> <tr><td valign="top"></td><td valign="top"><em>len</em> </td><td>The number of first characters will be searched. </td></tr> <tr><td valign="top"></td><td valign="top"><em>delimiter</em> </td><td>The delimiter which delimites the substring from other. </td></tr> <tr><td valign="top"></td><td valign="top"><em>nr_delim</em> </td><td>The number of continuous delimiters will be returned through this pointer.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The length of the substring.</dd></dl><dl compact><dt><b>See also:</b></dt><dd>strstr(3) </dd></dl> </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:55 2007 for MiniGUI V1.6.10 API Reference by <a href="http://www.doxygen.org/index.html"><img src="http://www.minigui.com/api_ref/1.6.10/doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -