OLD | NEW |
1 // © 2016 and later: Unicode, Inc. and others. | 1 // © 2016 and later: Unicode, Inc. and others. |
2 // License & terms of use: http://www.unicode.org/copyright.html | 2 // License & terms of use: http://www.unicode.org/copyright.html |
3 /* | 3 /* |
4 ********************************************************************** | 4 ********************************************************************** |
5 * Copyright (c) 2004-2016, International Business Machines | 5 * Copyright (c) 2004-2016, International Business Machines |
6 * Corporation and others. All Rights Reserved. | 6 * Corporation and others. All Rights Reserved. |
7 ********************************************************************** | 7 ********************************************************************** |
8 * Author: Alan Liu | 8 * Author: Alan Liu |
9 * Created: April 26, 2004 | 9 * Created: April 26, 2004 |
10 * Since: ICU 3.0 | 10 * Since: ICU 3.0 |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 * @return the unit.getIndex() of the unit which has this unit.getType() and
unit.getSubtype(), | 189 * @return the unit.getIndex() of the unit which has this unit.getType() and
unit.getSubtype(), |
190 * or a negative value if there is no such unit | 190 * or a negative value if there is no such unit |
191 * @internal | 191 * @internal |
192 */ | 192 */ |
193 static int32_t internalGetIndexForTypeAndSubtype(const char *type, const cha
r *subtype); | 193 static int32_t internalGetIndexForTypeAndSubtype(const char *type, const cha
r *subtype); |
194 | 194 |
195 /** | 195 /** |
196 * ICU use only. | 196 * ICU use only. |
197 * @internal | 197 * @internal |
198 */ | 198 */ |
199 static MeasureUnit *resolveUnitPerUnit( | 199 static MeasureUnit resolveUnitPerUnit( |
200 const MeasureUnit &unit, const MeasureUnit &perUnit); | 200 const MeasureUnit &unit, const MeasureUnit &perUnit, bool* isResolve
d); |
201 #endif /* U_HIDE_INTERNAL_API */ | 201 #endif /* U_HIDE_INTERNAL_API */ |
202 | 202 |
203 // All code between the "Start generated createXXX methods" comment and | 203 // All code between the "Start generated createXXX methods" comment and |
204 // the "End generated createXXX methods" comment is auto generated code | 204 // the "End generated createXXX methods" comment is auto generated code |
205 // and must not be edited manually. For instructions on how to correctly | 205 // and must not be edited manually. For instructions on how to correctly |
206 // update this code, refer to: | 206 // update this code, refer to: |
207 // http://site.icu-project.org/design/formatting/measureformat/updating-measure-
unit | 207 // http://site.icu-project.org/design/formatting/measureformat/updating-measure-
unit |
208 // | 208 // |
209 // Start generated createXXX methods | 209 // Start generated createXXX methods |
210 | 210 |
(...skipping 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1334 } | 1334 } |
1335 void setTo(int32_t typeId, int32_t subTypeId); | 1335 void setTo(int32_t typeId, int32_t subTypeId); |
1336 int32_t getOffset() const; | 1336 int32_t getOffset() const; |
1337 static MeasureUnit *create(int typeId, int subTypeId, UErrorCode &status); | 1337 static MeasureUnit *create(int typeId, int subTypeId, UErrorCode &status); |
1338 }; | 1338 }; |
1339 | 1339 |
1340 U_NAMESPACE_END | 1340 U_NAMESPACE_END |
1341 | 1341 |
1342 #endif // !UNCONFIG_NO_FORMATTING | 1342 #endif // !UNCONFIG_NO_FORMATTING |
1343 #endif // __MEASUREUNIT_H__ | 1343 #endif // __MEASUREUNIT_H__ |
OLD | NEW |