From ac8c631ee0e84ba64da65b9d0542f08539eaa695 Mon Sep 17 00:00:00 2001 From: Vladimir Weinstein Date: Wed, 21 Mar 2001 00:22:35 +0000 Subject: [PATCH] ICU-96 fixed quote handling X-SVN-Rev: 4209 --- icu4c/source/i18n/ucol_tok.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/icu4c/source/i18n/ucol_tok.c b/icu4c/source/i18n/ucol_tok.c index e5e6b3a3095..61ab70ccd8a 100644 --- a/icu4c/source/i18n/ucol_tok.c +++ b/icu4c/source/i18n/ucol_tok.c @@ -483,6 +483,10 @@ const UChar *ucol_tok_parseNextToken(UColTokenParser *src, } ch = *(++(src->current)); /*pattern[++index]; */ + if(ch == 0x0027) { + *src->extraCurrent++ = ch; + inQuote = FALSE; + } break; /* '@' is french only if the strength is not currently set */ @@ -523,7 +527,7 @@ const UChar *ucol_tok_parseNextToken(UColTokenParser *src, } if(wasInQuote) { - if(ch != 0x27 || newCharsLen == 1) { + if(ch != 0x27) { *src->extraCurrent++ = ch; } if(src->extraCurrent == src->extraEnd) {