Server IP : 103.119.228.120 / Your IP : 3.133.146.94 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/local/ssl/local/ssl/local/easy/share/doc/easy-libicu-doc-4.0.1/ |
Upload File : |
<!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"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.5"/> <title>ICU 4.0.1: StringEnumeration Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">ICU 4.0.1 </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.5 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <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 class="current"><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="classes.html"><span>Data Structure Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Data Fields</span></a></li> </ul> </div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark"> </span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pro-methods">Protected Member Functions</a> | <a href="#pro-attribs">Protected Attributes</a> </div> <div class="headertitle"> <div class="title">StringEnumeration Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div> </div><!--header--> <div class="contents"> <p>Base class for 'pure' C++ implementations of uenum api. <a href="classStringEnumeration.html#details">More...</a></p> <p><code>#include <<a class="el" href="strenum_8h_source.html">strenum.h</a>></code></p> <div class="dynheader"> Inheritance diagram for StringEnumeration:</div> <div class="dyncontent"> <div class="center"> <img src="classStringEnumeration.png" usemap="#StringEnumeration_map" alt=""/> <map id="StringEnumeration_map" name="StringEnumeration_map"> <area href="classUObject.html" title="UObject is the common ICU "boilerplate" class. " alt="UObject" shape="rect" coords="0,56,115,80"/> <area href="classUMemory.html" title="UMemory is the common ICU base class. " alt="UMemory" shape="rect" coords="0,0,115,24"/> </map> </div></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:a2782440c508773b1c6474b7d1bc54a01"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classStringEnumeration.html#a2782440c508773b1c6474b7d1bc54a01">~StringEnumeration</a> ()</td></tr> <tr class="memdesc:a2782440c508773b1c6474b7d1bc54a01"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a2782440c508773b1c6474b7d1bc54a01">More...</a><br/></td></tr> <tr class="separator:a2782440c508773b1c6474b7d1bc54a01"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad4dae9fbf054b06eba3d1a216a8c8580"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classStringEnumeration.html">StringEnumeration</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classStringEnumeration.html#ad4dae9fbf054b06eba3d1a216a8c8580">clone</a> () const </td></tr> <tr class="memdesc:ad4dae9fbf054b06eba3d1a216a8c8580"><td class="mdescLeft"> </td><td class="mdescRight">Clone this object, an instance of a subclass of <a class="el" href="classStringEnumeration.html" title="Base class for 'pure' C++ implementations of uenum api. ">StringEnumeration</a>. <a href="#ad4dae9fbf054b06eba3d1a216a8c8580">More...</a><br/></td></tr> <tr class="separator:ad4dae9fbf054b06eba3d1a216a8c8580"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1747cfdb3a749c576dbf2a930ff7a010"><td class="memItemLeft" align="right" valign="top">virtual int32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classStringEnumeration.html#a1747cfdb3a749c576dbf2a930ff7a010">count</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status) const =0</td></tr> <tr class="separator:a1747cfdb3a749c576dbf2a930ff7a010"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ae613631e7b63a9987c056ad5b04251e5"><td class="memItemLeft" align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classStringEnumeration.html#ae613631e7b63a9987c056ad5b04251e5">next</a> (int32_t *resultLength, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="separator:ae613631e7b63a9987c056ad5b04251e5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a3ea012fc20253a0d97801a1d3cee0fcf"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classStringEnumeration.html#a3ea012fc20253a0d97801a1d3cee0fcf">unext</a> (int32_t *resultLength, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="separator:a3ea012fc20253a0d97801a1d3cee0fcf"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a371d8cb385f9602fb41ef356fa425181"><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="classUnicodeString.html">UnicodeString</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classStringEnumeration.html#a371d8cb385f9602fb41ef356fa425181">snext</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)=0</td></tr> <tr class="separator:a371d8cb385f9602fb41ef356fa425181"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a68de37a3dc40d92679551eacfb02006b"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classStringEnumeration.html#a68de37a3dc40d92679551eacfb02006b">reset</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)=0</td></tr> <tr class="separator:a68de37a3dc40d92679551eacfb02006b"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a13c348b962a621828378624dbab94f29"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classStringEnumeration.html#a13c348b962a621828378624dbab94f29">operator==</a> (const <a class="el" href="classStringEnumeration.html">StringEnumeration</a> &that) const </td></tr> <tr class="memdesc:a13c348b962a621828378624dbab94f29"><td class="mdescLeft"> </td><td class="mdescRight">Compares this enumeration to other to check if both are equal. <a href="#a13c348b962a621828378624dbab94f29">More...</a><br/></td></tr> <tr class="separator:a13c348b962a621828378624dbab94f29"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aac1c49b98bbae8fc8a16e5d6be11ba4c"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classStringEnumeration.html#aac1c49b98bbae8fc8a16e5d6be11ba4c">operator!=</a> (const <a class="el" href="classStringEnumeration.html">StringEnumeration</a> &that) const </td></tr> <tr class="memdesc:aac1c49b98bbae8fc8a16e5d6be11ba4c"><td class="mdescLeft"> </td><td class="mdescRight">Compares this enumeration to other to check if both are not equal. <a href="#aac1c49b98bbae8fc8a16e5d6be11ba4c">More...</a><br/></td></tr> <tr class="separator:aac1c49b98bbae8fc8a16e5d6be11ba4c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_methods_classUObject"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classUObject')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classUObject.html">UObject</a></td></tr> <tr class="memitem:ace22cf29a90641ef43350deae5bedb85 inherit pub_methods_classUObject"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classUObject.html#ace22cf29a90641ef43350deae5bedb85">~UObject</a> ()</td></tr> <tr class="memdesc:ace22cf29a90641ef43350deae5bedb85 inherit pub_methods_classUObject"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#ace22cf29a90641ef43350deae5bedb85">More...</a><br/></td></tr> <tr class="separator:ace22cf29a90641ef43350deae5bedb85 inherit pub_methods_classUObject"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9b1acc95efd89cb86ec31f2dc947a262 inherit pub_methods_classUObject"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classUObject.html#a9b1acc95efd89cb86ec31f2dc947a262">getDynamicClassID</a> () const =0</td></tr> <tr class="memdesc:a9b1acc95efd89cb86ec31f2dc947a262 inherit pub_methods_classUObject"><td class="mdescLeft"> </td><td class="mdescRight">ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class. <a href="#a9b1acc95efd89cb86ec31f2dc947a262">More...</a><br/></td></tr> <tr class="separator:a9b1acc95efd89cb86ec31f2dc947a262 inherit pub_methods_classUObject"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a> Protected Member Functions</h2></td></tr> <tr class="memitem:ac526472a3acff96f58c2b34ffabdacaf"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classStringEnumeration.html#ac526472a3acff96f58c2b34ffabdacaf">StringEnumeration</a> ()</td></tr> <tr class="memdesc:ac526472a3acff96f58c2b34ffabdacaf"><td class="mdescLeft"> </td><td class="mdescRight">Default constructor for use with default implementations and subclasses. <a href="#ac526472a3acff96f58c2b34ffabdacaf">More...</a><br/></td></tr> <tr class="separator:ac526472a3acff96f58c2b34ffabdacaf"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab7428b1c1baf1c9ac4922eca0a7ab636"><td class="memItemLeft" align="right" valign="top"><a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classStringEnumeration.html#ab7428b1c1baf1c9ac4922eca0a7ab636">ensureCharsCapacity</a> (int32_t capacity, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:ab7428b1c1baf1c9ac4922eca0a7ab636"><td class="mdescLeft"> </td><td class="mdescRight">Ensures that chars is at least as large as the requested capacity. <a href="#ab7428b1c1baf1c9ac4922eca0a7ab636">More...</a><br/></td></tr> <tr class="separator:ab7428b1c1baf1c9ac4922eca0a7ab636"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a80c0dcfe1fa814cc0d404fe0dbf2b267"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classStringEnumeration.html#a80c0dcfe1fa814cc0d404fe0dbf2b267">setChars</a> (const char *s, int32_t length, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> &status)</td></tr> <tr class="memdesc:a80c0dcfe1fa814cc0d404fe0dbf2b267"><td class="mdescLeft"> </td><td class="mdescRight">Converts s to Unicode and sets unistr to the result. <a href="#a80c0dcfe1fa814cc0d404fe0dbf2b267">More...</a><br/></td></tr> <tr class="separator:a80c0dcfe1fa814cc0d404fe0dbf2b267"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a> Protected Attributes</h2></td></tr> <tr class="memitem:ad6e99301df88ba7d1fac67181f98bd2e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classUnicodeString.html">UnicodeString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classStringEnumeration.html#ad6e99301df88ba7d1fac67181f98bd2e">unistr</a></td></tr> <tr class="memdesc:ad6e99301df88ba7d1fac67181f98bd2e"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a> field for use with default implementations and subclasses. <a href="#ad6e99301df88ba7d1fac67181f98bd2e">More...</a><br/></td></tr> <tr class="separator:ad6e99301df88ba7d1fac67181f98bd2e"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac6e6a6266dc50407ac399440a136195e"><td class="memItemLeft" align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="classStringEnumeration.html#ac6e6a6266dc50407ac399440a136195e">charsBuffer</a> [32]</td></tr> <tr class="memdesc:ac6e6a6266dc50407ac399440a136195e"><td class="mdescLeft"> </td><td class="mdescRight">char * default buffer for use with default implementations and subclasses. <a href="#ac6e6a6266dc50407ac399440a136195e">More...</a><br/></td></tr> <tr class="separator:ac6e6a6266dc50407ac399440a136195e"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aa91f702f4920744b448ef3b45e957ed7"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classStringEnumeration.html#aa91f702f4920744b448ef3b45e957ed7">chars</a></td></tr> <tr class="memdesc:aa91f702f4920744b448ef3b45e957ed7"><td class="mdescLeft"> </td><td class="mdescRight">char * buffer for use with default implementations and subclasses. <a href="#aa91f702f4920744b448ef3b45e957ed7">More...</a><br/></td></tr> <tr class="separator:aa91f702f4920744b448ef3b45e957ed7"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a34d0dc24d6f6ea33fbb5cc9186f03c58"><td class="memItemLeft" align="right" valign="top">int32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classStringEnumeration.html#a34d0dc24d6f6ea33fbb5cc9186f03c58">charsCapacity</a></td></tr> <tr class="memdesc:a34d0dc24d6f6ea33fbb5cc9186f03c58"><td class="mdescLeft"> </td><td class="mdescRight">Capacity of chars, for use with default implementations and subclasses. <a href="#a34d0dc24d6f6ea33fbb5cc9186f03c58">More...</a><br/></td></tr> <tr class="separator:a34d0dc24d6f6ea33fbb5cc9186f03c58"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a> Additional Inherited Members</h2></td></tr> <tr class="inherit_header pub_static_methods_classUMemory"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classUMemory')"><img src="closed.png" alt="-"/> Static Public Member Functions inherited from <a class="el" href="classUMemory.html">UMemory</a></td></tr> <tr class="memitem:a309b19b5777e2840b85b202aef5a54fb inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#a309b19b5777e2840b85b202aef5a54fb">operator new</a> (size_t size)</td></tr> <tr class="memdesc:a309b19b5777e2840b85b202aef5a54fb inherit pub_static_methods_classUMemory"><td class="mdescLeft"> </td><td class="mdescRight">Override for ICU4C C++ memory management. <a href="#a309b19b5777e2840b85b202aef5a54fb">More...</a><br/></td></tr> <tr class="separator:a309b19b5777e2840b85b202aef5a54fb inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4d0df3571728e7b8a823dbbea6e9b5c5 inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#a4d0df3571728e7b8a823dbbea6e9b5c5">operator new[]</a> (size_t size)</td></tr> <tr class="memdesc:a4d0df3571728e7b8a823dbbea6e9b5c5 inherit pub_static_methods_classUMemory"><td class="mdescLeft"> </td><td class="mdescRight">Override for ICU4C C++ memory management. <a href="#a4d0df3571728e7b8a823dbbea6e9b5c5">More...</a><br/></td></tr> <tr class="separator:a4d0df3571728e7b8a823dbbea6e9b5c5 inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:adcda65a58813749f8f45c5e6c1ed37e1 inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#adcda65a58813749f8f45c5e6c1ed37e1">operator delete</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> *p)</td></tr> <tr class="memdesc:adcda65a58813749f8f45c5e6c1ed37e1 inherit pub_static_methods_classUMemory"><td class="mdescLeft"> </td><td class="mdescRight">Override for ICU4C C++ memory management. <a href="#adcda65a58813749f8f45c5e6c1ed37e1">More...</a><br/></td></tr> <tr class="separator:adcda65a58813749f8f45c5e6c1ed37e1 inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7602a7a8c6fdff21d9fbecea4d899333 inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#a7602a7a8c6fdff21d9fbecea4d899333">operator delete[]</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> *p)</td></tr> <tr class="memdesc:a7602a7a8c6fdff21d9fbecea4d899333 inherit pub_static_methods_classUMemory"><td class="mdescLeft"> </td><td class="mdescRight">Override for ICU4C C++ memory management. <a href="#a7602a7a8c6fdff21d9fbecea4d899333">More...</a><br/></td></tr> <tr class="separator:a7602a7a8c6fdff21d9fbecea4d899333 inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a43b5221fe429f77230b2040f8724c154 inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#a43b5221fe429f77230b2040f8724c154">operator new</a> (size_t, <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> *ptr)</td></tr> <tr class="memdesc:a43b5221fe429f77230b2040f8724c154 inherit pub_static_methods_classUMemory"><td class="mdescLeft"> </td><td class="mdescRight">Override for ICU4C C++ memory management for STL. <a href="#a43b5221fe429f77230b2040f8724c154">More...</a><br/></td></tr> <tr class="separator:a43b5221fe429f77230b2040f8724c154 inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9b746b0cdb49c8f8907773002ea5c4ea inherit pub_static_methods_classUMemory"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classUMemory.html#a9b746b0cdb49c8f8907773002ea5c4ea">operator delete</a> (<a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> *, <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> *)</td></tr> <tr class="memdesc:a9b746b0cdb49c8f8907773002ea5c4ea inherit pub_static_methods_classUMemory"><td class="mdescLeft"> </td><td class="mdescRight">Override for ICU4C C++ memory management for STL. <a href="#a9b746b0cdb49c8f8907773002ea5c4ea">More...</a><br/></td></tr> <tr class="separator:a9b746b0cdb49c8f8907773002ea5c4ea inherit pub_static_methods_classUMemory"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>Base class for 'pure' C++ implementations of uenum api. </p> <p>Adds a method that returns the next <a class="el" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a> since in C++ this can be a common storage format for strings.</p> <p>The model is that the enumeration is over strings maintained by a 'service.' At any point, the service might change, invalidating the enumerator (though this is expected to be rare). The iterator returns an error if this has occurred. Lack of the error is no guarantee that the service didn't change immediately after the call, so the returned string still might not be 'valid' on subsequent use.</p> <p>Strings may take the form of const char*, const UChar*, or const UnicodeString*. The type you get is determine by the variant of 'next' that you call. In general the <a class="el" href="classStringEnumeration.html" title="Base class for 'pure' C++ implementations of uenum api. ">StringEnumeration</a> is optimized for one of these types, but all StringEnumerations can return all types. Returned strings are each terminated with a NUL. Depending on the service data, they might also include embedded NUL characters, so API is provided to optionally return the true length, counting the embedded NULs but not counting the terminating NUL.</p> <p>The pointers returned by next, unext, and snext become invalid upon any subsequent call to the enumeration's destructor, next, unext, snext, or reset.</p> <p>ICU 2.8 adds some default implementations and helper functions for subclasses.</p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000315">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl> <p>Definition at line <a class="el" href="strenum_8h_source.html#l00055">55</a> of file <a class="el" href="strenum_8h_source.html">strenum.h</a>.</p> </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> <a class="anchor" id="a2782440c508773b1c6474b7d1bc54a01"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual StringEnumeration::~StringEnumeration </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Destructor. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000316">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl> </div> </div> <a class="anchor" id="ac526472a3acff96f58c2b34ffabdacaf"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">StringEnumeration::StringEnumeration </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">protected</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Default constructor for use with default implementations and subclasses. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000329">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl> </div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a class="anchor" id="ad4dae9fbf054b06eba3d1a216a8c8580"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classStringEnumeration.html">StringEnumeration</a>* StringEnumeration::clone </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Clone this object, an instance of a subclass of <a class="el" href="classStringEnumeration.html" title="Base class for 'pure' C++ implementations of uenum api. ">StringEnumeration</a>. </p> <p>Clones can be used concurrently in multiple threads. If a subclass does not implement <a class="el" href="classStringEnumeration.html#ad4dae9fbf054b06eba3d1a216a8c8580" title="Clone this object, an instance of a subclass of StringEnumeration. ">clone()</a>, or if an error occurs, then NULL is returned. The clone functions in all subclasses return a base class pointer because some compilers do not support covariant (same-as-this) return types; cast to the appropriate subclass if necessary. The caller must delete the clone.</p> <dl class="section return"><dt>Returns</dt><dd>a clone of this object</dd></dl> <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classUObject.html#a9b1acc95efd89cb86ec31f2dc947a262" title="ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class. ">getDynamicClassID</a> </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000317">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl> </div> </div> <a class="anchor" id="a1747cfdb3a749c576dbf2a930ff7a010"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual int32_t StringEnumeration::count </td> <td>(</td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Return the number of elements that the iterator traverses. If the iterator is out of sync with its service, status is set to U_ENUM_OUT_OF_SYNC_ERROR, and the return value is zero.</p> <p>The return value will not change except possibly as a result of a subsequent call to reset, or if the iterator becomes out of sync.</p> <p>This is a convenience function. It can end up being very expensive as all the items might have to be pre-fetched (depending on the storage format of the data being traversed).</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">status</td><td>the error code. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>number of elements in the iterator.</dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000318">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl> </div> </div> <a class="anchor" id="ab7428b1c1baf1c9ac4922eca0a7ab636"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> StringEnumeration::ensureCharsCapacity </td> <td>(</td> <td class="paramtype">int32_t </td> <td class="paramname"><em>capacity</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">protected</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Ensures that chars is at least as large as the requested capacity. </p> <p>For use with default implementations and subclasses.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">capacity</td><td>Requested capacity. </td></tr> <tr><td class="paramname">status</td><td>ICU in/out error code. </td></tr> </table> </dd> </dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000330">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl> </div> </div> <a class="anchor" id="ae613631e7b63a9987c056ad5b04251e5"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual const char* StringEnumeration::next </td> <td>(</td> <td class="paramtype">int32_t * </td> <td class="paramname"><em>resultLength</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Returns the next element as a NUL-terminated char*. If there are no more elements, returns NULL. If the resultLength pointer is not NULL, the length of the string (not counting the terminating NUL) is returned at that address. If an error status is returned, the value at resultLength is undefined.</p> <p>The returned pointer is owned by this iterator and must not be deleted by the caller. The pointer is valid until the next call to next, unext, snext, reset, or the enumerator's destructor.</p> <p>If the iterator is out of sync with its service, status is set to U_ENUM_OUT_OF_SYNC_ERROR and NULL is returned.</p> <p>If the native service string is a UChar* string, it is converted to char* with the invariant converter. If the conversion fails (because a character cannot be converted) then status is set to U_INVARIANT_CONVERSION_ERROR and the return value is undefined (though not NULL).</p> <p>Starting with ICU 2.8, the default implementation calls <a class="el" href="classStringEnumeration.html#a371d8cb385f9602fb41ef356fa425181">snext()</a> and handles the conversion.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">status</td><td>the error code. </td></tr> <tr><td class="paramname">resultLength</td><td>a pointer to receive the length, can be NULL. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>a pointer to the string, or NULL.</dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000319">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl> </div> </div> <a class="anchor" id="aac1c49b98bbae8fc8a16e5d6be11ba4c"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> StringEnumeration::operator!= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classStringEnumeration.html">StringEnumeration</a> & </td> <td class="paramname"><em>that</em></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Compares this enumeration to other to check if both are not equal. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">that</td><td>The other string enumeration to compare this object to </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>TRUE if the enumerations are equal. FALSE if not. </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000324">Stable:</a></b></dt><dd>ICU 3.6 </dd></dl> </div> </div> <a class="anchor" id="a13c348b962a621828378624dbab94f29"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> StringEnumeration::operator== </td> <td>(</td> <td class="paramtype">const <a class="el" href="classStringEnumeration.html">StringEnumeration</a> & </td> <td class="paramname"><em>that</em></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Compares this enumeration to other to check if both are equal. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">that</td><td>The other string enumeration to compare this object to </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>TRUE if the enumerations are equal. FALSE if not. </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000323">Stable:</a></b></dt><dd>ICU 3.6 </dd></dl> </div> </div> <a class="anchor" id="a68de37a3dc40d92679551eacfb02006b"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="ucnv_8h.html#aa953bd3cedaedf78b700c837361fe00b">void</a> StringEnumeration::reset </td> <td>(</td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Resets the iterator. This re-establishes sync with the service and rewinds the iterator to start at the first element.</p> <p>Previous pointers returned by next, unext, or snext become invalid, and the value returned by count might change.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">status</td><td>the error code.</td></tr> </table> </dd> </dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000322">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl> </div> </div> <a class="anchor" id="a80c0dcfe1fa814cc0d404fe0dbf2b267"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a>* StringEnumeration::setChars </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"><em>s</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int32_t </td> <td class="paramname"><em>length</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">protected</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Converts s to Unicode and sets unistr to the result. </p> <p>For use with default implementations and subclasses, especially for implementations of <a class="el" href="classStringEnumeration.html#a371d8cb385f9602fb41ef356fa425181">snext()</a> in terms of <a class="el" href="classStringEnumeration.html#ae613631e7b63a9987c056ad5b04251e5">next()</a>. This is provided with a helper function instead of a default implementation of <a class="el" href="classStringEnumeration.html#a371d8cb385f9602fb41ef356fa425181">snext()</a> to avoid potential infinite loops between <a class="el" href="classStringEnumeration.html#ae613631e7b63a9987c056ad5b04251e5">next()</a> and <a class="el" href="classStringEnumeration.html#a371d8cb385f9602fb41ef356fa425181">snext()</a>.</p> <p>For example: </p> <div class="fragment"><div class="line">* <span class="keyword">const</span> <a class="code" href="classUnicodeString.html">UnicodeString</a>* <a class="code" href="classStringEnumeration.html#a371d8cb385f9602fb41ef356fa425181">snext</a>(<a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a>& status) {</div> <div class="line">* int32_t resultLength=0;</div> <div class="line">* <span class="keyword">const</span> <span class="keywordtype">char</span> *s=<a class="code" href="classStringEnumeration.html#ae613631e7b63a9987c056ad5b04251e5">next</a>(&resultLength, status);</div> <div class="line">* <span class="keywordflow">return</span> <a class="code" href="classStringEnumeration.html#a80c0dcfe1fa814cc0d404fe0dbf2b267">setChars</a>(s, resultLength, status);</div> <div class="line">* }</div> <div class="line">* </div> </div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">s</td><td>String to be converted to Unicode. </td></tr> <tr><td class="paramname">length</td><td>Length of the string. </td></tr> <tr><td class="paramname">status</td><td>ICU in/out error code. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>A pointer to unistr. </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000331">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl> </div> </div> <a class="anchor" id="a371d8cb385f9602fb41ef356fa425181"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual const <a class="el" href="classUnicodeString.html">UnicodeString</a>* StringEnumeration::snext </td> <td>(</td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Returns the next element a UnicodeString*. If there are no more elements, returns NULL.</p> <p>The returned pointer is owned by this iterator and must not be deleted by the caller. The pointer is valid until the next call to next, unext, snext, reset, or the enumerator's destructor.</p> <p>If the iterator is out of sync with its service, status is set to U_ENUM_OUT_OF_SYNC_ERROR and NULL is returned.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">status</td><td>the error code. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>a pointer to the string, or NULL.</dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000321">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl> </div> </div> <a class="anchor" id="a3ea012fc20253a0d97801a1d3cee0fcf"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">virtual const <a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a>* StringEnumeration::unext </td> <td>(</td> <td class="paramtype">int32_t * </td> <td class="paramname"><em>resultLength</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> & </td> <td class="paramname"><em>status</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">virtual</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Returns the next element as a NUL-terminated UChar*. If there are no more elements, returns NULL. If the resultLength pointer is not NULL, the length of the string (not counting the terminating NUL) is returned at that address. If an error status is returned, the value at resultLength is undefined.</p> <p>The returned pointer is owned by this iterator and must not be deleted by the caller. The pointer is valid until the next call to next, unext, snext, reset, or the enumerator's destructor.</p> <p>If the iterator is out of sync with its service, status is set to U_ENUM_OUT_OF_SYNC_ERROR and NULL is returned.</p> <p>Starting with ICU 2.8, the default implementation calls <a class="el" href="classStringEnumeration.html#a371d8cb385f9602fb41ef356fa425181">snext()</a> and handles the conversion.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">status</td><td>the error code. </td></tr> <tr><td class="paramname">resultLength</td><td>a ponter to receive the length, can be NULL. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>a pointer to the string, or NULL.</dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000320">Stable:</a></b></dt><dd>ICU 2.4 </dd></dl> </div> </div> <h2 class="groupheader">Field Documentation</h2> <a class="anchor" id="aa91f702f4920744b448ef3b45e957ed7"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">char* StringEnumeration::chars</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">protected</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>char * buffer for use with default implementations and subclasses. </p> <p>Allocated in constructor and in <a class="el" href="classStringEnumeration.html#ab7428b1c1baf1c9ac4922eca0a7ab636" title="Ensures that chars is at least as large as the requested capacity. ">ensureCharsCapacity()</a>. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000327">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl> <p>Definition at line <a class="el" href="strenum_8h_source.html#l00220">220</a> of file <a class="el" href="strenum_8h_source.html">strenum.h</a>.</p> </div> </div> <a class="anchor" id="ac6e6a6266dc50407ac399440a136195e"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">char StringEnumeration::charsBuffer[32]</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">protected</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>char * default buffer for use with default implementations and subclasses. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000326">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl> <p>Definition at line <a class="el" href="strenum_8h_source.html#l00214">214</a> of file <a class="el" href="strenum_8h_source.html">strenum.h</a>.</p> </div> </div> <a class="anchor" id="a34d0dc24d6f6ea33fbb5cc9186f03c58"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">int32_t StringEnumeration::charsCapacity</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">protected</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Capacity of chars, for use with default implementations and subclasses. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000328">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl> <p>Definition at line <a class="el" href="strenum_8h_source.html#l00225">225</a> of file <a class="el" href="strenum_8h_source.html">strenum.h</a>.</p> </div> </div> <a class="anchor" id="ad6e99301df88ba7d1fac67181f98bd2e"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classUnicodeString.html">UnicodeString</a> StringEnumeration::unistr</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">protected</span></span> </td> </tr> </table> </div><div class="memdoc"> <p><a class="el" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides similar function...">UnicodeString</a> field for use with default implementations and subclasses. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable000325">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl> <p>Definition at line <a class="el" href="strenum_8h_source.html#l00209">209</a> of file <a class="el" href="strenum_8h_source.html">strenum.h</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="strenum_8h_source.html">strenum.h</a></li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.5 </small></address> </body> </html>