v2.0.0
string_unescape
方便的实用工具,用于解码字符串表示形式(Unicode、换行符、制表符等)。
6喜欢 2.7万近 30 天下载140Pub 分数
AndroidiOSWebmacOSWindowsLinux
方便的实用工具,用于解码字符串表示形式(Unicode、换行符、制表符等)。
以下为英文项目原文快照,最新内容请访问 GitHub。
Handy utility to unescape string representation (unicode, newline, tab, etc).
expect(unescape(r"a\nb"), "a\nb");
expect(unescape(r"a\x0ab"), "a\nb");
expect(unescapeChar(r"a"), 97);
expect(unescapeChar(r"🀀"), 0x1F000);