mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-10 03:54:54 -06:00
Core: XML RegisterEntity
git-svn-id: svn://ultimatepp.org/upp/trunk@6072 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
7b4aa94db5
commit
236ccbfa7c
4 changed files with 33 additions and 33 deletions
|
|
@ -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('`');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue