ethers.js/packages/testcases/input/nameprep-josefsson-idn.json

2 lines
7.4 KiB
JSON
Raw Permalink Normal View History

[{"comment": "Map to nothing", "output": [102, 111, 111, 98, 97, 114, 98, 97, 122], "input": [102, 111, 111, 194, 173, 205, 143, 225, 160, 134, 225, 160, 139, 98, 97, 114, 226, 128, 139, 226, 129, 160, 98, 97, 122, 239, 184, 128, 239, 184, 136, 239, 184, 143, 239, 187, 191]}, {"comment": "Case folding ASCII U+0043 U+0041 U+0046 U+0045", "output": [99, 97, 102, 101], "input": [67, 65, 70, 69]}, {"comment": "Case folding 8bit U+00DF (german sharp s)", "output": [115, 115], "input": [195, 159]}, {"comment": "Case folding U+0130 (turkish capital I with dot)", "output": [105, 204, 135], "input": [196, 176]}, {"comment": "Case folding multibyte U+0143 U+037A", "output": [197, 132, 32, 206, 185], "input": [197, 131, 205, 186]}, {"comment": "Case folding U+2121 U+33C6 U+1D7BB", "output": [116, 101, 108, 99, 226, 136, 149, 107, 103, 207, 131], "input": [226, 132, 161, 227, 143, 134, 240, 157, 158, 187]}, {"comment": "Normalization of U+006a U+030c U+00A0 U+00AA", "output": [199, 176, 32, 97], "input": [106, 204, 140, 194, 160, 194, 170]}, {"comment": "Case folding U+1FB7 and normalization", "output": [225, 190, 182, 206, 185], "input": [225, 190, 183]}, {"comment": "Self-reverting case folding U+01F0 and normalization", "output": [199, 176], "input": [199, 176]}, {"comment": "Self-reverting case folding U+0390 and normalization", "output": [206, 144], "input": [206, 144]}, {"comment": "Self-reverting case folding U+03B0 and normalization", "output": [206, 176], "input": [206, 176]}, {"comment": "Self-reverting case folding U+1E96 and normalization", "output": [225, 186, 150], "input": [225, 186, 150]}, {"comment": "Self-reverting case folding U+1F56 and normalization", "output": [225, 189, 150], "input": [225, 189, 150]}, {"comment": "ASCII space character U+0020", "output": [32], "input": [32]}, {"comment": "Non-ASCII 8bit space character U+00A0", "output": [32], "input": [194, 160]}, {"comment": "Non-ASCII multibyte space character U+1680", "profile": [78, 97, 109, 101, 112, 114, 101, 112], "input": [225, 154, 128], "flags": "0", "rc": "STRINGPREP_CONTAINS_PROHIBITED", "output": null}, {"comment": "Non-ASCII multibyte space character U+2000", "output": [32], "input": [226, 128, 128]}, {"comment": "Zero Width Space U+200b", "output": [], "input": [226, 128, 139]}, {"comment": "Non-ASCII multibyte space character U+3000", "output": [32], "input": [227, 128, 128]}, {"comment": "ASCII control characters U+0010 U+007F", "output": [16, 127], "input": [16, 127]}, {"comment": "Non-ASCII 8bit control character U+0085", "profile": [78, 97, 109, 101, 112, 114, 101, 112], "input": [194, 133], "flags": "0", "rc": "STRINGPREP_CONTAINS_PROHIBITED", "output": null}, {"comment": "Non-ASCII multibyte control character U+180E", "profile": [78, 97, 109, 101, 112, 114, 101, 112], "input": [225, 160, 142], "flags": "0", "rc": "STRINGPREP_CONTAINS_PROHIBITED", "output": null}, {"comment": "Zero Width No-Break Space U+FEFF", "output": [], "input": [239, 187, 191]}, {"comment": "Non-ASCII control character U+1D175", "profile": [78, 97, 109, 101, 112, 114, 101, 112], "input": [240, 157, 133, 181], "flags": "0", "rc": "STRINGPREP_CONTAINS_PROHIBITED", "output": null}, {"comment": "Plane 0 private use character U+F123", "profile": [78, 97, 109, 101, 112, 114, 101, 112], "input": [239, 132, 163], "flags": "0", "rc": "STRINGPREP_CONTAINS_PROHIBITED", "output": null}, {"comment": "Plane 15 private use character U+F1234", "profile": [78, 97, 109, 101, 112, 114, 101, 112], "input": [243, 177, 136, 180], "flags": "0", "rc": "STRINGPREP_CONTAINS_PROHIBITED", "output": null}, {"comment": "Plane 16 private use character U+10F234", "profile": [78, 97, 109, 101, 112, 114, 101, 112], "input": [244, 143, 136, 180], "flags": "0", "rc": "STRINGPREP_CONTAINS_PROHIBITED", "output": null}, {"comment": "Non-character code point U+8FFFE", "profile": [78, 97, 109, 101, 112, 114, 101, 112], "input": [242, 143, 191, 190], "flags": "0", "rc": "STRINGPREP_CONTAINS_PROHIBITED", "output": null}, {"comment": "Non-character code point U+10FFFF", "profile": [78, 97, 109, 101, 112, 11