Punycode encoder/decoder: separate core and parts that depend on UTF8

encoder/decoder


Swift SVN r20307
This commit is contained in:
Dmitri Hrybenko
2014-07-22 14:37:37 +00:00
parent 87ed6c8a5b
commit 56342b0cfa
7 changed files with 117 additions and 81 deletions

View File

@@ -92,7 +92,7 @@ void Mangler::mangleIdentifier(Identifier ident, OperatorFixity fixity) {
if (isNonAscii(str)) {
Buffer << 'X';
Punycode::encodePunycode(str, punycodeBuf);
Punycode::encodePunycodeUTF8(str, punycodeBuf);
str = punycodeBuf;
}