24 #ifndef Q_WS_WIN //TODO kresolver not ported
25 #include "kresolver.h"
29 #ifndef Q_WS_WIN //TODO knetwork not ported
33 TQCString KIDNA::toAsciiCString(
const TQString &idna)
35 #ifndef Q_WS_WIN //TODO kresolver not ported
42 TQString KIDNA::toAscii(
const TQString &idna)
44 if (idna.length() && (idna[0] == (QChar)
'.'))
46 TQString host = TQString::fromLatin1(toAsciiCString(idna.mid(1)));
48 return TQString::null;
49 return idna[0] + host;
51 return TQString::fromLatin1(toAsciiCString(idna));
54 TQString KIDNA::toUnicode(
const TQString &idna)
56 #ifndef Q_WS_WIN //TODO kresolver not ported
57 if (idna.length() && (idna[0] == (QChar)
'.'))
61 return TQString::null;
static TQString domainToUnicode(const TQCString &asciiDomain)
Does the inverse of domainToAscii and return an Unicode domain name from the given ACE-encoded domain...
A namespace to store all networking-related (socket) classes.
static TQCString domainToAscii(const TQString &unicodeDomain)
Returns the domain name in an ASCII Compatible Encoding form, suitable for DNS lookups.