OLD | NEW |
1 /* | 1 /* |
2 *************************************************************************** | 2 *************************************************************************** |
3 * Copyright (C) 1999-2014, International Business Machines Corporation | 3 * Copyright (C) 1999-2015, International Business Machines Corporation |
4 * and others. All Rights Reserved. | 4 * and others. All Rights Reserved. |
5 *************************************************************************** | 5 *************************************************************************** |
6 * Date Name Description | 6 * Date Name Description |
7 * 10/20/99 alan Creation. | 7 * 10/20/99 alan Creation. |
8 *************************************************************************** | 8 *************************************************************************** |
9 */ | 9 */ |
10 | 10 |
11 #ifndef UNICODESET_H | 11 #ifndef UNICODESET_H |
12 #define UNICODESET_H | 12 #define UNICODESET_H |
13 | 13 |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 /** | 362 /** |
363 * Constructs a set containing the given range. If <code>end > | 363 * Constructs a set containing the given range. If <code>end > |
364 * start</code> then an empty set is created. | 364 * start</code> then an empty set is created. |
365 * | 365 * |
366 * @param start first character, inclusive, of range | 366 * @param start first character, inclusive, of range |
367 * @param end last character, inclusive, of range | 367 * @param end last character, inclusive, of range |
368 * @stable ICU 2.4 | 368 * @stable ICU 2.4 |
369 */ | 369 */ |
370 UnicodeSet(UChar32 start, UChar32 end); | 370 UnicodeSet(UChar32 start, UChar32 end); |
371 | 371 |
| 372 #ifndef U_HIDE_INTERNAL_API |
| 373 /** |
| 374 * @internal |
| 375 */ |
| 376 enum ESerialization { |
| 377 kSerialized /* result of serialize() */ |
| 378 }; |
| 379 |
| 380 /** |
| 381 * Constructs a set from the output of serialize(). |
| 382 * |
| 383 * @param buffer the 16 bit array |
| 384 * @param bufferLen the original length returned from serialize() |
| 385 * @param serialization the value 'kSerialized' |
| 386 * @param status error code |
| 387 * |
| 388 * @internal |
| 389 */ |
| 390 UnicodeSet(const uint16_t buffer[], int32_t bufferLen, |
| 391 ESerialization serialization, UErrorCode &status); |
| 392 #endif /* U_HIDE_INTERNAL_API */ |
| 393 |
372 /** | 394 /** |
373 * Constructs a set from the given pattern. See the class | 395 * Constructs a set from the given pattern. See the class |
374 * description for the syntax of the pattern language. | 396 * description for the syntax of the pattern language. |
375 * @param pattern a string specifying what characters are in the set | 397 * @param pattern a string specifying what characters are in the set |
376 * @param status returns <code>U_ILLEGAL_ARGUMENT_ERROR</code> if the patter
n | 398 * @param status returns <code>U_ILLEGAL_ARGUMENT_ERROR</code> if the patter
n |
377 * contains a syntax error. | 399 * contains a syntax error. |
378 * @stable ICU 2.0 | 400 * @stable ICU 2.0 |
379 */ | 401 */ |
380 UnicodeSet(const UnicodeString& pattern, | 402 UnicodeSet(const UnicodeString& pattern, |
381 UErrorCode& status); | 403 UErrorCode& status); |
(...skipping 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1682 limit=0; | 1704 limit=0; |
1683 } else if(limit>sLength) { | 1705 } else if(limit>sLength) { |
1684 limit=sLength; | 1706 limit=sLength; |
1685 } | 1707 } |
1686 return spanBack(s.getBuffer(), limit, spanCondition); | 1708 return spanBack(s.getBuffer(), limit, spanCondition); |
1687 } | 1709 } |
1688 | 1710 |
1689 U_NAMESPACE_END | 1711 U_NAMESPACE_END |
1690 | 1712 |
1691 #endif | 1713 #endif |
OLD | NEW |