mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-1098 fix escaping for genrb
X-SVN-Rev: 6671
This commit is contained in:
parent
4c2cd8e33a
commit
594033dca7
1 changed files with 6 additions and 6 deletions
|
@ -176,14 +176,14 @@ static enum ETokenType getStringToken(UCHARBUF* buf,
|
|||
}
|
||||
}
|
||||
|
||||
U_APPEND_CHAR32(c, pTarget,len);
|
||||
pTarget = target;
|
||||
ustr_uscat(token, pTarget,len, status);
|
||||
isFollowingCharEscaped = FALSE;
|
||||
len=0;
|
||||
|
||||
if(c==ESCAPE && !isFollowingCharEscaped){
|
||||
isFollowingCharEscaped = TRUE;
|
||||
}else{
|
||||
U_APPEND_CHAR32(c, pTarget,len);
|
||||
pTarget = target;
|
||||
ustr_uscat(token, pTarget,len, status);
|
||||
isFollowingCharEscaped = FALSE;
|
||||
len=0;
|
||||
}
|
||||
|
||||
if (U_FAILURE(*status)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue