From cd78ce444492f40ec5e35834697157d85024f9c9 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Tue, 30 Mar 2004 19:56:24 +0000 Subject: [PATCH] ICU-3668 Fix for Alan due to breaking chariter.h change. X-SVN-Rev: 14804 --- icu4c/source/test/intltest/citrtest.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/icu4c/source/test/intltest/citrtest.cpp b/icu4c/source/test/intltest/citrtest.cpp index 065d5ece9f..7831e820d5 100644 --- a/icu4c/source/test/intltest/citrtest.cpp +++ b/icu4c/source/test/intltest/citrtest.cpp @@ -36,7 +36,7 @@ public: text = newText; } - virtual void getText(UnicodeString& result){ + virtual void getText(UnicodeString& result) const { text.extract(0,text.length(),result); } virtual UClassID getDynamicClassID(void) const{ @@ -58,7 +58,7 @@ public: } virtual UChar nextPostInc(void){ return text.charAt(pos++);} virtual UChar32 next32PostInc(void){return text.char32At(pos++);} - virtual UBool hasNext(){ return TRUE;}; + virtual UBool hasNext() const { return TRUE;}; virtual UChar first(){return DONE;}; virtual UChar32 first32(){return DONE;}; virtual UChar last(){return DONE;}; @@ -121,7 +121,7 @@ public: return pos; }; - virtual UBool hasPrevious(){return TRUE;}; + virtual UBool hasPrevious() const {return TRUE;}; SCharacterIterator& operator=(const SCharacterIterator& that){ text = that.text; @@ -974,7 +974,7 @@ public: } } - virtual UBool hasNext() { + virtual UBool hasNext() const { return pos0; } - virtual void getText(UnicodeString &result) { + virtual void getText(UnicodeString &result) const { result.setTo(s, LENGTHOF(s)); }