Linux server.kiran-academy.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
: 194.233.91.196 | : 216.73.216.172
Cant Read [ /etc/named.conf ]
7.4.32
finalho
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
include /
unicode /
[ HOME SHELL ]
Name
Size
Permission
Action
alphaindex.h
25.29
KB
-rw-r--r--
appendable.h
8.38
KB
-rw-r--r--
basictz.h
8.77
KB
-rw-r--r--
bms.h
8.68
KB
-rw-r--r--
bmsearch.h
7.33
KB
-rw-r--r--
brkiter.h
24.24
KB
-rw-r--r--
bytestream.h
9.16
KB
-rw-r--r--
bytestrie.h
19.19
KB
-rw-r--r--
bytestriebuilder.h
6.73
KB
-rw-r--r--
calendar.h
102.76
KB
-rw-r--r--
caniter.h
7.23
KB
-rw-r--r--
chariter.h
23.71
KB
-rw-r--r--
choicfmt.h
27.82
KB
-rw-r--r--
coleitr.h
12.69
KB
-rw-r--r--
coll.h
53.44
KB
-rw-r--r--
colldata.h
12.42
KB
-rw-r--r--
curramt.h
3.57
KB
-rw-r--r--
currpinf.h
6.93
KB
-rw-r--r--
currunit.h
2.99
KB
-rw-r--r--
datefmt.h
33.67
KB
-rw-r--r--
dbbi.h
966
B
-rw-r--r--
dcfmtsym.h
14.91
KB
-rw-r--r--
decimfmt.h
97.38
KB
-rw-r--r--
docmain.h
6.28
KB
-rw-r--r--
dtfmtsym.h
30.27
KB
-rw-r--r--
dtintrv.h
3.65
KB
-rw-r--r--
dtitvfmt.h
39.24
KB
-rw-r--r--
dtitvinf.h
18.56
KB
-rw-r--r--
dtptngen.h
19.54
KB
-rw-r--r--
dtrule.h
8.51
KB
-rw-r--r--
enumset.h
1.8
KB
-rw-r--r--
errorcode.h
4.67
KB
-rw-r--r--
fieldpos.h
8.51
KB
-rw-r--r--
fmtable.h
22.09
KB
-rw-r--r--
format.h
12.33
KB
-rw-r--r--
fpositer.h
2.97
KB
-rw-r--r--
gender.h
3.02
KB
-rw-r--r--
gregocal.h
33.28
KB
-rw-r--r--
icudataver.h
990
B
-rw-r--r--
icuplug.h
11.49
KB
-rw-r--r--
idna.h
12.68
KB
-rw-r--r--
listformatter.h
3.97
KB
-rw-r--r--
localpointer.h
9.13
KB
-rw-r--r--
locdspnm.h
7.14
KB
-rw-r--r--
locid.h
30.48
KB
-rw-r--r--
measfmt.h
1.94
KB
-rw-r--r--
measunit.h
1.6
KB
-rw-r--r--
measure.h
3.24
KB
-rw-r--r--
messagepattern.h
33.6
KB
-rw-r--r--
msgfmt.h
43.59
KB
-rw-r--r--
normalizer2.h
28.34
KB
-rw-r--r--
normlzr.h
29.26
KB
-rw-r--r--
numfmt.h
43.59
KB
-rw-r--r--
numsys.h
5.37
KB
-rw-r--r--
parseerr.h
2.97
KB
-rw-r--r--
parsepos.h
5.34
KB
-rw-r--r--
platform.h
24.23
KB
-rw-r--r--
plurfmt.h
24.58
KB
-rw-r--r--
plurrule.h
14.56
KB
-rw-r--r--
ptypes.h
3.36
KB
-rw-r--r--
putil.h
5.61
KB
-rw-r--r--
rbbi.h
29.15
KB
-rw-r--r--
rbnf.h
45.32
KB
-rw-r--r--
rbtz.h
15.33
KB
-rw-r--r--
regex.h
83.1
KB
-rw-r--r--
rep.h
9.33
KB
-rw-r--r--
resbund.h
17.89
KB
-rw-r--r--
schriter.h
6.15
KB
-rw-r--r--
search.h
22.1
KB
-rw-r--r--
selfmt.h
14.13
KB
-rw-r--r--
simpletz.h
45.1
KB
-rw-r--r--
smpdtfmt.h
57.58
KB
-rw-r--r--
sortkey.h
10.98
KB
-rw-r--r--
std_string.h
783
B
-rw-r--r--
strenum.h
9.92
KB
-rw-r--r--
stringpiece.h
6.38
KB
-rw-r--r--
stringtriebuilder.h
14.75
KB
-rw-r--r--
stsearch.h
21.76
KB
-rw-r--r--
symtable.h
4.1
KB
-rw-r--r--
tblcoll.h
34.23
KB
-rw-r--r--
timezone.h
37.28
KB
-rw-r--r--
tmunit.h
3.39
KB
-rw-r--r--
tmutamt.h
4.69
KB
-rw-r--r--
tmutfmt.h
8.51
KB
-rw-r--r--
translit.h
53.76
KB
-rw-r--r--
tzfmt.h
32.06
KB
-rw-r--r--
tznames.h
14.83
KB
-rw-r--r--
tzrule.h
35.21
KB
-rw-r--r--
tztrans.h
5.96
KB
-rw-r--r--
ubidi.h
88.57
KB
-rw-r--r--
ubrk.h
19.13
KB
-rw-r--r--
ucal.h
50.49
KB
-rw-r--r--
ucasemap.h
16.45
KB
-rw-r--r--
ucat.h
5.25
KB
-rw-r--r--
uchar.h
115.43
KB
-rw-r--r--
ucharstrie.h
20.8
KB
-rw-r--r--
ucharstriebuilder.h
6.83
KB
-rw-r--r--
uchriter.h
12.82
KB
-rw-r--r--
uclean.h
10.38
KB
-rw-r--r--
ucnv.h
82.6
KB
-rw-r--r--
ucnv_cb.h
6.48
KB
-rw-r--r--
ucnv_err.h
20.87
KB
-rw-r--r--
ucnvsel.h
6.03
KB
-rw-r--r--
ucol.h
57.93
KB
-rw-r--r--
ucoleitr.h
12.25
KB
-rw-r--r--
uconfig.h
10.79
KB
-rw-r--r--
ucsdet.h
12.6
KB
-rw-r--r--
ucurr.h
12.96
KB
-rw-r--r--
udat.h
46.47
KB
-rw-r--r--
udata.h
14.81
KB
-rw-r--r--
udateintervalformat.h
6.5
KB
-rw-r--r--
udatpg.h
23.24
KB
-rw-r--r--
udisplaycontext.h
4.34
KB
-rw-r--r--
uenum.h
7.79
KB
-rw-r--r--
ugender.h
1.85
KB
-rw-r--r--
uidna.h
32.81
KB
-rw-r--r--
uiter.h
22.67
KB
-rw-r--r--
uldnames.h
10.5
KB
-rw-r--r--
uloc.h
44.07
KB
-rw-r--r--
ulocdata.h
10.37
KB
-rw-r--r--
umachine.h
10.23
KB
-rw-r--r--
umisc.h
1.23
KB
-rw-r--r--
umsg.h
24.12
KB
-rw-r--r--
unifilt.h
3.52
KB
-rw-r--r--
unifunct.h
3.87
KB
-rw-r--r--
unimatch.h
5.93
KB
-rw-r--r--
unirepl.h
3.21
KB
-rw-r--r--
uniset.h
63.07
KB
-rw-r--r--
unistr.h
164.33
KB
-rw-r--r--
unorm.h
22.89
KB
-rw-r--r--
unorm2.h
21.91
KB
-rw-r--r--
unum.h
39.21
KB
-rw-r--r--
uobject.h
12.21
KB
-rw-r--r--
upluralrules.h
4.47
KB
-rw-r--r--
uregex.h
71.47
KB
-rw-r--r--
urename.h
120.88
KB
-rw-r--r--
urep.h
5.27
KB
-rw-r--r--
ures.h
35.92
KB
-rw-r--r--
uscript.h
20.46
KB
-rw-r--r--
usearch.h
36.09
KB
-rw-r--r--
uset.h
39.45
KB
-rw-r--r--
usetiter.h
9.38
KB
-rw-r--r--
ushape.h
17.89
KB
-rw-r--r--
uspoof.h
38.91
KB
-rw-r--r--
usprep.h
8.02
KB
-rw-r--r--
ustdio.h
37.05
KB
-rw-r--r--
ustream.h
1.6
KB
-rw-r--r--
ustring.h
73.01
KB
-rw-r--r--
ustringtrie.h
3.04
KB
-rw-r--r--
utext.h
57.97
KB
-rw-r--r--
utf.h
7.64
KB
-rw-r--r--
utf16.h
18.24
KB
-rw-r--r--
utf32.h
653
B
-rw-r--r--
utf8.h
23.02
KB
-rw-r--r--
utf_old.h
42.5
KB
-rw-r--r--
utmscale.h
13.37
KB
-rw-r--r--
utrace.h
13.09
KB
-rw-r--r--
utrans.h
23.08
KB
-rw-r--r--
utypes.h
30.72
KB
-rw-r--r--
uvernum.h
5.53
KB
-rw-r--r--
uversion.h
6.29
KB
-rw-r--r--
vtzone.h
20.09
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : plurrule.h
/* ******************************************************************************* * Copyright (C) 2008-2012, International Business Machines Corporation and * others. All Rights Reserved. ******************************************************************************* * * * File PLURRULE.H * * Modification History:* * Date Name Description * ******************************************************************************** */ #ifndef PLURRULE #define PLURRULE #include "unicode/utypes.h" /** * \file * \brief C++ API: PluralRules object */ #if !UCONFIG_NO_FORMATTING #include "unicode/format.h" #include "unicode/upluralrules.h" /** * Value returned by PluralRules::getUniqueKeywordValue() when there is no * unique value to return. * @stable ICU 4.8 */ #define UPLRULES_NO_UNIQUE_VALUE ((double)-0.00123456777) U_NAMESPACE_BEGIN class Hashtable; class RuleChain; class RuleParser; class PluralKeywordEnumeration; /** * 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 {@link #select} method * examines each condition in order and returns the keyword for the * first condition that matches the number. If none match, * default rule(other) is returned. * * For more information, details, and tips for writing rules, see the * LDML spec, C.11 Language Plural Rules: * http://www.unicode.org/draft/reports/tr35/tr35.html#Language_Plural_Rules * * Examples:<pre> * "one: n is 1; few: n in 2..4"</pre> * This defines two rules, for 'one' and 'few'. The condition for * 'one' is "n is 1" which means that the number must be equal to * 1 for this condition to pass. The condition for 'few' is * "n in 2..4" which means that the number must be between 2 and * 4 inclusive for this condition to pass. All other numbers * are assigned the keyword "other" by the default rule. * </p><pre> * "zero: n is 0; one: n is 1; zero: n mod 100 in 1..19"</pre> * This illustrates that the same keyword can be defined multiple times. * Each rule is examined in order, and the first keyword whose condition * passes is the one returned. Also notes that a modulus is applied * to n in the last rule. Thus its condition holds for 119, 219, 319... * </p><pre> * "one: n is 1; few: n mod 10 in 2..4 and n mod 100 not in 12..14"</pre> * This illustrates conjunction and negation. The condition for 'few' * has two parts, both of which must be met: "n mod 10 in 2..4" and * "n mod 100 not in 12..14". The first part applies a modulus to n * before the test as in the previous example. The second part applies * a different modulus and also uses negation, thus it matches all * numbers _not_ in 12, 13, 14, 112, 113, 114, 212, 213, 214... * </p> * <p> * Syntax:<pre> * \code * rules = rule (';' rule)* * rule = keyword ':' condition * keyword = <identifier> * condition = and_condition ('or' and_condition)* * and_condition = relation ('and' relation)* * relation = is_relation | in_relation | within_relation | 'n' <EOL> * is_relation = expr 'is' ('not')? value * in_relation = expr ('not')? 'in' range_list * within_relation = expr ('not')? 'within' range * expr = 'n' ('mod' value)? * range_list = (range | value) (',' range_list)* * value = digit+ * digit = 0|1|2|3|4|5|6|7|8|9 * range = value'..'value * \endcode * </pre></p> * <p> * An "identifier" is a sequence of characters that do not have the * Unicode Pattern_Syntax or Pattern_White_Space properties. * <p> * The difference between 'in' and 'within' is that 'in' only includes * integers in the specified range, while 'within' includes all values.</p> * <p> * Keywords * could be defined by users or from ICU locale data. There are 6 * predefined values in ICU - 'zero', 'one', 'two', 'few', 'many' and * 'other'. Callers need to check the value of keyword returned by * {@link #select} method. * </p> * * Examples:<pre> * UnicodeString keyword = pl->select(number); * if (keyword== UnicodeString("one") { * ... * } * else if ( ... ) * </pre> * <strong>Note:</strong><br> * <p> * ICU defines plural rules for many locales based on CLDR <i>Language Plural Rules</i>. * For these predefined rules, see CLDR page at * http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html * </p> */ class U_I18N_API PluralRules : public UObject { public: /** * Constructor. * @param status Output param set to success/failure code on exit, which * must not indicate a failure before the function call. * * @stable ICU 4.0 */ PluralRules(UErrorCode& status); /** * Copy constructor. * @stable ICU 4.0 */ PluralRules(const PluralRules& other); /** * Destructor. * @stable ICU 4.0 */ virtual ~PluralRules(); /** * Clone * @stable ICU 4.0 */ PluralRules* clone() const; /** * Assignment operator. * @stable ICU 4.0 */ PluralRules& operator=(const PluralRules&); /** * Creates a PluralRules from a description if it is parsable, otherwise * returns NULL. * * @param description rule description * @param status Output param set to success/failure code on exit, which * must not indicate a failure before the function call. * @return new PluralRules pointer. NULL if there is an error. * @stable ICU 4.0 */ static PluralRules* U_EXPORT2 createRules(const UnicodeString& description, UErrorCode& status); /** * The default rules that accept any number. * * @param status Output param set to success/failure code on exit, which * must not indicate a failure before the function call. * @return new PluralRules pointer. NULL if there is an error. * @stable ICU 4.0 */ static PluralRules* U_EXPORT2 createDefaultRules(UErrorCode& status); /** * Provides access to the predefined cardinal-number <code>PluralRules</code> for a given * locale. * Same as forLocale(locale, UPLURAL_TYPE_CARDINAL, status). * * @param locale The locale for which a <code>PluralRules</code> object is * returned. * @param status Output param set to success/failure code on exit, which * must not indicate a failure before the function call. * @return The predefined <code>PluralRules</code> object pointer for * this locale. If there's no predefined rules for this locale, * the rules for the closest parent in the locale hierarchy * that has one will be returned. The final fallback always * returns the default 'other' rules. * @stable ICU 4.0 */ static PluralRules* U_EXPORT2 forLocale(const Locale& locale, UErrorCode& status); /** * Provides access to the predefined <code>PluralRules</code> for a given * locale and the plural type. * * @param locale The locale for which a <code>PluralRules</code> object is * returned. * @param type The plural type (e.g., cardinal or ordinal). * @param status Output param set to success/failure code on exit, which * must not indicate a failure before the function call. * @return The predefined <code>PluralRules</code> object pointer for * this locale. If there's no predefined rules for this locale, * the rules for the closest parent in the locale hierarchy * that has one will be returned. The final fallback always * returns the default 'other' rules. * @draft ICU 50 */ static PluralRules* U_EXPORT2 forLocale(const Locale& locale, UPluralType type, UErrorCode& status); /** * Given a number, returns the keyword of the first rule that applies to * the number. This function can be used with isKeyword* functions to * determine the keyword for default plural rules. * * @param number The number for which the rule has to be determined. * @return The keyword of the selected rule. * @stable ICU 4.0 */ UnicodeString select(int32_t number) const; /** * Given a number, returns the keyword of the first rule that applies to * the number. This function can be used with isKeyword* functions to * determine the keyword for default plural rules. * * @param number The number for which the rule has to be determined. * @return The keyword of the selected rule. * @stable ICU 4.0 */ UnicodeString select(double number) const; /** * Returns a list of all rule keywords used in this <code>PluralRules</code> * object. The rule 'other' is always present by default. * * @param status Output param set to success/failure code on exit, which * must not indicate a failure before the function call. * @return StringEnumeration with the keywords. * The caller must delete the object. * @stable ICU 4.0 */ StringEnumeration* getKeywords(UErrorCode& status) const; /** * Returns a unique value for this keyword if it exists, else the constant * UPLRULES_NO_UNIQUE_VALUE. * * @param keyword The keyword. * @return The unique value that generates the keyword, or * UPLRULES_NO_UNIQUE_VALUE if the keyword is undefined or there is no * unique value that generates this keyword. * @stable ICU 4.8 */ double getUniqueKeywordValue(const UnicodeString& keyword); /** * Returns all the values for which select() would return the keyword. If * the keyword is unknown, returns no values, but this is not an error. If * the number of values is unlimited, returns no values and -1 as the * count. * * The number of returned values is typically small. * * @param keyword The keyword. * @param dest Array into which to put the returned values. May * be NULL if destCapacity is 0. * @param destCapacity The capacity of the array, must be at least 0. * @param status The error code. * @return The count of values available, or -1. This count * can be larger than destCapacity, but no more than * destCapacity values will be written. * @stable ICU 4.8 */ int32_t getAllKeywordValues(const UnicodeString &keyword, double *dest, int32_t destCapacity, UErrorCode& status); /** * Returns sample values for which select() would return the keyword. If * the keyword is unknown, returns no values, but this is not an error. * * The number of returned values is typically small. * * @param keyword The keyword. * @param dest Array into which to put the returned values. May * be NULL if destCapacity is 0. * @param destCapacity The capacity of the array, must be at least 0. * @param status The error code. * @return The count of values written. * If more than destCapacity samples are available, then * only destCapacity are written, and destCapacity is returned as the count, * rather than setting a U_BUFFER_OVERFLOW_ERROR. * (The actual number of keyword values could be unlimited.) * @stable ICU 4.8 */ int32_t getSamples(const UnicodeString &keyword, double *dest, int32_t destCapacity, UErrorCode& status); /** * Returns TRUE if the given keyword is defined in this * <code>PluralRules</code> object. * * @param keyword the input keyword. * @return TRUE if the input keyword is defined. * Otherwise, return FALSE. * @stable ICU 4.0 */ UBool isKeyword(const UnicodeString& keyword) const; /** * Returns keyword for default plural form. * * @return keyword for default plural form. * @stable ICU 4.0 */ UnicodeString getKeywordOther() const; /** * Compares the equality of two PluralRules objects. * * @param other The other PluralRules object to be compared with. * @return True if the given PluralRules is the same as this * PluralRules; false otherwise. * @stable ICU 4.0 */ virtual UBool operator==(const PluralRules& other) const; /** * Compares the inequality of two PluralRules objects. * * @param other The PluralRules object to be compared with. * @return True if the given PluralRules is not the same as this * PluralRules; false otherwise. * @stable ICU 4.0 */ UBool operator!=(const PluralRules& other) const {return !operator==(other);} /** * ICU "poor man's RTTI", returns a UClassID for this class. * * @stable ICU 4.0 * */ static UClassID U_EXPORT2 getStaticClassID(void); /** * ICU "poor man's RTTI", returns a UClassID for the actual class. * * @stable ICU 4.0 */ virtual UClassID getDynamicClassID() const; private: RuleChain *mRules; RuleParser *mParser; double *mSamples; int32_t *mSampleInfo; int32_t mSampleInfoCount; PluralRules(); // default constructor not implemented int32_t getRepeatLimit() const; void parseDescription(UnicodeString& ruleData, RuleChain& rules, UErrorCode &status); void getNextLocale(const UnicodeString& localeData, int32_t* curIndex, UnicodeString& localeName); void addRules(RuleChain& rules); int32_t getNumberValue(const UnicodeString& token) const; UnicodeString getRuleFromResource(const Locale& locale, UPluralType type, UErrorCode& status); static const int32_t MAX_SAMPLES = 3; int32_t getSamplesInternal(const UnicodeString &keyword, double *dest, int32_t destCapacity, UBool includeUnlimited, UErrorCode& status); int32_t getKeywordIndex(const UnicodeString& keyword, UErrorCode& status) const; void initSamples(UErrorCode& status); }; U_NAMESPACE_END #endif /* #if !UCONFIG_NO_FORMATTING */ #endif // _PLURRULE //eof
Close