PATH: //proc/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: fieldpos.h
// © 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html /* ******************************************************************************** * Copyright (C) 1997-2006, International Business Machines * Corporation and others. All Rights Reserved. ******************************************************************************** * * File FIELDPOS.H * * Modification History: * * Date Name Description * 02/25/97 aliu Converted from java. * 03/17/97 clhuang Updated per Format implementation. * 07/17/98 stephen Added default/copy ctors, and operators =, ==, != ******************************************************************************** */ // ***************************************************************************** // This file was generated from the java source file FieldPosition.java // ***************************************************************************** #ifndef FIELDPOS_H #define FIELDPOS_H #include "unicode/utypes.h" #if U_SHOW_CPLUSPLUS_API /** * \file * \brief C++ API: FieldPosition identifies the fields in a formatted output. */ #if !UCONFIG_NO_FORMATTING #include "unicode/uobject.h" U_NAMESPACE_BEGIN /** * <code>FieldPosition</code> is a simple class used by <code>Format</code> * and its subclasses to identify fields in formatted output. Fields are * identified by constants, whose names typically end with <code>_FIELD</code>, * defined in the various subclasses of <code>Format</code>. See * <code>ERA_FIELD</code> and its friends in <code>DateFormat</code> for * an example. * * <p> * <code>FieldPosition</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> * One version of the <code>format</code> method in the various * <code>Format</code> classes requires a <code>FieldPosition</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). * * The FieldPosition class is not intended for public subclassing. * * <p> * Below is an example of using <code>FieldPosition</code> to aid * alignment of an array of formatted floating-point numbers on * their decimal points: * <pre> * \code * double doubleNum[] = {123456789.0, -12345678.9, 1234567.89, -123456.789, * 12345.6789, -1234.56789, 123.456789, -12.3456789, 1.23456789}; * int dNumSize = (int)(sizeof(doubleNum)/sizeof(double)); * * UErrorCode status = U_ZERO_ERROR; * DecimalFormat* fmt = (DecimalFormat*) NumberFormat::createInstance(status); * fmt->setDecimalSeparatorAlwaysShown(true); * * const int tempLen = 20; * char temp[tempLen]; * * for (int i=0; i<dNumSize; i++) { * FieldPosition pos(NumberFormat::INTEGER_FIELD); * UnicodeString buf; * char fmtText[tempLen]; * ToCharString(fmt->format(doubleNum[i], buf, pos), fmtText); * for (int j=0; j<tempLen; j++) temp[j] = ' '; // clear with spaces * temp[__min(tempLen, tempLen-pos.getEndIndex())] = '\0'; * cout << temp << fmtText << endl; * } * delete fmt; * \endcode * </pre> * <p> * The code will generate the following output: * <pre> * \code * 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 * \endcode * </pre> */ class U_I18N_API FieldPosition : public UObject { public: /** * DONT_CARE may be specified as the field to indicate that the * caller doesn't need to specify a field. * @stable ICU 2.0 */ enum { DONT_CARE = -1 }; /** * Creates a FieldPosition object with a non-specified field. * @stable ICU 2.0 */ FieldPosition() : UObject(), fField(DONT_CARE), fBeginIndex(0), fEndIndex(0) {} /** * Creates a FieldPosition object for the given field. Fields are * identified by constants, whose names typically end with _FIELD, * in the various subclasses of Format. * * @see NumberFormat#INTEGER_FIELD * @see NumberFormat#FRACTION_FIELD * @see DateFormat#YEAR_FIELD * @see DateFormat#MONTH_FIELD * @stable ICU 2.0 */ FieldPosition(int32_t field) : UObject(), fField(field), fBeginIndex(0), fEndIndex(0) {} /** * Copy constructor * @param copy the object to be copied from. * @stable ICU 2.0 */ FieldPosition(const FieldPosition& copy) : UObject(copy), fField(copy.fField), fBeginIndex(copy.fBeginIndex), fEndIndex(copy.fEndIndex) {} /** * Destructor * @stable ICU 2.0 */ virtual ~FieldPosition(); /** * Assignment operator * @param copy the object to be copied from. * @stable ICU 2.0 */ FieldPosition& operator=(const FieldPosition& copy); /** * Equality operator. * @param that the object to be compared with. * @return TRUE if the two field positions are equal, FALSE otherwise. * @stable ICU 2.0 */ UBool operator==(const FieldPosition& that) const; /** * Equality operator. * @param that the object to be compared with. * @return TRUE if the two field positions are not equal, FALSE otherwise. * @stable ICU 2.0 */ UBool operator!=(const FieldPosition& that) const; /** * Clone this object. * Clones can be used concurrently in multiple threads. * If an error occurs, then NULL is returned. * The caller must delete the clone. * * @return a clone of this object * * @see getDynamicClassID * @stable ICU 2.8 */ FieldPosition *clone() const; /** * Retrieve the field identifier. * @return the field identifier. * @stable ICU 2.0 */ int32_t getField(void) const { return fField; } /** * Retrieve the index of the first character in the requested field. * @return the index of the first character in the requested field. * @stable ICU 2.0 */ int32_t getBeginIndex(void) const { return fBeginIndex; } /** * Retrieve the index of the character following the last character in the * requested field. * @return the index of the character following the last character in the * requested field. * @stable ICU 2.0 */ int32_t getEndIndex(void) const { return fEndIndex; } /** * Set the field. * @param f the new value of the field. * @stable ICU 2.0 */ void setField(int32_t f) { fField = f; } /** * Set the begin index. For use by subclasses of Format. * @param bi the new value of the begin index * @stable ICU 2.0 */ void setBeginIndex(int32_t bi) { fBeginIndex = bi; } /** * Set the end index. For use by subclasses of Format. * @param ei the new value of the end index * @stable ICU 2.0 */ void setEndIndex(int32_t ei) { fEndIndex = ei; } /** * ICU "poor man's RTTI", returns a UClassID for the actual class. * * @stable ICU 2.2 */ virtual UClassID getDynamicClassID() const; /** * ICU "poor man's RTTI", returns a UClassID for this class. * * @stable ICU 2.2 */ static UClassID U_EXPORT2 getStaticClassID(); private: /** * Input: Desired field to determine start and end offsets for. * The meaning depends on the subclass of Format. */ int32_t fField; /** * Output: Start offset of field in text. * If the field does not occur in the text, 0 is returned. */ int32_t fBeginIndex; /** * Output: End offset of field in text. * If the field does not occur in the text, 0 is returned. */ int32_t fEndIndex; }; inline FieldPosition& FieldPosition::operator=(const FieldPosition& copy) { fField = copy.fField; fEndIndex = copy.fEndIndex; fBeginIndex = copy.fBeginIndex; return *this; } inline UBool FieldPosition::operator==(const FieldPosition& copy) const { return (fField == copy.fField && fEndIndex == copy.fEndIndex && fBeginIndex == copy.fBeginIndex); } inline UBool FieldPosition::operator!=(const FieldPosition& copy) const { return !operator==(copy); } U_NAMESPACE_END #endif /* #if !UCONFIG_NO_FORMATTING */ #endif /* U_SHOW_CPLUSPLUS_API */ #endif // _FIELDPOS //eof
SIMPAN PERUBAHAN