ICU-1098 fix escaping for genrb

X-SVN-Rev: 6671
This commit is contained in:
Ram Viswanadha 2001-11-07 19:11:15 +00:00
parent 4c2cd8e33a
commit 594033dca7

View File

@ -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)) {