| OLD | NEW |
| 1 /*******************************************************************************
********* | 1 /*******************************************************************************
********* |
| 2 * COPYRIGHT: | 2 * COPYRIGHT: |
| 3 * Copyright (c) 1997-2010, International Business Machines Corporation and | 3 * Copyright (c) 1997-2010, International Business Machines Corporation and |
| 4 * others. All Rights Reserved. | 4 * others. All Rights Reserved. |
| 5 * Modification History: | 5 * Modification History: |
| 6 * | 6 * |
| 7 * Date Name Description | 7 * Date Name Description |
| 8 * 05/22/2000 Madhu Added tests for testing new API for utf16 support
and more | 8 * 05/22/2000 Madhu Added tests for testing new API for utf16 support
and more |
| 9 *******************************************************************************
*********/ | 9 *******************************************************************************
*********/ |
| 10 | 10 |
| 11 #include <string.h> | 11 #include <string.h> |
| 12 #include <typeinfo> // for 'typeid' to work | |
| 13 | 12 |
| 14 #include "unicode/chariter.h" | 13 #include "unicode/chariter.h" |
| 15 #include "unicode/ustring.h" | 14 #include "unicode/ustring.h" |
| 16 #include "unicode/unistr.h" | 15 #include "unicode/unistr.h" |
| 17 #include "unicode/schriter.h" | 16 #include "unicode/schriter.h" |
| 18 #include "unicode/uchriter.h" | 17 #include "unicode/uchriter.h" |
| 19 #include "unicode/uiter.h" | 18 #include "unicode/uiter.h" |
| 20 #include "unicode/putil.h" | 19 #include "unicode/putil.h" |
| 21 #include "citrtest.h" | 20 #include "citrtest.h" |
| 22 | 21 |
| (...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1076 } | 1075 } |
| 1077 | 1076 |
| 1078 virtual void getText(UnicodeString &result) { | 1077 virtual void getText(UnicodeString &result) { |
| 1079 result.setTo(s, LENGTHOF(s)); | 1078 result.setTo(s, LENGTHOF(s)); |
| 1080 } | 1079 } |
| 1081 | 1080 |
| 1082 // dummy implementations of other pure virtual base class functions | 1081 // dummy implementations of other pure virtual base class functions |
| 1083 virtual UBool operator==(const ForwardCharacterIterator &that) const { | 1082 virtual UBool operator==(const ForwardCharacterIterator &that) const { |
| 1084 return | 1083 return |
| 1085 this==&that || | 1084 this==&that || |
| 1086 (typeid(*this)==typeid(that) && pos==((SubCharIter &)that).pos); | 1085 (CR_TYPEID(*this)==CR_TYPEID(that) && pos==((SubCharIter &)that).pos
); |
| 1087 } | 1086 } |
| 1088 | 1087 |
| 1089 virtual int32_t hashCode() const { | 1088 virtual int32_t hashCode() const { |
| 1090 return 2; | 1089 return 2; |
| 1091 } | 1090 } |
| 1092 | 1091 |
| 1093 virtual CharacterIterator *clone() const { | 1092 virtual CharacterIterator *clone() const { |
| 1094 return NULL; | 1093 return NULL; |
| 1095 } | 1094 } |
| 1096 | 1095 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1178 if(sci.firstPostInc()!=0x61) { | 1177 if(sci.firstPostInc()!=0x61) { |
| 1179 errln("SubStringCharIter.firstPostInc() failed\n"); | 1178 errln("SubStringCharIter.firstPostInc() failed\n"); |
| 1180 } | 1179 } |
| 1181 | 1180 |
| 1182 // coverage: UCharCharacterIterator default constructor | 1181 // coverage: UCharCharacterIterator default constructor |
| 1183 SubUCharCharIter uci; | 1182 SubUCharCharIter uci; |
| 1184 if(uci.firstPostInc()!=0x61) { | 1183 if(uci.firstPostInc()!=0x61) { |
| 1185 errln("SubUCharCharIter.firstPostInc() failed\n"); | 1184 errln("SubUCharCharIter.firstPostInc() failed\n"); |
| 1186 } | 1185 } |
| 1187 } | 1186 } |
| OLD | NEW |