mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Punycode encoder/decoder: separate core and parts that depend on UTF8
encoder/decoder Swift SVN r20307
This commit is contained in:
@@ -718,7 +718,7 @@ private:
|
||||
auto decode = [&](StringRef s) -> StringRef {
|
||||
if (!isPunycoded)
|
||||
return s;
|
||||
if (Punycode::decodePunycode(s, decodeBuffer))
|
||||
if (!Punycode::decodePunycodeUTF8(s, decodeBuffer))
|
||||
return {};
|
||||
return decodeBuffer;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user