ICU-1098 fix escaping for genrb
X-SVN-Rev: 6671
This commit is contained in:
parent
4c2cd8e33a
commit
594033dca7
@ -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…
Reference in New Issue
Block a user