Core: XML RegisterEntity

git-svn-id: svn://ultimatepp.org/upp/trunk@6072 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-05-15 13:16:57 +00:00
parent 7b4aa94db5
commit 236ccbfa7c
4 changed files with 33 additions and 33 deletions

View file

@ -530,8 +530,7 @@ String AsQTF(const RichText& text, byte charset, dword options)
}
String DeQtf(const char *s) {
String r;
r.Reserve(256);
StringBuffer r;
for(; *s; s++) {
if(*s == '\n')
r.Cat('&');
@ -545,8 +544,7 @@ String DeQtf(const char *s) {
}
String DeQtfLf(const char *s) {
String r;
r.Reserve(256);
StringBuffer r;
while(*s) {
if((byte)*s > ' ' && !IsDigit(*s) && !IsAlpha(*s) && (byte)*s < 128)
r.Cat('`');