PATH: //proc/thread-self/root/proc/thread-self/root/usr/include/unicode
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 alphaindex.h
↓
X
📄 appendable.h
↓
X
📄 basictz.h
↓
X
📄 brkiter.h
↓
X
📄 bytestream.h
↓
X
📄 bytestrie.h
↓
X
📄 bytestriebuilder.h
↓
X
📄 calendar.h
↓
X
📄 caniter.h
↓
X
📄 casemap.h
↓
X
📄 char16ptr.h
↓
X
📄 chariter.h
↓
X
📄 choicfmt.h
↓
X
📄 coleitr.h
↓
X
📄 coll.h
↓
X
📄 compactdecimalformat.h
↓
X
📄 curramt.h
↓
X
📄 currpinf.h
↓
X
📄 currunit.h
↓
X
📄 datefmt.h
↓
X
📄 dbbi.h
↓
X
📄 dcfmtsym.h
↓
X
📄 decimfmt.h
↓
X
📄 docmain.h
↓
X
📄 dtfmtsym.h
↓
X
📄 dtintrv.h
↓
X
📄 dtitvfmt.h
↓
X
📄 dtitvinf.h
↓
X
📄 dtptngen.h
↓
X
📄 dtrule.h
↓
X
📄 edits.h
↓
X
📄 enumset.h
↓
X
📄 errorcode.h
↓
X
📄 fieldpos.h
↓
X
📄 filteredbrk.h
↓
X
📄 fmtable.h
↓
X
📄 format.h
↓
X
📄 formattedvalue.h
↓
X
📄 fpositer.h
↓
X
📄 gender.h
↓
X
📄 gregocal.h
↓
X
📄 icudataver.h
↓
X
📄 icuplug.h
↓
X
📄 idna.h
↓
X
📄 listformatter.h
↓
X
📄 localebuilder.h
↓
X
📄 localematcher.h
↓
X
📄 localpointer.h
↓
X
📄 locdspnm.h
↓
X
📄 locid.h
↓
X
📄 measfmt.h
↓
X
📄 measunit.h
↓
X
📄 measure.h
↓
X
📄 messagepattern.h
↓
X
📄 msgfmt.h
↓
X
📄 normalizer2.h
↓
X
📄 normlzr.h
↓
X
📄 nounit.h
↓
X
📄 numberformatter.h
↓
X
📄 numberrangeformatter.h
↓
X
📄 numfmt.h
↓
X
📄 numsys.h
↓
X
📄 parseerr.h
↓
X
📄 parsepos.h
↓
X
📄 platform.h
↓
X
📄 plurfmt.h
↓
X
📄 plurrule.h
↓
X
📄 ptypes.h
↓
X
📄 putil.h
↓
X
📄 rbbi.h
↓
X
📄 rbnf.h
↓
X
📄 rbtz.h
↓
X
📄 regex.h
↓
X
📄 region.h
↓
X
📄 reldatefmt.h
↓
X
📄 rep.h
↓
X
📄 resbund.h
↓
X
📄 schriter.h
↓
X
📄 scientificnumberformatter.h
↓
X
📄 search.h
↓
X
📄 selfmt.h
↓
X
📄 simpleformatter.h
↓
X
📄 simpletz.h
↓
X
📄 smpdtfmt.h
↓
X
📄 sortkey.h
↓
X
📄 std_string.h
↓
X
📄 strenum.h
↓
X
📄 stringoptions.h
↓
X
📄 stringpiece.h
↓
X
📄 stringtriebuilder.h
↓
X
📄 stsearch.h
↓
X
📄 symtable.h
↓
X
📄 tblcoll.h
↓
X
📄 timezone.h
↓
X
📄 tmunit.h
↓
X
📄 tmutamt.h
↓
X
📄 tmutfmt.h
↓
X
📄 translit.h
↓
X
📄 tzfmt.h
↓
X
📄 tznames.h
↓
X
📄 tzrule.h
↓
X
📄 tztrans.h
↓
X
📄 ubidi.h
↓
X
📄 ubiditransform.h
↓
X
📄 ubrk.h
↓
X
📄 ucal.h
↓
X
📄 ucasemap.h
↓
X
📄 ucat.h
↓
X
📄 uchar.h
↓
X
📄 ucharstrie.h
↓
X
📄 ucharstriebuilder.h
↓
X
📄 uchriter.h
↓
X
📄 uclean.h
↓
X
📄 ucnv.h
↓
X
📄 ucnv_cb.h
↓
X
📄 ucnv_err.h
↓
X
📄 ucnvsel.h
↓
X
📄 ucol.h
↓
X
📄 ucoleitr.h
↓
X
📄 uconfig.h
↓
X
📄 ucpmap.h
↓
X
📄 ucptrie.h
↓
X
📄 ucsdet.h
↓
X
📄 ucurr.h
↓
X
📄 udat.h
↓
X
📄 udata.h
↓
X
📄 udateintervalformat.h
↓
X
📄 udatpg.h
↓
X
📄 udisplaycontext.h
↓
X
📄 uenum.h
↓
X
📄 ufieldpositer.h
↓
X
📄 uformattable.h
↓
X
📄 uformattedvalue.h
↓
X
📄 ugender.h
↓
X
📄 uidna.h
↓
X
📄 uiter.h
↓
X
📄 uldnames.h
↓
X
📄 ulistformatter.h
↓
X
📄 uloc.h
↓
X
📄 ulocdata.h
↓
X
📄 umachine.h
↓
X
📄 umisc.h
↓
X
📄 umsg.h
↓
X
📄 umutablecptrie.h
↓
X
📄 unifilt.h
↓
X
📄 unifunct.h
↓
X
📄 unimatch.h
↓
X
📄 unirepl.h
↓
X
📄 uniset.h
↓
X
📄 unistr.h
↓
X
📄 unorm.h
↓
X
📄 unorm2.h
↓
X
📄 unum.h
↓
X
📄 unumberformatter.h
↓
X
📄 unumsys.h
↓
X
📄 uobject.h
↓
X
📄 upluralrules.h
↓
X
📄 uregex.h
↓
X
📄 uregion.h
↓
X
📄 ureldatefmt.h
↓
X
📄 urename.h
↓
X
📄 urep.h
↓
X
📄 ures.h
↓
X
📄 uscript.h
↓
X
📄 usearch.h
↓
X
📄 uset.h
↓
X
📄 usetiter.h
↓
X
📄 ushape.h
↓
X
📄 uspoof.h
↓
X
📄 usprep.h
↓
X
📄 ustdio.h
↓
X
📄 ustream.h
↓
X
📄 ustring.h
↓
X
📄 ustringtrie.h
↓
X
📄 utext.h
↓
X
📄 utf.h
↓
X
📄 utf16.h
↓
X
📄 utf32.h
↓
X
📄 utf8.h
↓
X
📄 utf_old.h
↓
X
📄 utmscale.h
↓
X
📄 utrace.h
↓
X
📄 utrans.h
↓
X
📄 utypes.h
↓
X
📄 uvernum.h
↓
X
📄 uversion.h
↓
X
📄 vtzone.h
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: scientificnumberformatter.h
// © 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html /* ********************************************************************** * Copyright (c) 2014-2016, International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************** */ #ifndef SCINUMBERFORMATTER_H #define SCINUMBERFORMATTER_H #include "unicode/utypes.h" #if U_SHOW_CPLUSPLUS_API #if !UCONFIG_NO_FORMATTING #include "unicode/unistr.h" /** * \file * \brief C++ API: Formats in scientific notation. */ U_NAMESPACE_BEGIN class FieldPositionIterator; class DecimalFormatSymbols; class DecimalFormat; class Formattable; /** * A formatter that formats numbers in user-friendly scientific notation. * * Sample code: * <pre> * UErrorCode status = U_ZERO_ERROR; * LocalPointer<ScientificNumberFormatter> fmt( * ScientificNumberFormatter::createMarkupInstance( * "en", "<sup>", "</sup>", status)); * if (U_FAILURE(status)) { * return; * } * UnicodeString appendTo; * // appendTo = "1.23456x10<sup>-78</sup>" * fmt->format(1.23456e-78, appendTo, status); * </pre> * * @stable ICU 55 */ class U_I18N_API ScientificNumberFormatter : public UObject { public: /** * Creates a ScientificNumberFormatter instance that uses * superscript characters for exponents. * @param fmtToAdopt The DecimalFormat which must be configured for * scientific notation. * @param status error returned here. * @return The new ScientificNumberFormatter instance. * * @stable ICU 55 */ static ScientificNumberFormatter *createSuperscriptInstance( DecimalFormat *fmtToAdopt, UErrorCode &status); /** * Creates a ScientificNumberFormatter instance that uses * superscript characters for exponents for this locale. * @param locale The locale * @param status error returned here. * @return The ScientificNumberFormatter instance. * * @stable ICU 55 */ static ScientificNumberFormatter *createSuperscriptInstance( const Locale &locale, UErrorCode &status); /** * Creates a ScientificNumberFormatter instance that uses * markup for exponents. * @param fmtToAdopt The DecimalFormat which must be configured for * scientific notation. * @param beginMarkup the markup to start superscript. * @param endMarkup the markup to end superscript. * @param status error returned here. * @return The new ScientificNumberFormatter instance. * * @stable ICU 55 */ static ScientificNumberFormatter *createMarkupInstance( DecimalFormat *fmtToAdopt, const UnicodeString &beginMarkup, const UnicodeString &endMarkup, UErrorCode &status); /** * Creates a ScientificNumberFormatter instance that uses * markup for exponents for this locale. * @param locale The locale * @param beginMarkup the markup to start superscript. * @param endMarkup the markup to end superscript. * @param status error returned here. * @return The ScientificNumberFormatter instance. * * @stable ICU 55 */ static ScientificNumberFormatter *createMarkupInstance( const Locale &locale, const UnicodeString &beginMarkup, const UnicodeString &endMarkup, UErrorCode &status); /** * Returns a copy of this object. Caller must free returned copy. * @stable ICU 55 */ ScientificNumberFormatter *clone() const { return new ScientificNumberFormatter(*this); } /** * Destructor. * @stable ICU 55 */ virtual ~ScientificNumberFormatter(); /** * Formats a number into user friendly scientific notation. * * @param number the number to format. * @param appendTo formatted string appended here. * @param status any error returned here. * @return appendTo * * @stable ICU 55 */ UnicodeString &format( const Formattable &number, UnicodeString &appendTo, UErrorCode &status) const; private: class U_I18N_API Style : public UObject { public: virtual Style *clone() const = 0; protected: virtual UnicodeString &format( const UnicodeString &original, FieldPositionIterator &fpi, const UnicodeString &preExponent, UnicodeString &appendTo, UErrorCode &status) const = 0; private: friend class ScientificNumberFormatter; }; class U_I18N_API SuperscriptStyle : public Style { public: virtual SuperscriptStyle *clone() const; protected: virtual UnicodeString &format( const UnicodeString &original, FieldPositionIterator &fpi, const UnicodeString &preExponent, UnicodeString &appendTo, UErrorCode &status) const; }; class U_I18N_API MarkupStyle : public Style { public: MarkupStyle( const UnicodeString &beginMarkup, const UnicodeString &endMarkup) : Style(), fBeginMarkup(beginMarkup), fEndMarkup(endMarkup) { } virtual MarkupStyle *clone() const; protected: virtual UnicodeString &format( const UnicodeString &original, FieldPositionIterator &fpi, const UnicodeString &preExponent, UnicodeString &appendTo, UErrorCode &status) const; private: UnicodeString fBeginMarkup; UnicodeString fEndMarkup; }; ScientificNumberFormatter( DecimalFormat *fmtToAdopt, Style *styleToAdopt, UErrorCode &status); ScientificNumberFormatter(const ScientificNumberFormatter &other); ScientificNumberFormatter &operator=(const ScientificNumberFormatter &); static void getPreExponent( const DecimalFormatSymbols &dfs, UnicodeString &preExponent); static ScientificNumberFormatter *createInstance( DecimalFormat *fmtToAdopt, Style *styleToAdopt, UErrorCode &status); UnicodeString fPreExponent; DecimalFormat *fDecimalFormat; Style *fStyle; }; U_NAMESPACE_END #endif /* !UCONFIG_NO_FORMATTING */ #endif /* U_SHOW_CPLUSPLUS_API */ #endif
SIMPAN PERUBAHAN