Current Path: > > opt > alt > libicu65 > usr > > include > > unicode
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
alphaindex.h | File | 27118 bytes | February 08 2022 16:22:58. | |
appendable.h | File | 8694 bytes | February 08 2022 16:22:58. | |
basictz.h | File | 9365 bytes | February 08 2022 16:22:58. | |
brkiter.h | File | 28464 bytes | February 08 2022 16:22:58. | |
bytestream.h | File | 9829 bytes | February 08 2022 16:22:58. | |
bytestrie.h | File | 21266 bytes | February 08 2022 16:22:58. | |
bytestriebuilder.h | File | 7248 bytes | February 08 2022 16:22:58. | |
calendar.h | File | 108278 bytes | February 08 2022 16:22:58. | |
caniter.h | File | 7611 bytes | February 08 2022 16:22:58. | |
casemap.h | File | 25933 bytes | February 08 2022 16:22:58. | |
char16ptr.h | File | 7393 bytes | February 08 2022 16:22:58. | |
chariter.h | File | 24632 bytes | February 08 2022 16:22:58. | |
choicfmt.h | File | 24482 bytes | February 08 2022 16:22:58. | |
coleitr.h | File | 14094 bytes | February 08 2022 16:22:58. | |
coll.h | File | 57581 bytes | February 08 2022 16:22:58. | |
compactdecimalformat.h | File | 7047 bytes | February 08 2022 16:22:58. | |
curramt.h | File | 3851 bytes | February 08 2022 16:22:58. | |
currpinf.h | File | 7473 bytes | February 08 2022 16:22:58. | |
currunit.h | File | 4149 bytes | February 08 2022 16:22:58. | |
datefmt.h | File | 41641 bytes | February 08 2022 16:22:58. | |
dbbi.h | File | 1223 bytes | February 08 2022 16:22:58. | |
dcfmtsym.h | File | 20611 bytes | February 08 2022 16:22:59. | |
decimfmt.h | File | 89480 bytes | February 08 2022 16:22:59. | |
docmain.h | File | 7142 bytes | February 08 2022 16:22:58. | |
dtfmtsym.h | File | 38609 bytes | February 08 2022 16:22:59. | |
dtintrv.h | File | 3930 bytes | February 08 2022 16:22:58. | |
dtitvfmt.h | File | 47745 bytes | February 08 2022 16:22:59. | |
dtitvinf.h | File | 18959 bytes | February 08 2022 16:22:59. | |
dtptngen.h | File | 25684 bytes | February 08 2022 16:22:59. | |
dtrule.h | File | 8888 bytes | February 08 2022 16:22:59. | |
edits.h | File | 21237 bytes | February 08 2022 16:22:58. | |
enumset.h | File | 2130 bytes | February 08 2022 16:22:58. | |
errorcode.h | File | 4956 bytes | February 08 2022 16:22:58. | |
fieldpos.h | File | 8899 bytes | February 08 2022 16:22:59. | |
filteredbrk.h | File | 5501 bytes | February 08 2022 16:22:58. | |
fmtable.h | File | 25007 bytes | February 08 2022 16:22:59. | |
format.h | File | 12802 bytes | February 08 2022 16:22:59. | |
formattedvalue.h | File | 10521 bytes | February 08 2022 16:22:59. | |
fpositer.h | File | 3109 bytes | February 08 2022 16:22:59. | |
gender.h | File | 3408 bytes | February 08 2022 16:22:59. | |
gregocal.h | File | 32472 bytes | February 08 2022 16:22:59. | |
icudataver.h | File | 1051 bytes | February 08 2022 16:22:58. | |
icuplug.h | File | 12166 bytes | February 08 2022 16:22:58. | |
idna.h | File | 13000 bytes | February 08 2022 16:22:58. | |
listformatter.h | File | 9701 bytes | February 08 2022 16:22:59. | |
localebuilder.h | File | 11540 bytes | February 08 2022 16:22:58. | |
localematcher.h | File | 23043 bytes | February 08 2022 16:22:58. | |
localpointer.h | File | 20159 bytes | February 08 2022 16:22:58. | |
locdspnm.h | File | 7292 bytes | February 08 2022 16:22:58. | |
locid.h | File | 48536 bytes | February 08 2022 16:22:58. | |
measfmt.h | File | 11603 bytes | February 08 2022 16:22:59. | |
measunit.h | File | 95554 bytes | February 08 2022 16:22:59. | |
measure.h | File | 4423 bytes | February 08 2022 16:22:59. | |
messagepattern.h | File | 34521 bytes | February 08 2022 16:22:58. | |
msgfmt.h | File | 45168 bytes | February 08 2022 16:22:59. | |
normalizer2.h | File | 34851 bytes | February 08 2022 16:22:58. | |
normlzr.h | File | 31682 bytes | February 08 2022 16:22:58. | |
nounit.h | File | 2754 bytes | February 08 2022 16:22:59. | |
numberformatter.h | File | 88383 bytes | February 08 2022 16:22:59. | |
numberrangeformatter.h | File | 30865 bytes | February 08 2022 16:22:59. | |
numfmt.h | File | 51001 bytes | February 08 2022 16:22:59. | |
numsys.h | File | 7364 bytes | February 08 2022 16:22:59. | |
parseerr.h | File | 3155 bytes | February 08 2022 16:22:58. | |
parsepos.h | File | 5692 bytes | February 08 2022 16:22:58. | |
platform.h | File | 28752 bytes | February 08 2022 16:22:58. | |
plurfmt.h | File | 25800 bytes | February 08 2022 16:22:59. | |
plurrule.h | File | 18835 bytes | February 08 2022 16:22:59. | |
ptypes.h | File | 3577 bytes | February 08 2022 16:22:58. | |
putil.h | File | 6487 bytes | February 08 2022 16:22:58. | |
rbbi.h | File | 27218 bytes | February 08 2022 16:22:58. | |
rbnf.h | File | 49899 bytes | February 08 2022 16:22:59. | |
rbtz.h | File | 15979 bytes | February 08 2022 16:22:59. | |
regex.h | File | 86382 bytes | February 08 2022 16:22:59. | |
region.h | File | 9404 bytes | February 08 2022 16:22:59. | |
reldatefmt.h | File | 23159 bytes | February 08 2022 16:22:59. | |
rep.h | File | 9599 bytes | February 08 2022 16:22:58. | |
resbund.h | File | 18503 bytes | February 08 2022 16:22:58. | |
schriter.h | File | 6475 bytes | February 08 2022 16:22:58. | |
scientificnumberformatter.h | File | 6553 bytes | February 08 2022 16:22:59. | |
search.h | File | 22757 bytes | February 08 2022 16:22:59. | |
selfmt.h | File | 14643 bytes | February 08 2022 16:22:59. | |
simpleformatter.h | File | 12888 bytes | February 08 2022 16:22:58. | |
simpletz.h | File | 46527 bytes | February 08 2022 16:22:59. | |
smpdtfmt.h | File | 72670 bytes | February 08 2022 16:22:59. | |
sortkey.h | File | 11444 bytes | February 08 2022 16:22:59. | |
std_string.h | File | 1076 bytes | February 08 2022 16:22:58. | |
strenum.h | File | 10158 bytes | February 08 2022 16:22:58. | |
stringoptions.h | File | 5926 bytes | February 08 2022 16:22:58. | |
stringpiece.h | File | 7556 bytes | February 08 2022 16:22:58. | |
stringtriebuilder.h | File | 15698 bytes | February 08 2022 16:22:58. | |
stsearch.h | File | 21810 bytes | February 08 2022 16:22:59. | |
symtable.h | File | 4374 bytes | February 08 2022 16:22:58. | |
tblcoll.h | File | 37489 bytes | February 08 2022 16:22:59. | |
timezone.h | File | 42005 bytes | February 08 2022 16:22:59. | |
tmunit.h | File | 3461 bytes | February 08 2022 16:22:59. | |
tmutamt.h | File | 5015 bytes | February 08 2022 16:22:59. | |
tmutfmt.h | File | 8042 bytes | February 08 2022 16:22:59. | |
translit.h | File | 67400 bytes | February 08 2022 16:22:59. | |
tzfmt.h | File | 43916 bytes | February 08 2022 16:22:59. | |
tznames.h | File | 17252 bytes | February 08 2022 16:22:59. | |
tzrule.h | File | 36215 bytes | February 08 2022 16:22:59. | |
tztrans.h | File | 6271 bytes | February 08 2022 16:22:59. | |
ubidi.h | File | 91711 bytes | February 08 2022 16:22:58. | |
ubiditransform.h | File | 12950 bytes | February 08 2022 16:22:58. | |
ubrk.h | File | 24547 bytes | February 08 2022 16:22:58. | |
ucal.h | File | 58265 bytes | February 08 2022 16:22:59. | |
ucasemap.h | File | 15546 bytes | February 08 2022 16:22:58. | |
ucat.h | File | 5484 bytes | February 08 2022 16:22:58. | |
uchar.h | File | 143936 bytes | February 08 2022 16:22:58. | |
ucharstrie.h | File | 23120 bytes | February 08 2022 16:22:58. | |
ucharstriebuilder.h | File | 7378 bytes | February 08 2022 16:22:58. | |
uchriter.h | File | 13521 bytes | February 08 2022 16:22:58. | |
uclean.h | File | 11474 bytes | February 08 2022 16:22:58. | |
ucnv.h | File | 85085 bytes | February 08 2022 16:22:58. | |
ucnv_cb.h | File | 6748 bytes | February 08 2022 16:22:58. | |
ucnv_err.h | File | 21492 bytes | February 08 2022 16:22:58. | |
ucnvsel.h | File | 6283 bytes | February 08 2022 16:22:58. | |
ucol.h | File | 62939 bytes | February 08 2022 16:22:59. | |
ucoleitr.h | File | 9684 bytes | February 08 2022 16:22:59. | |
uconfig.h | File | 12356 bytes | February 08 2022 16:22:58. | |
ucpmap.h | File | 5663 bytes | February 08 2022 16:22:58. | |
ucptrie.h | File | 23002 bytes | February 08 2022 16:22:58. | |
ucsdet.h | File | 15018 bytes | February 08 2022 16:22:59. | |
ucurr.h | File | 16507 bytes | February 08 2022 16:22:58. | |
udat.h | File | 62342 bytes | February 08 2022 16:22:59. | |
udata.h | File | 15930 bytes | February 08 2022 16:22:58. | |
udateintervalformat.h | File | 10272 bytes | February 08 2022 16:22:59. | |
udatpg.h | File | 26639 bytes | February 08 2022 16:22:59. | |
udisplaycontext.h | File | 6029 bytes | February 08 2022 16:22:58. | |
uenum.h | File | 7970 bytes | February 08 2022 16:22:58. | |
ufieldpositer.h | File | 4461 bytes | February 08 2022 16:22:59. | |
uformattable.h | File | 11198 bytes | February 08 2022 16:22:59. | |
uformattedvalue.h | File | 12431 bytes | February 08 2022 16:22:59. | |
ugender.h | File | 2052 bytes | February 08 2022 16:22:59. | |
uidna.h | File | 34169 bytes | February 08 2022 16:22:58. | |
uiter.h | File | 23319 bytes | February 08 2022 16:22:58. | |
uldnames.h | File | 10702 bytes | February 08 2022 16:22:58. | |
ulistformatter.h | File | 9047 bytes | February 08 2022 16:22:59. | |
uloc.h | File | 53805 bytes | February 08 2022 16:22:58. | |
ulocdata.h | File | 11533 bytes | February 08 2022 16:22:59. | |
umachine.h | File | 14877 bytes | February 08 2022 16:22:58. | |
umisc.h | File | 1365 bytes | February 08 2022 16:22:58. | |
umsg.h | File | 24812 bytes | February 08 2022 16:22:59. | |
umutablecptrie.h | File | 8435 bytes | February 08 2022 16:22:58. | |
unifilt.h | File | 4055 bytes | February 08 2022 16:22:58. | |
unifunct.h | File | 4141 bytes | February 08 2022 16:22:58. | |
unimatch.h | File | 6244 bytes | February 08 2022 16:22:58. | |
unirepl.h | File | 3464 bytes | February 08 2022 16:22:59. | |
uniset.h | File | 66459 bytes | February 08 2022 16:22:58. | |
unistr.h | File | 174523 bytes | February 08 2022 16:22:58. | |
unorm.h | File | 21015 bytes | February 08 2022 16:22:58. | |
unorm2.h | File | 25254 bytes | February 08 2022 16:22:58. | |
unum.h | File | 54906 bytes | February 08 2022 16:22:59. | |
unumberformatter.h | File | 25972 bytes | February 08 2022 16:22:59. | |
unumsys.h | File | 7387 bytes | February 08 2022 16:22:59. | |
uobject.h | File | 10936 bytes | February 08 2022 16:22:58. | |
upluralrules.h | File | 8068 bytes | February 08 2022 16:22:59. | |
uregex.h | File | 73784 bytes | February 08 2022 16:22:59. | |
uregion.h | File | 10073 bytes | February 08 2022 16:22:59. | |
ureldatefmt.h | File | 17670 bytes | February 08 2022 16:22:59. | |
urename.h | File | 134109 bytes | February 08 2022 16:22:58. | |
urep.h | File | 5507 bytes | February 08 2022 16:22:58. | |
ures.h | File | 37415 bytes | February 08 2022 16:22:58. | |
uscript.h | File | 27510 bytes | February 08 2022 16:22:58. | |
usearch.h | File | 39039 bytes | February 08 2022 16:22:59. | |
uset.h | File | 40958 bytes | February 08 2022 16:22:58. | |
usetiter.h | File | 9781 bytes | February 08 2022 16:22:58. | |
ushape.h | File | 18432 bytes | February 08 2022 16:22:58. | |
uspoof.h | File | 67480 bytes | February 08 2022 16:22:59. | |
usprep.h | File | 8331 bytes | February 08 2022 16:22:58. | |
ustdio.h | File | 39469 bytes | February 08 2022 16:22:59. | |
ustream.h | File | 1934 bytes | February 08 2022 16:22:59. | |
ustring.h | File | 74211 bytes | February 08 2022 16:22:58. | |
ustringtrie.h | File | 3224 bytes | February 08 2022 16:22:58. | |
utext.h | File | 59527 bytes | February 08 2022 16:22:58. | |
utf.h | File | 8046 bytes | February 08 2022 16:22:58. | |
utf16.h | File | 23878 bytes | February 08 2022 16:22:58. | |
utf32.h | File | 763 bytes | February 08 2022 16:22:58. | |
utf8.h | File | 31700 bytes | February 08 2022 16:22:58. | |
utf_old.h | File | 46929 bytes | February 08 2022 16:22:58. | |
utmscale.h | File | 14113 bytes | February 08 2022 16:22:59. | |
utrace.h | File | 16112 bytes | February 08 2022 16:22:58. | |
utrans.h | File | 26130 bytes | February 08 2022 16:22:59. | |
utypes.h | File | 31481 bytes | February 08 2022 16:22:58. | |
uvernum.h | File | 6832 bytes | February 08 2022 16:22:58. | |
uversion.h | File | 6145 bytes | February 08 2022 16:22:58. | |
vtzone.h | File | 20784 bytes | February 08 2022 16:22:59. |
// © 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html /* ****************************************************************************** * Copyright (C) 1997-2014, International Business Machines * Corporation and others. All Rights Reserved. ****************************************************************************** */ /** * \file * \brief C++ API: Collation Element Iterator. */ /** * File coleitr.h * * Created by: Helena Shih * * Modification History: * * Date Name Description * * 8/18/97 helena Added internal API documentation. * 08/03/98 erm Synched with 1.2 version CollationElementIterator.java * 12/10/99 aliu Ported Thai collation support from Java. * 01/25/01 swquek Modified into a C++ wrapper calling C APIs (ucoliter.h) * 02/19/01 swquek Removed CollationElementsIterator() since it is * private constructor and no calls are made to it * 2012-2014 markus Rewritten in C++ again. */ #ifndef COLEITR_H #define COLEITR_H #include "unicode/utypes.h" #if U_SHOW_CPLUSPLUS_API #if !UCONFIG_NO_COLLATION #include "unicode/unistr.h" #include "unicode/uobject.h" struct UCollationElements; struct UHashtable; U_NAMESPACE_BEGIN struct CollationData; class CharacterIterator; class CollationIterator; class RuleBasedCollator; class UCollationPCE; class UVector32; /** * The CollationElementIterator class is used as an iterator to walk through * each character of an international string. Use the iterator to return the * ordering priority of the positioned character. The ordering priority of a * character, which we refer to as a key, defines how a character is collated in * the given collation object. * For example, consider the following in Slovak and in traditional Spanish collation: * <pre> * "ca" -> the first key is key('c') and second key is key('a'). * "cha" -> the first key is key('ch') and second key is key('a').</pre> * And in German phonebook collation, * <pre> \htmlonly "æb"-> the first key is key('a'), the second key is key('e'), and * the third key is key('b'). \endhtmlonly </pre> * The key of a character, is an integer composed of primary order(short), * secondary order(char), and tertiary order(char). Java strictly defines the * size and signedness of its primitive data types. Therefore, the static * functions primaryOrder(), secondaryOrder(), and tertiaryOrder() return * int32_t to ensure the correctness of the key value. * <p>Example of the iterator usage: (without error checking) * <pre> * \code * void CollationElementIterator_Example() * { * UnicodeString str = "This is a test"; * UErrorCode success = U_ZERO_ERROR; * RuleBasedCollator* rbc = * (RuleBasedCollator*) RuleBasedCollator::createInstance(success); * CollationElementIterator* c = * rbc->createCollationElementIterator( str ); * int32_t order = c->next(success); * c->reset(); * order = c->previous(success); * delete c; * delete rbc; * } * \endcode * </pre> * <p> * The method next() returns the collation order of the next character based on * the comparison level of the collator. The method previous() returns the * collation order of the previous character based on the comparison level of * the collator. The Collation Element Iterator moves only in one direction * between calls to reset(), setOffset(), or setText(). That is, next() * and previous() can not be inter-used. Whenever previous() is to be called after * next() or vice versa, reset(), setOffset() or setText() has to be called first * to reset the status, shifting pointers to either the end or the start of * the string (reset() or setText()), or the specified position (setOffset()). * Hence at the next call of next() or previous(), the first or last collation order, * or collation order at the spefcifieid position will be returned. If a change of * direction is done without one of these calls, the result is undefined. * <p> * The result of a forward iterate (next()) and reversed result of the backward * iterate (previous()) on the same string are equivalent, if collation orders * with the value 0 are ignored. * Character based on the comparison level of the collator. A collation order * consists of primary order, secondary order and tertiary order. The data * type of the collation order is <strong>int32_t</strong>. * * Note, CollationElementIterator should not be subclassed. * @see Collator * @see RuleBasedCollator * @version 1.8 Jan 16 2001 */ class U_I18N_API CollationElementIterator U_FINAL : public UObject { public: // CollationElementIterator public data member ------------------------------ enum { /** * NULLORDER indicates that an error has occured while processing * @stable ICU 2.0 */ NULLORDER = (int32_t)0xffffffff }; // CollationElementIterator public constructor/destructor ------------------- /** * Copy constructor. * * @param other the object to be copied from * @stable ICU 2.0 */ CollationElementIterator(const CollationElementIterator& other); /** * Destructor * @stable ICU 2.0 */ virtual ~CollationElementIterator(); // CollationElementIterator public methods ---------------------------------- /** * Returns true if "other" is the same as "this" * * @param other the object to be compared * @return true if "other" is the same as "this" * @stable ICU 2.0 */ UBool operator==(const CollationElementIterator& other) const; /** * Returns true if "other" is not the same as "this". * * @param other the object to be compared * @return true if "other" is not the same as "this" * @stable ICU 2.0 */ UBool operator!=(const CollationElementIterator& other) const; /** * Resets the cursor to the beginning of the string. * @stable ICU 2.0 */ void reset(void); /** * Gets the ordering priority of the next character in the string. * @param status the error code status. * @return the next character's ordering. otherwise returns NULLORDER if an * error has occured or if the end of string has been reached * @stable ICU 2.0 */ int32_t next(UErrorCode& status); /** * Get the ordering priority of the previous collation element in the string. * @param status the error code status. * @return the previous element's ordering. otherwise returns NULLORDER if an * error has occured or if the start of string has been reached * @stable ICU 2.0 */ int32_t previous(UErrorCode& status); /** * Gets the primary order of a collation order. * @param order the collation order * @return the primary order of a collation order. * @stable ICU 2.0 */ static inline int32_t primaryOrder(int32_t order); /** * Gets the secondary order of a collation order. * @param order the collation order * @return the secondary order of a collation order. * @stable ICU 2.0 */ static inline int32_t secondaryOrder(int32_t order); /** * Gets the tertiary order of a collation order. * @param order the collation order * @return the tertiary order of a collation order. * @stable ICU 2.0 */ static inline int32_t tertiaryOrder(int32_t order); /** * Return the maximum length of any expansion sequences that end with the * specified comparison order. * @param order a collation order returned by previous or next. * @return maximum size of the expansion sequences ending with the collation * element or 1 if collation element does not occur at the end of any * expansion sequence * @stable ICU 2.0 */ int32_t getMaxExpansion(int32_t order) const; /** * Gets the comparison order in the desired strength. Ignore the other * differences. * @param order The order value * @stable ICU 2.0 */ int32_t strengthOrder(int32_t order) const; /** * Sets the source string. * @param str the source string. * @param status the error code status. * @stable ICU 2.0 */ void setText(const UnicodeString& str, UErrorCode& status); /** * Sets the source string. * @param str the source character iterator. * @param status the error code status. * @stable ICU 2.0 */ void setText(CharacterIterator& str, UErrorCode& status); /** * Checks if a comparison order is ignorable. * @param order the collation order. * @return TRUE if a character is ignorable, FALSE otherwise. * @stable ICU 2.0 */ static inline UBool isIgnorable(int32_t order); /** * Gets the offset of the currently processed character in the source string. * @return the offset of the character. * @stable ICU 2.0 */ int32_t getOffset(void) const; /** * Sets the offset of the currently processed character in the source string. * @param newOffset the new offset. * @param status the error code status. * @return the offset of the character. * @stable ICU 2.0 */ void setOffset(int32_t newOffset, UErrorCode& status); /** * 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(); #ifndef U_HIDE_INTERNAL_API /** @internal */ static inline CollationElementIterator *fromUCollationElements(UCollationElements *uc) { return reinterpret_cast<CollationElementIterator *>(uc); } /** @internal */ static inline const CollationElementIterator *fromUCollationElements(const UCollationElements *uc) { return reinterpret_cast<const CollationElementIterator *>(uc); } /** @internal */ inline UCollationElements *toUCollationElements() { return reinterpret_cast<UCollationElements *>(this); } /** @internal */ inline const UCollationElements *toUCollationElements() const { return reinterpret_cast<const UCollationElements *>(this); } #endif // U_HIDE_INTERNAL_API private: friend class RuleBasedCollator; friend class UCollationPCE; /** * CollationElementIterator constructor. This takes the source string and the * collation object. The cursor will walk thru the source string based on the * predefined collation rules. If the source string is empty, NULLORDER will * be returned on the calls to next(). * @param sourceText the source string. * @param order the collation object. * @param status the error code status. */ CollationElementIterator(const UnicodeString& sourceText, const RuleBasedCollator* order, UErrorCode& status); // Note: The constructors should take settings & tailoring, not a collator, // to avoid circular dependencies. // However, for operator==() we would need to be able to compare tailoring data for equality // without making CollationData or CollationTailoring depend on TailoredSet. // (See the implementation of RuleBasedCollator::operator==().) // That might require creating an intermediate class that would be used // by both CollationElementIterator and RuleBasedCollator // but only contain the part of RBC== related to data and rules. /** * CollationElementIterator constructor. This takes the source string and the * collation object. The cursor will walk thru the source string based on the * predefined collation rules. If the source string is empty, NULLORDER will * be returned on the calls to next(). * @param sourceText the source string. * @param order the collation object. * @param status the error code status. */ CollationElementIterator(const CharacterIterator& sourceText, const RuleBasedCollator* order, UErrorCode& status); /** * Assignment operator * * @param other the object to be copied */ const CollationElementIterator& operator=(const CollationElementIterator& other); CollationElementIterator(); // default constructor not implemented /** Normalizes dir_=1 (just after setOffset()) to dir_=0 (just after reset()). */ inline int8_t normalizeDir() const { return dir_ == 1 ? 0 : dir_; } static UHashtable *computeMaxExpansions(const CollationData *data, UErrorCode &errorCode); static int32_t getMaxExpansion(const UHashtable *maxExpansions, int32_t order); // CollationElementIterator private data members ---------------------------- CollationIterator *iter_; // owned const RuleBasedCollator *rbc_; // aliased uint32_t otherHalf_; /** * <0: backwards; 0: just after reset() (previous() begins from end); * 1: just after setOffset(); >1: forward */ int8_t dir_; /** * Stores offsets from expansions and from unsafe-backwards iteration, * so that getOffset() returns intermediate offsets for the CEs * that are consistent with forward iteration. */ UVector32 *offsets_; UnicodeString string_; }; // CollationElementIterator inline method definitions -------------------------- inline int32_t CollationElementIterator::primaryOrder(int32_t order) { return (order >> 16) & 0xffff; } inline int32_t CollationElementIterator::secondaryOrder(int32_t order) { return (order >> 8) & 0xff; } inline int32_t CollationElementIterator::tertiaryOrder(int32_t order) { return order & 0xff; } inline UBool CollationElementIterator::isIgnorable(int32_t order) { return (order & 0xffff0000) == 0; } U_NAMESPACE_END #endif /* #if !UCONFIG_NO_COLLATION */ #endif /* U_SHOW_CPLUSPLUS_API */ #endif
SILENT KILLER Tool