0
     ˆÆÅÊ535Ä¿Ç     ‹      ½•M�Ú0†ïû+\z#C€Õnw“T4Aj$¾ÄRUUÕƒ‰�Ä"Ø‘mÊÒ__ƒiI+h·âä™ø�É<3‰¼J&ñüÓt€ÞÏGC4ýðn˜Æ· >vc€dž¸�ž×öcŒpiLý °Ùl¼M×“ª€ùJ³ªz �â™ñ¨¡8º	vÏ¢”ŒP»¢ÀpS±(”=#™#�k£9e=Xk_À47¬eMEÔr¢M÷aÄ	ÀEÛ|pH,$ÝîÞãÿwNº/Œ,ö©w¦ŠS¢¯¤â…±‘5Ž¾*�VYˆ�gRhXTD,½‚ç‘Ê„øsO¾X˜r•Šå!~‡ãÇIØÇÑ˜¬X ä´fä4C[ZIÊsÎèYñ“?ñoç&V“à(a:S¼6\Š£,b5“•®‰e½µ¥jªœ„þ­$û¥Óþl0ž'éÌµ„îR«{ñ„p4%Š	ƒ®Xf¤Ú\Â×b¡ëÇ.:T¨xQ!ÔB'•ÿ€µK!7¢If»v’iF=E5ŽÜÚ,ó·º:íN§Õ~Óòï‘ÿÐó:#ìúw×È1kÅ´Ãhz—€ñ;�kÂ”š••Ž¥á\d.vïŠ(ËÃP~š—™ÈU?/¡S‘KÇq´/óŸô®	RÛ£ŽÌ‘4œK ÜÝ¶ÿ€òÂWY ûË1 w	óg’[ç    B   ˆl—Ým_JJe¶¥6 _¸Ó·yLZ7ÿ�þBìm<³Œ¼"¶Q¼Ð@çÌ„}Ð>çË_ˆI|¥�+y,ÁÉ ?÷     // Â© 2017 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html

#ifndef __NUMBERFORMATTER_H__
#define __NUMBERFORMATTER_H__

#include "unicode/utypes.h"

#if U_SHOW_CPLUSPLUS_API

#if !UCONFIG_NO_FORMATTING

#include "unicode/appendable.h"
#include "unicode/bytestream.h"
#include "unicode/currunit.h"
#include "unicode/dcfmtsym.h"
#include "unicode/displayoptions.h"
#include "unicode/fieldpos.h"
#include "unicode/formattedvalue.h"
#include "unicode/fpositer.h"
#include "unicode/measunit.h"
#include "unicode/nounit.h"
#include "unicode/parseerr.h"
#include "unicode/plurrule.h"
#include "unicode/ucurr.h"
#include "unicode/udisplayoptions.h"
#include "unicode/unum.h"
#include "unicode/unumberformatter.h"
#include "unicode/uobject.h"

/**
 * \file
 * \brief C++ API: All-in-one formatter for localized numbers, currencies, and units.
 * 
 * For a full list of options, see icu::number::NumberFormatterSettings.
 *
 * <pre>
 * // Most basic usage:
 * NumberFormatter::withLocale(...).format(123).toString();  // 1,234 in en-US
 *
 * // Custom notation, unit, and rounding precision:
 * NumberFormatter::with()
 *     .notation(Notation::compactShort())
 *     .unit(CurrencyUnit("EUR", status))
 *     .precision(Precision::maxDigits(2))
 *     .locale(...)
 *     .format(1234)
 *     .toString();  // â‚¬1.2K in en-US
 *
 * // Create a formatter in a singleton by value for use later:
 * static const LocalizedNumberFormatter formatter = NumberFormatter::withLocale(...)
 *     .unit(NoUnit::percent())
 *     .precision(Precision::fixedFraction(3));
 * formatter.format(5.9831).toString();  // 5.983% in en-US
 *
 * // Create a "template" in a singleton unique_ptr but without setting a locale until the call site:
 * std::unique_ptr<UnlocalizedNumberFormatter> template = NumberFormatter::with()
 *     .sign(UNumberSignDisplay::UNUM_SIGN_ALWAYS)
 *     .unit(MeasureUnit::getMeter())
 *     .unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_FULL_NAME)
 *     .clone();
 * template->locale(...).format(1234).toString();  // +1,234 meters in en-US
 * </pre>
 *
 * <p>
 * This API offers more features than DecimalFormat and is geared toward new users of ICU.
 *
 * <p>
 * NumberFormatter instances (i.e., LocalizedNumberFormatter and UnlocalizedNumberFormatter)
 * are immutable and thread safe. This means that invoking a configuration method has no
 * effect on the receiving instance; you must store and use the new number formatter instance it returns instead.
 *
 * <pre>
 * UnlocalizedNumberFormatter formatter = UnlocalizedNumberFormatter::with().notation(Notation::scientific());
 * formatter.precision(Precision.maxFraction(2)); // does nothing!
 * formatter.locale(Locale.getEnglish()).format(9.8765).toString(); // prints "9.8765E0", not "9.88E0"
 * </pre>
 *
 * <p>
 * This API is based on the <em>fluent</em> design pattern popularized by libraries such as Google's Guava. For
 * extensive details on the design of this API, read <a href="https://goo.gl/szi5VB">the design doc</a>.
 *
 * @author Shane Carr
 */

U_NAMESPACE_BEGIN

// Forward declarations:
class IFixedDecimal;
class FieldPositionIteratorHandler;
class FormattedStringBuilder;

namespace numparse {
namespace impl {

// Forward declarations:
class NumberParserImpl;
class MultiplierParseHandler;

}
}

namespace units {

// Forward declarations:
class UnitsRouter;

} // namespace units

namespace number {  // ic