comparison modules/javafx.web/src/main/native/Source/ThirdParty/icu/source/common/unicode/caniter.h @ 11038:20a8447c71c6

8207159: Update ICU to version 62.1 Reviewed-by: mbilla, kcr, ghb
author arajkumar
date Fri, 24 Aug 2018 15:06:40 +0530
parents fee4ef5c87df
children
comparison
equal deleted inserted replaced
0:8812102b3a1f 1:3aa6bfed6d95
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
1 /* 3 /*
2 ******************************************************************************* 4 *******************************************************************************
3 * Copyright (C) 1996-2011, International Business Machines Corporation and 5 * Copyright (C) 1996-2014, International Business Machines Corporation and
4 * others. All Rights Reserved. 6 * others. All Rights Reserved.
5 ******************************************************************************* 7 *******************************************************************************
6 */ 8 */
7 9
8 #ifndef CANITER_H 10 #ifndef CANITER_H
67 * Note, CanonicalIterator is not intended to be subclassed. 69 * Note, CanonicalIterator is not intended to be subclassed.
68 * @author M. Davis 70 * @author M. Davis
69 * @author C++ port by V. Weinstein 71 * @author C++ port by V. Weinstein
70 * @stable ICU 2.4 72 * @stable ICU 2.4
71 */ 73 */
72 class U_COMMON_API CanonicalIterator : public UObject { 74 class U_COMMON_API CanonicalIterator U_FINAL : public UObject {
73 public: 75 public:
74 /** 76 /**
75 * Construct a CanonicalIterator object 77 * Construct a CanonicalIterator object
76 * @param source string to get results for 78 * @param source string to get results for
77 * @param status Fill-in parameter which receives the status of this operation. 79 * @param status Fill-in parameter which receives the status of this operation.
149 CanonicalIterator(); 151 CanonicalIterator();
150 152
151 153
152 /** 154 /**
153 * Copy constructor. Private for now. 155 * Copy constructor. Private for now.
154 * @internal 156 * @internal (private)
155 */ 157 */
156 CanonicalIterator(const CanonicalIterator& other); 158 CanonicalIterator(const CanonicalIterator& other);
157 159
158 /** 160 /**
159 * Assignment operator. Private for now. 161 * Assignment operator. Private for now.
160 * @internal 162 * @internal (private)
161 */ 163 */
162 CanonicalIterator& operator=(const CanonicalIterator& other); 164 CanonicalIterator& operator=(const CanonicalIterator& other);
163 165
164 // fields 166 // fields
165 UnicodeString source; 167 UnicodeString source;
183 185
184 // we have a segment, in NFD. Find all the strings that are canonically equivalent to it. 186 // we have a segment, in NFD. Find all the strings that are canonically equivalent to it.
185 UnicodeString *getEquivalents(const UnicodeString &segment, int32_t &result_len, UErrorCode &status); //private String[] getEquivalents(String segment) 187 UnicodeString *getEquivalents(const UnicodeString &segment, int32_t &result_len, UErrorCode &status); //private String[] getEquivalents(String segment)
186 188
187 //Set getEquivalents2(String segment); 189 //Set getEquivalents2(String segment);
188 Hashtable *getEquivalents2(Hashtable *fillinResult, const UChar *segment, int32_t segLen, UErrorCode &status); 190 Hashtable *getEquivalents2(Hashtable *fillinResult, const char16_t *segment, int32_t segLen, UErrorCode &status);
189 //Hashtable *getEquivalents2(const UnicodeString &segment, int32_t segLen, UErrorCode &status); 191 //Hashtable *getEquivalents2(const UnicodeString &segment, int32_t segLen, UErrorCode &status);
190 192
191 /** 193 /**
192 * See if the decomposition of cp2 is at segment starting at segmentPos 194 * See if the decomposition of cp2 is at segment starting at segmentPos
193 * (with canonical rearrangment!) 195 * (with canonical rearrangment!)
194 * If so, take the remainder, and return the equivalents 196 * If so, take the remainder, and return the equivalents
195 */ 197 */
196 //Set extract(int comp, String segment, int segmentPos, StringBuffer buffer); 198 //Set extract(int comp, String segment, int segmentPos, StringBuffer buffer);
197 Hashtable *extract(Hashtable *fillinResult, UChar32 comp, const UChar *segment, int32_t segLen, int32_t segmentPos, UErrorCode &status); 199 Hashtable *extract(Hashtable *fillinResult, UChar32 comp, const char16_t *segment, int32_t segLen, int32_t segmentPos, UErrorCode &status);
198 //Hashtable *extract(UChar32 comp, const UnicodeString &segment, int32_t segLen, int32_t segmentPos, UErrorCode &status); 200 //Hashtable *extract(UChar32 comp, const UnicodeString &segment, int32_t segLen, int32_t segmentPos, UErrorCode &status);
199 201
200 void cleanPieces(); 202 void cleanPieces();
201 203
202 }; 204 };