diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 04:12:51 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 04:12:51 +0000 |
commit | 560378aaca1784ba19806a0414a32b20c744de39 (patch) | |
tree | ce0dfd7c3febf2a1adc7603d1019a8be2083c415 /kjs/function.cpp | |
parent | d4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff) | |
download | tdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip |
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kjs/function.cpp')
-rw-r--r-- | kjs/function.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kjs/function.cpp b/kjs/function.cpp index ef5410cf8..9827cbff7 100644 --- a/kjs/function.cpp +++ b/kjs/function.cpp @@ -55,7 +55,7 @@ UString encodeURI(ExecState *exec, UString string, UString unescapedSet) for (int k = 0; k < string.size(); k++) { UChar C = string[k]; - if (unescapedSet.find(C) >= 0) { + if (unescapedSet.tqfind(C) >= 0) { if (encbufLen+1 >= encbufAlloc) encbuf = (UChar*)realloc(encbuf,(encbufAlloc *= 2)*sizeof(UChar)); encbuf[encbufLen++] = C; @@ -244,7 +244,7 @@ UString decodeURI(ExecState *exec, UString string, UString reservedSet) } // UTF-8 transform - const unsigned long replacementChar = 0xFFFD; + const unsigned long tqreplacementChar = 0xFFFD; unsigned long V; if (n == 2) { unsigned long yyyyy = octets[0] & 0x1F; @@ -252,7 +252,7 @@ UString decodeURI(ExecState *exec, UString string, UString reservedSet) V = (yyyyy << 6) | zzzzzz; // 2-byte sequence overlong for this value? if (V < 0x80) - V = replacementChar; + V = tqreplacementChar; C = UChar((unsigned short)V); } else if (n == 3) { @@ -264,7 +264,7 @@ UString decodeURI(ExecState *exec, UString string, UString reservedSet) // an invalid value or UTF-16 surrogate? if (V < 0x800 || V == 0xFFFE || V == 0xFFFF || (V >= 0xD800 && V <= 0xDFFF)) - V = replacementChar; + V = tqreplacementChar; C = UChar((unsigned short)V); } else { @@ -289,7 +289,7 @@ UString decodeURI(ExecState *exec, UString string, UString reservedSet) } } - if (reservedSet.find(C) < 0) { + if (reservedSet.tqfind(C) < 0) { decbuf[decbufLen++] = C; } else { |