mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-96 fixed quote handling
X-SVN-Rev: 4209
This commit is contained in:
parent
5b3145f716
commit
ac8c631ee0
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue