Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > f51238514e2abe817779ad2fe01b0759 > files > 414

icu-doc-4.4-2.1mdv2010.2.i586.rpm

<!-- 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: msgfmt.h Source File</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.1 -->
<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&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><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="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<h1>msgfmt.h</h1><a href="msgfmt_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment">* Copyright (C) 2007-2010, International Business Machines Corporation and</span>
<a name="l00003"></a>00003 <span class="comment">* others. All Rights Reserved.</span>
<a name="l00004"></a>00004 <span class="comment">********************************************************************************</span>
<a name="l00005"></a>00005 <span class="comment">*</span>
<a name="l00006"></a>00006 <span class="comment">* File MSGFMT.H</span>
<a name="l00007"></a>00007 <span class="comment">*</span>
<a name="l00008"></a>00008 <span class="comment">* Modification History:</span>
<a name="l00009"></a>00009 <span class="comment">*</span>
<a name="l00010"></a>00010 <span class="comment">*   Date        Name        Description</span>
<a name="l00011"></a>00011 <span class="comment">*   02/19/97    aliu        Converted from java.</span>
<a name="l00012"></a>00012 <span class="comment">*   03/20/97    helena      Finished first cut of implementation.</span>
<a name="l00013"></a>00013 <span class="comment">*   07/22/98    stephen     Removed operator!= (defined in Format)</span>
<a name="l00014"></a>00014 <span class="comment">*   08/19/2002  srl         Removing Javaisms</span>
<a name="l00015"></a>00015 <span class="comment">*******************************************************************************/</span>
<a name="l00016"></a>00016 
<a name="l00017"></a>00017 <span class="preprocessor">#ifndef MSGFMT_H</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define MSGFMT_H</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &quot;<a class="code" href="utypes_8h.html" title="Basic definitions for ICU, for both C and C++ APIs.">unicode/utypes.h</a>&quot;</span>
<a name="l00021"></a>00021 
<a name="l00027"></a>00027 <span class="preprocessor">#if !UCONFIG_NO_FORMATTING</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &quot;<a class="code" href="format_8h.html" title="C++ API: Base class for all formats.">unicode/format.h</a>&quot;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &quot;<a class="code" href="locid_8h.html" title="C++ API: Locale ID object.">unicode/locid.h</a>&quot;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &quot;<a class="code" href="parseerr_8h.html" title="C API: Parse Error Information.">unicode/parseerr.h</a>&quot;</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include &quot;<a class="code" href="uchar_8h.html" title="C API: Unicode Properties.">unicode/uchar.h</a>&quot;</span>
<a name="l00033"></a>00033 
<a name="l00034"></a>00034 <a class="code" href="uversion_8h.html#a7d9374e037299886d4192b763b4c5e8b" title="This is used to begin a declaration of a public ICU C++ API.">U_NAMESPACE_BEGIN</a>
<a name="l00035"></a>00035 
<a name="l00036"></a>00036 <span class="keyword">class </span><a class="code" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a>;
<a name="l00037"></a>00037 <span class="keyword">class </span><a class="code" href="classDateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times...">DateFormat</a>;
<a name="l00038"></a>00038 
<a name="l00317"></a><a class="code" href="classMessageFormat.html">00317</a> <span class="keyword">class </span><a class="code" href="utypes_8h.html#ab9d90a30137b6ec046fe59e79b09745a" title="Set to export library symbols from inside the i18n library, and to import them from...">U_I18N_API</a> <a class="code" href="classMessageFormat.html" title="MessageFormat produces concatenated messages in a language-neutral way.">MessageFormat</a> : <span class="keyword">public</span> <a class="code" href="classFormat.html" title="Base class for all formats.">Format</a> {
<a name="l00318"></a>00318 <span class="keyword">public</span>:
<a name="l00324"></a><a class="code" href="classMessageFormat.html#a3b02759e9345bba433598ca169fe2626">00324</a>     <span class="keyword">enum</span> <a class="code" href="classMessageFormat.html#a3b02759e9345bba433598ca169fe2626" title="Enum type for kMaxFormat.">EFormatNumber</a> {
<a name="l00330"></a><a class="code" href="classMessageFormat.html#a3b02759e9345bba433598ca169fe2626a2c4649766d55fba1106595c70fab6a79">00330</a>         kMaxFormat = 10
<a name="l00331"></a>00331     };
<a name="l00332"></a>00332 
<a name="l00342"></a>00342     <a class="code" href="classMessageFormat.html" title="MessageFormat produces concatenated messages in a language-neutral way.">MessageFormat</a>(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; pattern,
<a name="l00343"></a>00343                   <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> &amp;status);
<a name="l00344"></a>00344 
<a name="l00353"></a>00353     <a class="code" href="classMessageFormat.html" title="MessageFormat produces concatenated messages in a language-neutral way.">MessageFormat</a>(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; pattern,
<a name="l00354"></a>00354                   <span class="keyword">const</span> <a class="code" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a>&amp; newLocale,
<a name="l00355"></a>00355                         <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>&amp; status);
<a name="l00366"></a>00366     <a class="code" href="classMessageFormat.html" title="MessageFormat produces concatenated messages in a language-neutral way.">MessageFormat</a>(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; pattern,
<a name="l00367"></a>00367                   <span class="keyword">const</span> <a class="code" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a>&amp; newLocale,
<a name="l00368"></a>00368                   <a class="code" href="structUParseError.html" title="A UParseError struct is used to returned detailed information about parsing errors...">UParseError</a>&amp; parseError,
<a name="l00369"></a>00369                   <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>&amp; status);
<a name="l00374"></a>00374     <a class="code" href="classMessageFormat.html" title="MessageFormat produces concatenated messages in a language-neutral way.">MessageFormat</a>(<span class="keyword">const</span> <a class="code" href="classMessageFormat.html" title="MessageFormat produces concatenated messages in a language-neutral way.">MessageFormat</a>&amp;);
<a name="l00375"></a>00375 
<a name="l00380"></a>00380     <span class="keyword">const</span> <a class="code" href="classMessageFormat.html" title="MessageFormat produces concatenated messages in a language-neutral way.">MessageFormat</a>&amp; <a class="code" href="classFormat.html#a7a5276a88c488462eea3a508b71f4d9c">operator=</a>(<span class="keyword">const</span> <a class="code" href="classMessageFormat.html" title="MessageFormat produces concatenated messages in a language-neutral way.">MessageFormat</a>&amp;);
<a name="l00381"></a>00381 
<a name="l00386"></a>00386     <span class="keyword">virtual</span> ~<a class="code" href="classMessageFormat.html" title="MessageFormat produces concatenated messages in a language-neutral way.">MessageFormat</a>();
<a name="l00387"></a>00387 
<a name="l00393"></a>00393     <span class="keyword">virtual</span> <a class="code" href="classFormat.html" title="Base class for all formats.">Format</a>* <a class="code" href="classFormat.html#a4e7ebd5cfd390c35e2bda88257f8b51a" title="Clone this object polymorphically.">clone</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00394"></a>00394 
<a name="l00402"></a>00402     <span class="keyword">virtual</span> <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> <a class="code" href="classFormat.html#ad9be7e8b7bef97013ff74ef1be3903a5" title="Return true if the given Format objects are semantically equal.">operator==</a>(<span class="keyword">const</span> <a class="code" href="classFormat.html" title="Base class for all formats.">Format</a>&amp; other) <span class="keyword">const</span>;
<a name="l00403"></a>00403 
<a name="l00410"></a>00410     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setLocale(<span class="keyword">const</span> <a class="code" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a>&amp; theLocale);
<a name="l00411"></a>00411 
<a name="l00418"></a>00418     <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a>&amp; <a class="code" href="classFormat.html#a4502b04fe77be54f9f0343a87156fbd5" title="Get the locale for this format object.">getLocale</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00419"></a>00419 
<a name="l00428"></a>00428     <span class="keyword">virtual</span> <span class="keywordtype">void</span> applyPattern(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; pattern,
<a name="l00429"></a>00429                               <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>&amp; status);
<a name="l00440"></a>00440     <span class="keyword">virtual</span> <span class="keywordtype">void</span> applyPattern(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; pattern,
<a name="l00441"></a>00441                              <a class="code" href="structUParseError.html" title="A UParseError struct is used to returned detailed information about parsing errors...">UParseError</a>&amp; parseError,
<a name="l00442"></a>00442                              <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>&amp; status);
<a name="l00443"></a>00443 
<a name="l00452"></a>00452     <span class="keyword">virtual</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; toPattern(<a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; appendTo) <span class="keyword">const</span>;
<a name="l00453"></a>00453 
<a name="l00470"></a>00470     <span class="keyword">virtual</span> <span class="keywordtype">void</span> adoptFormats(<a class="code" href="classFormat.html" title="Base class for all formats.">Format</a>** formatsToAdopt, int32_t count);
<a name="l00471"></a>00471 
<a name="l00486"></a>00486     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setFormats(<span class="keyword">const</span> <a class="code" href="classFormat.html" title="Base class for all formats.">Format</a>** newFormats, int32_t cnt);
<a name="l00487"></a>00487 
<a name="l00488"></a>00488 
<a name="l00503"></a>00503     <span class="keyword">virtual</span> <span class="keywordtype">void</span> adoptFormat(int32_t formatNumber, <a class="code" href="classFormat.html" title="Base class for all formats.">Format</a>* formatToAdopt);
<a name="l00504"></a>00504 
<a name="l00514"></a>00514     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setFormat(int32_t formatNumber, <span class="keyword">const</span> <a class="code" href="classFormat.html" title="Base class for all formats.">Format</a>&amp; format);
<a name="l00515"></a>00515 
<a name="l00524"></a>00524     <span class="keyword">virtual</span> <a class="code" href="classStringEnumeration.html" title="Base class for &amp;#39;pure&amp;#39; C++ implementations of uenum api.">StringEnumeration</a>* getFormatNames(<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>&amp; status);
<a name="l00525"></a>00525 
<a name="l00539"></a>00539     <span class="keyword">virtual</span> <a class="code" href="classFormat.html" title="Base class for all formats.">Format</a>* getFormat(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; formatName, <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>&amp; status);
<a name="l00540"></a>00540 
<a name="l00554"></a>00554     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setFormat(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; formatName, <span class="keyword">const</span> <a class="code" href="classFormat.html" title="Base class for all formats.">Format</a>&amp; format, <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>&amp; status);
<a name="l00555"></a>00555 
<a name="l00570"></a>00570     <span class="keyword">virtual</span> <span class="keywordtype">void</span> adoptFormat(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; formatName, <a class="code" href="classFormat.html" title="Base class for all formats.">Format</a>* formatToAdopt, <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>&amp; status);
<a name="l00571"></a>00571 
<a name="l00584"></a>00584     <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classFormat.html" title="Base class for all formats.">Format</a>** getFormats(int32_t&amp; count) <span class="keyword">const</span>;
<a name="l00585"></a>00585 
<a name="l00586"></a>00586 
<a name="l00587"></a>00587     <span class="keyword">using</span> <a class="code" href="classFormat.html#af3f0b157f07d6e9f908da69c99239600" title="Formats an object to produce a string.">Format::format</a>;
<a name="l00588"></a>00588 
<a name="l00606"></a>00606     <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; <a class="code" href="classFormat.html#af3f0b157f07d6e9f908da69c99239600" title="Formats an object to produce a string.">format</a>(<span class="keyword">const</span> <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>* source,
<a name="l00607"></a>00607                           int32_t count,
<a name="l00608"></a>00608                           <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; appendTo,
<a name="l00609"></a>00609                           <a class="code" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a>&amp; ignore,
<a name="l00610"></a>00610                           <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>&amp; status) <span class="keyword">const</span>;
<a name="l00611"></a>00611 
<a name="l00629"></a>00629     <span class="keyword">static</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; <a class="code" href="classFormat.html#af3f0b157f07d6e9f908da69c99239600" title="Formats an object to produce a string.">format</a>(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; pattern,
<a name="l00630"></a>00630                                  <span class="keyword">const</span> <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>* arguments,
<a name="l00631"></a>00631                                  int32_t count,
<a name="l00632"></a>00632                                  <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; appendTo,
<a name="l00633"></a>00633                                  <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>&amp; status);
<a name="l00634"></a>00634 
<a name="l00655"></a>00655     <span class="keyword">virtual</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; <a class="code" href="classFormat.html#af3f0b157f07d6e9f908da69c99239600" title="Formats an object to produce a string.">format</a>(<span class="keyword">const</span> <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>&amp; obj,
<a name="l00656"></a>00656                                   <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; appendTo,
<a name="l00657"></a>00657                                   <a class="code" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a>&amp; pos,
<a name="l00658"></a>00658                                   <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>&amp; status) <span class="keyword">const</span>;
<a name="l00659"></a>00659 
<a name="l00674"></a>00674     <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; <a class="code" href="classFormat.html#af3f0b157f07d6e9f908da69c99239600" title="Formats an object to produce a string.">format</a>(<span class="keyword">const</span> <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>&amp; obj,
<a name="l00675"></a>00675                           <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; appendTo,
<a name="l00676"></a>00676                           <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>&amp; status) <span class="keyword">const</span>;
<a name="l00677"></a>00677 
<a name="l00678"></a>00678 
<a name="l00697"></a>00697     <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; <a class="code" href="classFormat.html#af3f0b157f07d6e9f908da69c99239600" title="Formats an object to produce a string.">format</a>(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>* argumentNames,
<a name="l00698"></a>00698                           <span class="keyword">const</span> <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>* arguments,
<a name="l00699"></a>00699                           int32_t count,
<a name="l00700"></a>00700                           <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; appendTo,
<a name="l00701"></a>00701                           <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>&amp; status) <span class="keyword">const</span>;
<a name="l00715"></a>00715     <span class="keyword">virtual</span> <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>* parse(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; source,
<a name="l00716"></a>00716                                <a class="code" href="classParsePosition.html" title="ParsePosition is a simple class used by Format and its subclasses to keep track of...">ParsePosition</a>&amp; pos,
<a name="l00717"></a>00717                                int32_t&amp; count) <span class="keyword">const</span>;
<a name="l00718"></a>00718 
<a name="l00734"></a>00734     <span class="keyword">virtual</span> <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>* parse(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; source,
<a name="l00735"></a>00735                                int32_t&amp; count,
<a name="l00736"></a>00736                                <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>&amp; status) <span class="keyword">const</span>;
<a name="l00737"></a>00737 
<a name="l00750"></a>00750     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFormat.html#aa53bea97b986c2f21e5638aa30aa08b7" title="Parse a string to produce an object.">parseObject</a>(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; source,
<a name="l00751"></a>00751                              <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>&amp; result,
<a name="l00752"></a>00752                              <a class="code" href="classParsePosition.html" title="ParsePosition is a simple class used by Format and its subclasses to keep track of...">ParsePosition</a>&amp; pos) <span class="keyword">const</span>;
<a name="l00753"></a>00753 
<a name="l00773"></a>00773     <span class="keyword">static</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> autoQuoteApostrophe(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; pattern,
<a name="l00774"></a>00774         <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>&amp; status);
<a name="l00775"></a>00775 
<a name="l00783"></a>00783     <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> usesNamedArguments() <span class="keyword">const</span>;
<a name="l00784"></a>00784 
<a name="l00785"></a>00785 
<a name="l00796"></a>00796     int32_t getArgTypeCount() <span class="keyword">const</span>;
<a name="l00797"></a>00797 
<a name="l00809"></a>00809     <span class="keyword">virtual</span> <a class="code" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f" title="UClassID is used to identify classes without using RTTI, since RTTI is not yet supported...">UClassID</a> <a class="code" href="classFormat.html#ac961d410d174518e5a3ebb8bbef45cd7" title="Returns a unique class ID POLYMORPHICALLY.">getDynamicClassID</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00810"></a>00810 
<a name="l00822"></a>00822     <span class="keyword">static</span> <a class="code" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f" title="UClassID is used to identify classes without using RTTI, since RTTI is not yet supported...">UClassID</a> <a class="code" href="platform_8h.html#a72bf6d8ec0640a37b1915e5d853b2016">U_EXPORT2</a> getStaticClassID(<span class="keywordtype">void</span>);
<a name="l00823"></a>00823 
<a name="l00824"></a>00824 <span class="keyword">private</span>:
<a name="l00825"></a>00825 
<a name="l00826"></a>00826     <a class="code" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a>              fLocale;
<a name="l00827"></a>00827     <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>       fPattern;
<a name="l00828"></a>00828     <a class="code" href="classFormat.html" title="Base class for all formats.">Format</a>**            formatAliases; <span class="comment">// see getFormats</span>
<a name="l00829"></a>00829     int32_t             formatAliasesCapacity;
<a name="l00830"></a>00830     <a class="code" href="uchar_8h.html#ae40d616419e74ecc7c80a9febab03199" title="Selection constants for Unicode properties.">UProperty</a>           idStart;
<a name="l00831"></a>00831     <a class="code" href="uchar_8h.html#ae40d616419e74ecc7c80a9febab03199" title="Selection constants for Unicode properties.">UProperty</a>           idContinue;
<a name="l00832"></a>00832 
<a name="l00833"></a>00833     <a class="code" href="classMessageFormat.html" title="MessageFormat produces concatenated messages in a language-neutral way.">MessageFormat</a>(); <span class="comment">// default constructor not implemented</span>
<a name="l00834"></a>00834 
<a name="l00835"></a>00835     <span class="comment">/*</span>
<a name="l00836"></a>00836 <span class="comment">     * A structure representing one subformat of this MessageFormat.</span>
<a name="l00837"></a>00837 <span class="comment">     * Each subformat has a Format object, an offset into the plain</span>
<a name="l00838"></a>00838 <span class="comment">     * pattern text fPattern, and an argument number.  The argument</span>
<a name="l00839"></a>00839 <span class="comment">     * number corresponds to the array of arguments to be formatted.</span>
<a name="l00840"></a>00840 <span class="comment">     * @internal</span>
<a name="l00841"></a>00841 <span class="comment">     */</span>
<a name="l00842"></a>00842     <span class="keyword">class </span>Subformat;
<a name="l00843"></a>00843 
<a name="l00848"></a>00848     Subformat* subformats;
<a name="l00849"></a>00849     int32_t    subformatCount;
<a name="l00850"></a>00850     int32_t    subformatCapacity;
<a name="l00851"></a>00851 
<a name="l00860"></a>00860     <a class="code" href="classFormattable.html#a6116dce32d34fe529d3a15c4f4d587a9" title="Selector for flavor of data type contained within a Formattable object.">Formattable::Type</a>* argTypes;
<a name="l00861"></a>00861     int32_t            argTypeCount;
<a name="l00862"></a>00862     int32_t            argTypeCapacity;
<a name="l00863"></a>00863 
<a name="l00868"></a>00868     <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> isArgNumeric;
<a name="l00869"></a>00869 
<a name="l00870"></a>00870     <span class="comment">// Variable-size array management</span>
<a name="l00871"></a>00871     <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> allocateSubformats(int32_t capacity);
<a name="l00872"></a>00872     <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> allocateArgTypes(int32_t capacity);
<a name="l00873"></a>00873 
<a name="l00881"></a>00881     <a class="code" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a>* defaultNumberFormat;
<a name="l00882"></a>00882     <a class="code" href="classDateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times...">DateFormat</a>*   defaultDateFormat;
<a name="l00883"></a>00883 
<a name="l00888"></a>00888     <span class="keyword">const</span> <a class="code" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a>* getDefaultNumberFormat(<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>&amp;) <span class="keyword">const</span>;
<a name="l00889"></a>00889     <span class="keyword">const</span> <a class="code" href="classDateFormat.html" title="DateFormat is an abstract class for a family of classes that convert dates and times...">DateFormat</a>*   getDefaultDateFormat(<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>&amp;) <span class="keyword">const</span>;
<a name="l00890"></a>00890 
<a name="l00897"></a>00897     <span class="keyword">static</span> int32_t findKeyword( <span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; s,
<a name="l00898"></a>00898                                 <span class="keyword">const</span> <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac" title="Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned...">UChar</a> * <span class="keyword">const</span> *list);
<a name="l00899"></a>00899 
<a name="l00916"></a>00916     <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp;  <a class="code" href="classFormat.html#af3f0b157f07d6e9f908da69c99239600" title="Formats an object to produce a string.">format</a>( <span class="keyword">const</span> <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>* arguments,
<a name="l00917"></a>00917                             int32_t cnt,
<a name="l00918"></a>00918                             <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; appendTo,
<a name="l00919"></a>00919                             <a class="code" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a>&amp; status,
<a name="l00920"></a>00920                             int32_t recursionProtection,
<a name="l00921"></a>00921                             <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>&amp; success) <span class="keyword">const</span>;
<a name="l00922"></a>00922 
<a name="l00923"></a>00923     <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp;  <a class="code" href="classFormat.html#af3f0b157f07d6e9f908da69c99239600" title="Formats an object to produce a string.">format</a>( <span class="keyword">const</span> <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>* arguments,
<a name="l00924"></a>00924                             <span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a> *argumentNames,
<a name="l00925"></a>00925                             int32_t cnt,
<a name="l00926"></a>00926                             <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; appendTo,
<a name="l00927"></a>00927                             <a class="code" href="classFieldPosition.html" title="FieldPosition is a simple class used by Format and its subclasses to identify fields...">FieldPosition</a>&amp; status,
<a name="l00928"></a>00928                             int32_t recursionProtection,
<a name="l00929"></a>00929                             <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>&amp; success) <span class="keyword">const</span>;
<a name="l00930"></a>00930 
<a name="l00931"></a>00931     <span class="keywordtype">void</span>             makeFormat(int32_t offsetNumber,
<a name="l00932"></a>00932                                 <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>* segments,
<a name="l00933"></a>00933                                 <a class="code" href="structUParseError.html" title="A UParseError struct is used to returned detailed information about parsing errors...">UParseError</a>&amp; parseError,
<a name="l00934"></a>00934                                 <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>&amp; success);
<a name="l00935"></a>00935 
<a name="l00939"></a>00939     <a class="code" href="classNumberFormat.html" title="Abstract base class for all number formats.">NumberFormat</a>* createIntegerFormat(<span class="keyword">const</span> <a class="code" href="classLocale.html" title="A Locale object represents a specific geographical, political, or cultural region...">Locale</a>&amp; locale, <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>&amp; status) <span class="keyword">const</span>;
<a name="l00940"></a>00940 
<a name="l00950"></a>00950     <span class="keyword">static</span> <span class="keywordtype">void</span> copyAndFixQuotes(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; appendTo, int32_t start, int32_t end, <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; target);
<a name="l00951"></a>00951 
<a name="l00960"></a>00960     <span class="keyword">const</span> <a class="code" href="classFormattable.html#a6116dce32d34fe529d3a15c4f4d587a9" title="Selector for flavor of data type contained within a Formattable object.">Formattable::Type</a>* getArgTypeList(int32_t&amp; listCount)<span class="keyword"> const </span>{
<a name="l00961"></a>00961         listCount = argTypeCount;
<a name="l00962"></a>00962         <span class="keywordflow">return</span> argTypes;
<a name="l00963"></a>00963     }
<a name="l00964"></a>00964 
<a name="l00970"></a>00970     <a class="code" href="umachine_8h.html#a349ef00011f20ccd1d3b424445681aa5" title="The ICU boolean type.">UBool</a> isLegalArgName(<span class="keyword">const</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; argName) <span class="keyword">const</span>;
<a name="l00971"></a>00971 
<a name="l00972"></a>00972     <span class="keyword">friend</span> <span class="keyword">class </span>MessageFormatAdapter; <span class="comment">// getFormatTypeList() access</span>
<a name="l00973"></a>00973 };
<a name="l00974"></a>00974 
<a name="l00975"></a>00975 <span class="keyword">inline</span> <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp;
<a name="l00976"></a><a class="code" href="classMessageFormat.html#a7e78ae8192e0889a196b0b4ae86a3a6a">00976</a> <a class="code" href="classMessageFormat.html#ac984e47d8f99db7f623bd60f856f8666" title="Formats the given array of arguments into a user-readable string.">MessageFormat::format</a>(<span class="keyword">const</span> <a class="code" href="classFormattable.html" title="Formattable objects can be passed to the Format class or its subclasses for formatting...">Formattable</a>&amp; obj,
<a name="l00977"></a>00977                       <a class="code" href="classUnicodeString.html" title="UnicodeString is a string class that stores Unicode characters directly and provides...">UnicodeString</a>&amp; appendTo,
<a name="l00978"></a>00978                       <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>&amp; status)<span class="keyword"> const </span>{
<a name="l00979"></a>00979     <span class="keywordflow">return</span> <a class="code" href="classMessageFormat.html#ac984e47d8f99db7f623bd60f856f8666" title="Formats the given array of arguments into a user-readable string.">Format::format</a>(obj, appendTo, status);
<a name="l00980"></a>00980 }
<a name="l00981"></a>00981 
<a name="l00982"></a>00982 <a class="code" href="uversion_8h.html#a3da1f00f3b02976ac53c014a3e4c0933" title="This is used to end a declaration of a public ICU C++ API.">U_NAMESPACE_END</a>
<a name="l00983"></a>00983 
<a name="l00984"></a>00984 <span class="preprocessor">#endif </span><span class="comment">/* #if !UCONFIG_NO_FORMATTING */</span>
<a name="l00985"></a>00985 
<a name="l00986"></a>00986 <span class="preprocessor">#endif // _MSGFMT</span>
<a name="l00987"></a>00987 <span class="preprocessor"></span><span class="comment">//eof</span>
</pre></div></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">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&nbsp;</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 size="1"/><address style="text-align: right;"><small>Generated on 16 Mar 2010 for ICU 4.4 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>