<!-- This comment will put IE 6, 7 and 8 in quirks mode --> <!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>ICU 4.4.1: FieldPosition Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javaScript" src="search/search.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body onload='searchBox.OnSelectItem(0);'> <!-- Generated by Doxygen 1.6.2-20100208 --> <script type="text/javascript"><!-- var searchBox = new SearchBox("searchBox", "search",false,'Search'); --></script> <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 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"> <img id="MSearchSelect" src="search/search.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)"/> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </div> </li> </ul> </div> <div class="tabs"> <ul> <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> </div> <div class="contents"> <h1>FieldPosition Class Reference</h1><!-- doxytag: class="FieldPosition" --><!-- doxytag: inherits="UObject" --> <p><code><a class="el" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a></code> is a simple class used by <code><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a></code> and its subclasses to identify fields in formatted output. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="fieldpos_8h_source.html">fieldpos.h</a>></code></p> <div class="dynheader"> Inheritance diagram for FieldPosition:</div> <div class="dynsection"> <div class="center"> <img src="classFieldPosition.png" usemap="#FieldPosition_map" alt=""/> <map id="FieldPosition_map" name="FieldPosition_map"> <area href="classUObject.html" alt="UObject" shape="rect" coords="0,56,84,80"/> <area href="classUMemory.html" alt="UMemory" shape="rect" coords="0,0,84,24"/> </map> </div> </div> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Types</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">enum </td><td class="memItemRight" valign="bottom">{ <b>DONT_CARE</b> = -1 }</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><p>DONT_CARE may be specified as the field to indicate that the caller doesn't need to specify a field. </p> <a href="classFieldPosition.html#addec3a5d61dc9d37f455a9bda3501d31">More...</a><br/></td></tr> <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFieldPosition.html#a75a87d2e7d6d97217daff8e029a0f9b9">FieldPosition</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a <a class="el" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a> object with a non-specified field. <a href="#a75a87d2e7d6d97217daff8e029a0f9b9"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFieldPosition.html#aa03f4d3490bf5f56b797c36363bfae4f">FieldPosition</a> (int32_t field)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a <a class="el" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a> object for the given field. <a href="#aa03f4d3490bf5f56b797c36363bfae4f"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFieldPosition.html#aee8d7c91df960f9f020b480e7b2fa628">FieldPosition</a> (const <a class="el" href="classFieldPosition.html">FieldPosition</a> &copy)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor. <a href="#aee8d7c91df960f9f020b480e7b2fa628"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classFieldPosition.html#a29226fbee478ae6ff23ef868e7810793">~FieldPosition</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a29226fbee478ae6ff23ef868e7810793"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classFieldPosition.html">FieldPosition</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classFieldPosition.html#a71afa3cf2ccf393943034c2c7d7eb7ce">operator=</a> (const <a class="el" href="classFieldPosition.html">FieldPosition</a> &copy)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Assignment operator. <a href="#a71afa3cf2ccf393943034c2c7d7eb7ce"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFieldPosition.html#ae9dbfaa44ccd20e4eb792546df80e714">operator==</a> (const <a class="el" href="classFieldPosition.html">FieldPosition</a> &that) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Equality operator. <a href="#ae9dbfaa44ccd20e4eb792546df80e714"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFieldPosition.html#ad142ffe1884a49a2bf4d4073aa303038">operator!=</a> (const <a class="el" href="classFieldPosition.html">FieldPosition</a> &that) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Equality operator. <a href="#ad142ffe1884a49a2bf4d4073aa303038"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classFieldPosition.html">FieldPosition</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classFieldPosition.html#a64641de3d32fedd8dcc7cf299cd1f9cb">clone</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Clone this object. <a href="#a64641de3d32fedd8dcc7cf299cd1f9cb"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classFieldPosition.html#ad62441dc0bcc91af346d78a3faca2812">getField</a> (void) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieve the field identifier. <a href="#ad62441dc0bcc91af346d78a3faca2812"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classFieldPosition.html#ac1b3be1343963a616b7eaf335437a2ff">getBeginIndex</a> (void) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieve the index of the first character in the requested field. <a href="#ac1b3be1343963a616b7eaf335437a2ff"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classFieldPosition.html#ad94244fb17162aa8a6629bd5e978f5d2">getEndIndex</a> (void) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieve the index of the character following the last character in the requested field. <a href="#ad94244fb17162aa8a6629bd5e978f5d2"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classFieldPosition.html#aa5fab63fb11108011e818b7904648a98">setField</a> (int32_t f)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the field. <a href="#aa5fab63fb11108011e818b7904648a98"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classFieldPosition.html#ae08c2e084a51bc0602b374d5ac69d76f">setBeginIndex</a> (int32_t bi)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the begin index. <a href="#ae08c2e084a51bc0602b374d5ac69d76f"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classFieldPosition.html#a272f8398a2757804560771cc67d1f0f8">setEndIndex</a> (int32_t ei)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the end index. <a href="#a272f8398a2757804560771cc67d1f0f8"></a><br/></td></tr> <tr><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="classFieldPosition.html#acdf9fdcb5a7d838293537a6459eb997d">getDynamicClassID</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">ICU "poor man's RTTI", returns a UClassID for the actual class. <a href="#acdf9fdcb5a7d838293537a6459eb997d"></a><br/></td></tr> <tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFieldPosition.html#a953781a8cc4ab8919c74d7b5633b4b06">getStaticClassID</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">ICU "poor man's RTTI", returns a UClassID for this class. <a href="#a953781a8cc4ab8919c74d7b5633b4b06"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p><code><a class="el" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a></code> is a simple class used by <code><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a></code> and its subclasses to identify fields in formatted output. </p> <p>Fields are identified by constants, whose names typically end with <code>_FIELD</code>, defined in the various subclasses of <code><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a></code>. See <code>ERA_FIELD</code> and its friends in <code><a class="el" href="classDateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times...">DateFormat</a></code> for an example.</p> <p><code><a class="el" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a></code> keeps track of the position of the field within the formatted output with two indices: the index of the first character of the field and the index of the last character of the field.</p> <p>One version of the <code>format</code> method in the various <code><a class="el" href="classFormat.html" title="Base class for all formats.">Format</a></code> classes requires a <code><a class="el" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a></code> object as an argument. You use this <code>format</code> method to perform partial formatting or to get information about the formatted output (such as the position of a field).</p> <p>The <a class="el" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a> class is not suitable for subclassing.</p> <p>Below is an example of using <code><a class="el" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a></code> to aid alignment of an array of formatted floating-point numbers on their decimal points: </p> <pre> <div class="fragment"><pre class="fragment"> <span class="keywordtype">double</span> doubleNum[] = {123456789.0, -12345678.9, 1234567.89, -123456.789, 12345.6789, -1234.56789, 123.456789, -12.3456789, 1.23456789}; <span class="keywordtype">int</span> dNumSize = (int)(<span class="keyword">sizeof</span>(doubleNum)/<span class="keyword">sizeof</span>(double)); <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c" title="Error code to replace exception handling, so that the code is compatible with all...">UErrorCode</a> status = <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78caa43dbfc9499c5f911d04e1a0ca3bf6f9" title="No error, no warning.">U_ZERO_ERROR</a>; <a class="code" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a>* fmt = (<a class="code" href="classDecimalFormat.html" title="DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers...">DecimalFormat</a>*) <a class="code" href="classNumberFormat.html#a2483fa1e87f3600395ff0c8f364f7b6f" title="Returns the default number format for the current default locale.">NumberFormat::createInstance</a>(status); fmt-><a class="code" href="classDecimalFormat.html#a1c767fd7397fd26ca7c0bae7fdcf2343" title="Allows you to set the behavior of the decimal separator with integers.">setDecimalSeparatorAlwaysShown</a>(<span class="keyword">true</span>); <span class="keyword">const</span> <span class="keywordtype">int</span> tempLen = 20; <span class="keywordtype">char</span> temp[tempLen]; <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0; i<dNumSize; i++) { <a class="code" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a> pos(<a class="code" href="classNumberFormat.html#aac1d8bfe4ccd2cdf6fa1a933b2df75a1a193401497626cb3ca7f4f9baabe1c123" title="These constants are provided for backwards compatibility only.">NumberFormat::INTEGER_FIELD</a>); <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> buf; <span class="keywordtype">char</span> fmtText[tempLen]; ToCharString(fmt-><a class="code" href="classDecimalFormat.html#aed19f9279def60133b3122a2435ea568" title="Format a double or long number using base-10 representation.">format</a>(doubleNum[i], buf, pos), fmtText); <span class="keywordflow">for</span> (<span class="keywordtype">int</span> j=0; j<tempLen; j++) temp[j] = <span class="charliteral">' '</span>; <span class="comment">// clear with spaces</span> temp[__min(tempLen, tempLen-pos.<a class="code" href="classFieldPosition.html#ad94244fb17162aa8a6629bd5e978f5d2" title="Retrieve the index of the character following the last character in the requested...">getEndIndex</a>())] = <span class="charliteral">'\0'</span>; cout << temp << fmtText << endl; } <span class="keyword">delete</span> fmt; </pre></div> </pre> <p>The code will generate the following output: </p> <pre> <div class="fragment"><pre class="fragment"> 123,456,789.000 -12,345,678.900 1,234,567.880 -123,456.789 12,345.678 -1,234.567 123.456 -12.345 1.234 </pre></div> </pre> <p>Definition at line <a class="el" href="fieldpos_8h_source.html#l00106">106</a> of file <a class="el" href="fieldpos_8h_source.html">fieldpos.h</a>.</p> <hr/><h2>Member Enumeration Documentation</h2> <a class="anchor" id="addec3a5d61dc9d37f455a9bda3501d31"></a><!-- doxytag: member="FieldPosition::@23" ref="addec3a5d61dc9d37f455a9bda3501d31" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">anonymous enum</td> </tr> </table> </div> <div class="memdoc"> <p>DONT_CARE may be specified as the field to indicate that the caller doesn't need to specify a field. </p> <p>Do not subclass. </p> <p>Definition at line <a class="el" href="fieldpos_8h_source.html#l00112">112</a> of file <a class="el" href="fieldpos_8h_source.html">fieldpos.h</a>.</p> </div> </div> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a75a87d2e7d6d97217daff8e029a0f9b9"></a><!-- doxytag: member="FieldPosition::FieldPosition" ref="a75a87d2e7d6d97217daff8e029a0f9b9" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">FieldPosition::FieldPosition </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Creates a <a class="el" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a> object with a non-specified field. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002628">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Definition at line <a class="el" href="fieldpos_8h_source.html#l00118">118</a> of file <a class="el" href="fieldpos_8h_source.html">fieldpos.h</a>.</p> </div> </div> <a class="anchor" id="aa03f4d3490bf5f56b797c36363bfae4f"></a><!-- doxytag: member="FieldPosition::FieldPosition" ref="aa03f4d3490bf5f56b797c36363bfae4f" args="(int32_t field)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">FieldPosition::FieldPosition </td> <td>(</td> <td class="paramtype">int32_t </td> <td class="paramname"> <em>field</em></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Creates a <a class="el" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a> object for the given field. </p> <p>Fields are identified by constants, whose names typically end with _FIELD, in the various subclasses of <a class="el" href="classFormat.html" title="Base class for all formats.">Format</a>.</p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classNumberFormat.html#aac1d8bfe4ccd2cdf6fa1a933b2df75a1a193401497626cb3ca7f4f9baabe1c123" title="These constants are provided for backwards compatibility only.">NumberFormat::INTEGER_FIELD</a> </dd> <dd> NumberFormat::FRACTION_FIELD </dd> <dd> DateFormat::YEAR_FIELD </dd> <dd> DateFormat::MONTH_FIELD </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002629">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Definition at line <a class="el" href="fieldpos_8h_source.html#l00132">132</a> of file <a class="el" href="fieldpos_8h_source.html">fieldpos.h</a>.</p> </div> </div> <a class="anchor" id="aee8d7c91df960f9f020b480e7b2fa628"></a><!-- doxytag: member="FieldPosition::FieldPosition" ref="aee8d7c91df960f9f020b480e7b2fa628" args="(const FieldPosition &copy)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">FieldPosition::FieldPosition </td> <td>(</td> <td class="paramtype">const <a class="el" href="classFieldPosition.html">FieldPosition</a> & </td> <td class="paramname"> <em>copy</em></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Copy constructor. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>copy</em> </td><td>the object to be copied from. </td></tr> </table> </dd> </dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002630">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Definition at line <a class="el" href="fieldpos_8h_source.html#l00140">140</a> of file <a class="el" href="fieldpos_8h_source.html">fieldpos.h</a>.</p> </div> </div> <a class="anchor" id="a29226fbee478ae6ff23ef868e7810793"></a><!-- doxytag: member="FieldPosition::~FieldPosition" ref="a29226fbee478ae6ff23ef868e7810793" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual FieldPosition::~FieldPosition </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Destructor. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002631">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a64641de3d32fedd8dcc7cf299cd1f9cb"></a><!-- doxytag: member="FieldPosition::clone" ref="a64641de3d32fedd8dcc7cf299cd1f9cb" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classFieldPosition.html">FieldPosition</a>* FieldPosition::clone </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Clone this object. </p> <p>Clones can be used concurrently in multiple threads. If an error occurs, then NULL is returned. The caller must delete the clone.</p> <dl class="return"><dt><b>Returns:</b></dt><dd>a clone of this object</dd></dl> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classFieldPosition.html#acdf9fdcb5a7d838293537a6459eb997d" title="ICU "poor man's RTTI", returns a UClassID for the actual class.">getDynamicClassID</a> </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002635">Stable:</a></b></dt><dd>ICU 2.8 </dd></dl> </div> </div> <a class="anchor" id="ac1b3be1343963a616b7eaf335437a2ff"></a><!-- doxytag: member="FieldPosition::getBeginIndex" ref="ac1b3be1343963a616b7eaf335437a2ff" args="(void) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int32_t FieldPosition::getBeginIndex </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"></td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Retrieve the index of the first character in the requested field. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>the index of the first character in the requested field. </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002637">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Definition at line <a class="el" href="fieldpos_8h_source.html#l00197">197</a> of file <a class="el" href="fieldpos_8h_source.html">fieldpos.h</a>.</p> </div> </div> <a class="anchor" id="acdf9fdcb5a7d838293537a6459eb997d"></a><!-- doxytag: member="FieldPosition::getDynamicClassID" ref="acdf9fdcb5a7d838293537a6459eb997d" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> FieldPosition::getDynamicClassID </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>ICU "poor man's RTTI", returns a UClassID for the actual class. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002642">Stable:</a></b></dt><dd>ICU 2.2 </dd></dl> <p>Implements <a class="el" href="classUObject.html#a9b1acc95efd89cb86ec31f2dc947a262">UObject</a>.</p> </div> </div> <a class="anchor" id="ad94244fb17162aa8a6629bd5e978f5d2"></a><!-- doxytag: member="FieldPosition::getEndIndex" ref="ad94244fb17162aa8a6629bd5e978f5d2" args="(void) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int32_t FieldPosition::getEndIndex </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"></td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Retrieve the index of the character following the last character in the requested field. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>the index of the character following the last character in the requested field. </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002638">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Definition at line <a class="el" href="fieldpos_8h_source.html#l00206">206</a> of file <a class="el" href="fieldpos_8h_source.html">fieldpos.h</a>.</p> </div> </div> <a class="anchor" id="ad62441dc0bcc91af346d78a3faca2812"></a><!-- doxytag: member="FieldPosition::getField" ref="ad62441dc0bcc91af346d78a3faca2812" args="(void) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int32_t FieldPosition::getField </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"></td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Retrieve the field identifier. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>the field identifier. </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002636">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Definition at line <a class="el" href="fieldpos_8h_source.html#l00190">190</a> of file <a class="el" href="fieldpos_8h_source.html">fieldpos.h</a>.</p> </div> </div> <a class="anchor" id="a953781a8cc4ab8919c74d7b5633b4b06"></a><!-- doxytag: member="FieldPosition::getStaticClassID" ref="a953781a8cc4ab8919c74d7b5633b4b06" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> FieldPosition::getStaticClassID </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>ICU "poor man's RTTI", returns a UClassID for this class. </p> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002643">Stable:</a></b></dt><dd>ICU 2.2 </dd></dl> </div> </div> <a class="anchor" id="ad142ffe1884a49a2bf4d4073aa303038"></a><!-- doxytag: member="FieldPosition::operator!=" ref="ad142ffe1884a49a2bf4d4073aa303038" args="(const FieldPosition &that) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> FieldPosition::operator!= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classFieldPosition.html">FieldPosition</a> & </td> <td class="paramname"> <em>that</em></td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Equality operator. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>that</em> </td><td>the object to be compared with. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if the two field positions are not equal, FALSE otherwise. </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002634">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Definition at line <a class="el" href="fieldpos_8h_source.html#l00281">281</a> of file <a class="el" href="fieldpos_8h_source.html">fieldpos.h</a>.</p> <p>References <a class="el" href="fieldpos_8h_source.html#l00273">operator==()</a>.</p> </div> </div> <a class="anchor" id="a71afa3cf2ccf393943034c2c7d7eb7ce"></a><!-- doxytag: member="FieldPosition::operator=" ref="a71afa3cf2ccf393943034c2c7d7eb7ce" args="(const FieldPosition &copy)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classFieldPosition.html">FieldPosition</a> & FieldPosition::operator= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classFieldPosition.html">FieldPosition</a> & </td> <td class="paramname"> <em>copy</em></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Assignment operator. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>copy</em> </td><td>the object to be copied from. </td></tr> </table> </dd> </dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002632">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Definition at line <a class="el" href="fieldpos_8h_source.html#l00264">264</a> of file <a class="el" href="fieldpos_8h_source.html">fieldpos.h</a>.</p> </div> </div> <a class="anchor" id="ae9dbfaa44ccd20e4eb792546df80e714"></a><!-- doxytag: member="FieldPosition::operator==" ref="ae9dbfaa44ccd20e4eb792546df80e714" args="(const FieldPosition &that) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5">UBool</a> FieldPosition::operator== </td> <td>(</td> <td class="paramtype">const <a class="el" href="classFieldPosition.html">FieldPosition</a> & </td> <td class="paramname"> <em>that</em></td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Equality operator. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>that</em> </td><td>the object to be compared with. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>TRUE if the two field positions are equal, FALSE otherwise. </dd></dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002633">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Definition at line <a class="el" href="fieldpos_8h_source.html#l00273">273</a> of file <a class="el" href="fieldpos_8h_source.html">fieldpos.h</a>.</p> <p>Referenced by <a class="el" href="fieldpos_8h_source.html#l00281">operator!=()</a>.</p> </div> </div> <a class="anchor" id="ae08c2e084a51bc0602b374d5ac69d76f"></a><!-- doxytag: member="FieldPosition::setBeginIndex" ref="ae08c2e084a51bc0602b374d5ac69d76f" args="(int32_t bi)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void FieldPosition::setBeginIndex </td> <td>(</td> <td class="paramtype">int32_t </td> <td class="paramname"> <em>bi</em></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Set the begin index. </p> <p>For use by subclasses of <a class="el" href="classFormat.html" title="Base class for all formats.">Format</a>. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>bi</em> </td><td>the new value of the begin index </td></tr> </table> </dd> </dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002640">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Definition at line <a class="el" href="fieldpos_8h_source.html#l00220">220</a> of file <a class="el" href="fieldpos_8h_source.html">fieldpos.h</a>.</p> </div> </div> <a class="anchor" id="a272f8398a2757804560771cc67d1f0f8"></a><!-- doxytag: member="FieldPosition::setEndIndex" ref="a272f8398a2757804560771cc67d1f0f8" args="(int32_t ei)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void FieldPosition::setEndIndex </td> <td>(</td> <td class="paramtype">int32_t </td> <td class="paramname"> <em>ei</em></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Set the end index. </p> <p>For use by subclasses of <a class="el" href="classFormat.html" title="Base class for all formats.">Format</a>. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>ei</em> </td><td>the new value of the end index </td></tr> </table> </dd> </dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002641">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Definition at line <a class="el" href="fieldpos_8h_source.html#l00227">227</a> of file <a class="el" href="fieldpos_8h_source.html">fieldpos.h</a>.</p> </div> </div> <a class="anchor" id="aa5fab63fb11108011e818b7904648a98"></a><!-- doxytag: member="FieldPosition::setField" ref="aa5fab63fb11108011e818b7904648a98" args="(int32_t f)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void FieldPosition::setField </td> <td>(</td> <td class="paramtype">int32_t </td> <td class="paramname"> <em>f</em></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Set the field. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>f</em> </td><td>the new value of the field. </td></tr> </table> </dd> </dl> <dl class="stable"><dt><b><a class="el" href="stable.html#_stable002639">Stable:</a></b></dt><dd>ICU 2.0 </dd></dl> <p>Definition at line <a class="el" href="fieldpos_8h_source.html#l00213">213</a> of file <a class="el" href="fieldpos_8h_source.html">fieldpos.h</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="fieldpos_8h_source.html">fieldpos.h</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>Defines</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2-20100208 </small></address> </body> </html>