Lines Matching defs:IDNA
19 #include "unicode/idna.h"
66 // IDNA class default implementations -------------------------------------- ***
68 IDNA::~IDNA() {}
71 IDNA::labelToASCII_UTF8(const StringPiece &label, ByteSink &dest,
81 IDNA::labelToUnicodeUTF8(const StringPiece &label, ByteSink &dest,
91 IDNA::nameToASCII_UTF8(const StringPiece &name, ByteSink &dest,
101 IDNA::nameToUnicodeUTF8(const StringPiece &name, ByteSink &dest,
112 class UTS46 : public IDNA {
198 IDNA *
199 IDNA::createUTS46Instance(uint32_t options, UErrorCode &errorCode) {
201 IDNA *idna=new UTS46(options, errorCode);
202 if(idna==NULL) {
205 delete idna;
206 idna=NULL;
208 return idna;
1306 return reinterpret_cast<UIDNA *>(IDNA::createUTS46Instance(options, *pErrorCode));
1310 uidna_close(UIDNA *idna) {
1311 delete reinterpret_cast<IDNA *>(idna);
1345 uidna_labelToASCII(const UIDNA *idna,
1355 reinterpret_cast<const IDNA *>(idna)->labelToASCII(src, destString, info, *pErrorCode);
1361 uidna_labelToUnicode(const UIDNA *idna,
1371 reinterpret_cast<const IDNA *>(idna)->labelToUnicode(src, destString, info, *pErrorCode);
1377 uidna_nameToASCII(const UIDNA *idna,
1387 reinterpret_cast<const IDNA *>(idna)->nameToASCII(src, destString, info, *pErrorCode);
1393 uidna_nameToUnicode(const UIDNA *idna,
1403 reinterpret_cast<const IDNA *>(idna)->nameToUnicode(src, destString, info, *pErrorCode);
1409 uidna_labelToASCII_UTF8(const UIDNA *idna,
1419 reinterpret_cast<const IDNA *>(idna)->labelToASCII_UTF8(src, sink, info, *pErrorCode);
1425 uidna_labelToUnicodeUTF8(const UIDNA *idna,
1435 reinterpret_cast<const IDNA *>(idna)->labelToUnicodeUTF8(src, sink, info, *pErrorCode);
1441 uidna_nameToASCII_UTF8(const UIDNA *idna,
1451 reinterpret_cast<const IDNA *>(idna)->nameToASCII_UTF8(src, sink, info, *pErrorCode);
1457 uidna_nameToUnicodeUTF8(const UIDNA *idna,
1467 reinterpret_cast<const IDNA *>(idna)->nameToUnicodeUTF8(src, sink, info, *pErrorCode);