| OLD | NEW |
| 1 /* | 1 /* |
| 2 ******************************************************************************* | 2 ******************************************************************************* |
| 3 * | 3 * |
| 4 * Copyright (C) 1999-2010, International Business Machines | 4 * Copyright (C) 1999-2010, International Business Machines |
| 5 * Corporation and others. All Rights Reserved. | 5 * Corporation and others. All Rights Reserved. |
| 6 * | 6 * |
| 7 ******************************************************************************* | 7 ******************************************************************************* |
| 8 * file name: uniset_props.cpp | 8 * file name: uniset_props.cpp |
| 9 * encoding: US-ASCII | 9 * encoding: US-ASCII |
| 10 * tab size: 8 (not used) | 10 * tab size: 8 (not used) |
| (...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 literal = TRUE; | 609 literal = TRUE; |
| 610 // Fall through to handle literal '-' below | 610 // Fall through to handle literal '-' below |
| 611 } else { | 611 } else { |
| 612 chars.setPos(backup); // backup | 612 chars.setPos(backup); // backup |
| 613 continue; | 613 continue; |
| 614 } | 614 } |
| 615 } | 615 } |
| 616 } else if (symbols != 0) { | 616 } else if (symbols != 0) { |
| 617 const UnicodeFunctor *m = symbols->lookupMatcher(c); | 617 const UnicodeFunctor *m = symbols->lookupMatcher(c); |
| 618 if (m != 0) { | 618 if (m != 0) { |
| 619 const UnicodeSet *ms = dynamic_cast<const UnicodeSet *>(m); | 619 const UnicodeSet *ms = CR_DYNAMIC_CAST<const UnicodeSet *>(m
); |
| 620 if (ms == NULL) { | 620 if (ms == NULL) { |
| 621 ec = U_MALFORMED_SET; | 621 ec = U_MALFORMED_SET; |
| 622 return; | 622 return; |
| 623 } | 623 } |
| 624 // casting away const, but `nested' won't be modified | 624 // casting away const, but `nested' won't be modified |
| 625 // (important not to modify stored set) | 625 // (important not to modify stored set) |
| 626 nested = const_cast<UnicodeSet*>(ms); | 626 nested = const_cast<UnicodeSet*>(ms); |
| 627 setMode = 3; | 627 setMode = 3; |
| 628 } | 628 } |
| 629 } | 629 } |
| (...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1495 #endif | 1495 #endif |
| 1496 } | 1496 } |
| 1497 } | 1497 } |
| 1498 *this = foldSet; | 1498 *this = foldSet; |
| 1499 } | 1499 } |
| 1500 } | 1500 } |
| 1501 return *this; | 1501 return *this; |
| 1502 } | 1502 } |
| 1503 | 1503 |
| 1504 U_NAMESPACE_END | 1504 U_NAMESPACE_END |
| OLD | NEW |