PATH: //proc/thread-self/root/proc/self/root/proc/410583/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: upluralrules.h
// Β© 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html /* ***************************************************************************************** * Copyright (C) 2010-2013, International Business Machines * Corporation and others. All Rights Reserved. ***************************************************************************************** */ #ifndef UPLURALRULES_H #define UPLURALRULES_H #include "unicode/utypes.h" #if !UCONFIG_NO_FORMATTING #include "unicode/localpointer.h" #include "unicode/uenum.h" #ifndef U_HIDE_INTERNAL_API #include "unicode/unum.h" #endif /* U_HIDE_INTERNAL_API */ // Forward-declaration struct UFormattedNumber; /** * \file * \brief C API: Plural rules, select plural keywords for numeric values. * * A UPluralRules object defines rules for mapping non-negative numeric * values onto a small set of keywords. Rules are constructed from a text * description, consisting of a series of keywords and conditions. * The uplrules_select function examines each condition in order and * returns the keyword for the first condition that matches the number. * If none match, the default rule(other) is returned. * * For more information, see the LDML spec, C.11 Language Plural Rules: * http://www.unicode.org/reports/tr35/#Language_Plural_Rules * * Keywords: ICU locale data has 6 predefined values - * 'zero', 'one', 'two', 'few', 'many' and 'other'. Callers need to check * the value of keyword returned by the uplrules_select function. * * These are based on CLDR <i>Language Plural Rules</i>. For these * predefined rules, see the CLDR page at * http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html */ /** * Type of plurals and PluralRules. * @stable ICU 50 */ enum UPluralType { /** * Plural rules for cardinal numbers: 1 file vs. 2 files. * @stable ICU 50 */ UPLURAL_TYPE_CARDINAL, /** * Plural rules for ordinal numbers: 1st file, 2nd file, 3rd file, 4th file, etc. * @stable ICU 50 */ UPLURAL_TYPE_ORDINAL, #ifndef U_HIDE_DEPRECATED_API /** * One more than the highest normal UPluralType value. * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. */ UPLURAL_TYPE_COUNT #endif /* U_HIDE_DEPRECATED_API */ }; /** * @stable ICU 50 */ typedef enum UPluralType UPluralType; /** * Opaque UPluralRules object for use in C programs. * @stable ICU 4.8 */ struct UPluralRules; typedef struct UPluralRules UPluralRules; /**< C typedef for struct UPluralRules. @stable ICU 4.8 */ /** * Opens a new UPluralRules object using the predefined cardinal-number plural rules for a * given locale. * Same as uplrules_openForType(locale, UPLURAL_TYPE_CARDINAL, status). * @param locale The locale for which the rules are desired. * @param status A pointer to a UErrorCode to receive any errors. * @return A UPluralRules for the specified locale, or NULL if an error occurred. * @stable ICU 4.8 */ U_CAPI UPluralRules* U_EXPORT2 uplrules_open(const char *locale, UErrorCode *status); /** * Opens a new UPluralRules object using the predefined plural rules for a * given locale and the plural type. * @param locale The locale for which the rules are desired. * @param type The plural type (e.g., cardinal or ordinal). * @param status A pointer to a UErrorCode to receive any errors. * @return A UPluralRules for the specified locale, or NULL if an error occurred. * @stable ICU 50 */ U_CAPI UPluralRules* U_EXPORT2 uplrules_openForType(const char *locale, UPluralType type, UErrorCode *status); /** * Closes a UPluralRules object. Once closed it may no longer be used. * @param uplrules The UPluralRules object to close. * @stable ICU 4.8 */ U_CAPI void U_EXPORT2 uplrules_close(UPluralRules *uplrules); #if U_SHOW_CPLUSPLUS_API U_NAMESPACE_BEGIN /** * \class LocalUPluralRulesPointer * "Smart pointer" class, closes a UPluralRules via uplrules_close(). * For most methods see the LocalPointerBase base class. * * @see LocalPointerBase * @see LocalPointer * @stable ICU 4.8 */ U_DEFINE_LOCAL_OPEN_POINTER(LocalUPluralRulesPointer, UPluralRules, uplrules_close); U_NAMESPACE_END #endif /** * Given a floating-point number, returns the keyword of the first rule that * applies to the number, according to the supplied UPluralRules object. * @param uplrules The UPluralRules object specifying the rules. * @param number The number for which the rule has to be determined. * @param keyword An output buffer to write the keyword of the rule that * applies to number. * @param capacity The capacity of the keyword buffer. * @param status A pointer to a UErrorCode to receive any errors. * @return The length of the keyword. * @stable ICU 4.8 */ U_CAPI int32_t U_EXPORT2 uplrules_select(const UPluralRules *uplrules, double number, UChar *keyword, int32_t capacity, UErrorCode *status); /** * Given a formatted number, returns the keyword of the first rule * that applies to the number, according to the supplied UPluralRules object. * * A UFormattedNumber allows you to specify an exponent or trailing zeros, * which can affect the plural category. To get a UFormattedNumber, see * {@link UNumberFormatter}. * * @param uplrules The UPluralRules object specifying the rules. * @param number The formatted number for which the rule has to be determined. * @param keyword The destination buffer for the keyword of the rule that * applies to number. * @param capacity The capacity of the keyword buffer. * @param status A pointer to a UErrorCode to receive any errors. * @return The length of the keyword. * @stable ICU 64 */ U_CAPI int32_t U_EXPORT2 uplrules_selectFormatted(const UPluralRules *uplrules, const struct UFormattedNumber* number, UChar *keyword, int32_t capacity, UErrorCode *status); #ifndef U_HIDE_INTERNAL_API /** * Given a number, returns the keyword of the first rule that applies to the * number, according to the UPluralRules object and given the number format * specified by the UNumberFormat object. * Note: This internal preview interface may be removed in the future if * an architecturally cleaner solution reaches stable status. * @param uplrules The UPluralRules object specifying the rules. * @param number The number for which the rule has to be determined. * @param fmt The UNumberFormat specifying how the number will be formatted * (this can affect the plural form, e.g. "1 dollar" vs "1.0 dollars"). * If this is NULL, the function behaves like uplrules_select. * @param keyword An output buffer to write the keyword of the rule that * applies to number. * @param capacity The capacity of the keyword buffer. * @param status A pointer to a UErrorCode to receive any errors. * @return The length of keyword. * @internal ICU 59 technology preview, may be removed in the future */ U_INTERNAL int32_t U_EXPORT2 uplrules_selectWithFormat(const UPluralRules *uplrules, double number, const UNumberFormat *fmt, UChar *keyword, int32_t capacity, UErrorCode *status); #endif /* U_HIDE_INTERNAL_API */ /** * Creates a string enumeration of all plural rule keywords used in this * UPluralRules object. The rule "other" is always present by default. * @param uplrules The UPluralRules object specifying the rules for * a given locale. * @param status A pointer to a UErrorCode to receive any errors. * @return a string enumeration over plural rule keywords, or NULL * upon error. The caller is responsible for closing the result. * @stable ICU 59 */ U_STABLE UEnumeration* U_EXPORT2 uplrules_getKeywords(const UPluralRules *uplrules, UErrorCode *status); #endif /* #if !UCONFIG_NO_FORMATTING */ #endif
SIMPAN PERUBAHAN