2 lines
7.4 KiB
JSON
2 lines
7.4 KiB
JSON
[{"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, 114, 101, 112], "input": [244, 143, 191, 191], "flags": "0", "rc": "STRINGPREP_CONTAINS_PROHIBITED", "output": null}, {"comment": "Surrogate code U+DF42", "profile": [78, 97, 109, 101, 112, 114, 101, 112], "input": [237, 189, 130], "flags": "0", "rc": "STRINGPREP_CONTAINS_PROHIBITED", "output": null}, {"comment": "Non-plain text character U+FFFD", "profile": [78, 97, 109, 101, 112, 114, 101, 112], "input": [239, 191, 189], "flags": "0", "rc": "STRINGPREP_CONTAINS_PROHIBITED", "output": null}, {"comment": "Ideographic description character U+2FF5", "profile": [78, 97, 109, 101, 112, 114, 101, 112], "input": [226, 191, 181], "flags": "0", "rc": "STRINGPREP_CONTAINS_PROHIBITED", "output": null}, {"comment": "Display property character U+0341", "output": [204, 129], "input": [205, 129]}, {"comment": "Left-to-right mark U+200E", "profile": [78, 97, 109, 101, 112, 114, 101, 112], "input": [226, 128, 142], "flags": "0", "rc": "STRINGPREP_CONTAINS_PROHIBITED", "output": [204, 129]}, {"comment": "Deprecated U+202A", "profile": [78, 97, 109, 101, 112, 114, 101, 112], "input": [226, 128, 170], "flags": "0", "rc": "STRINGPREP_CONTAINS_PROHIBITED", "output": [204, 129]}, {"comment": "Language tagging character U+E0001", "profile": [78, 97, 109, 101, 112, 114, 101, 112], "input": [243, 160, 128, 129], "flags": "0", "rc": "STRINGPREP_CONTAINS_PROHIBITED", "output": [204, 129]}, {"comment": "Language tagging character U+E0042", "profile": [78, 97, 109, 101, 112, 114, 101, 112], "input": [243, 160, 129, 130], "flags": "0", "rc": "STRINGPREP_CONTAINS_PROHIBITED", "output": null}, {"comment": "Bidi: RandALCat character U+05BE and LCat characters", "profile": [78, 97, 109, 101, 112, 114, 101, 112], "input": [102, 111, 111, 214, 190, 98, 97, 114], "flags": "0", "rc": "STRINGPREP_BIDI_BOTH_L_AND_RAL", "output": null}, {"comment": "Bidi: RandALCat character U+FD50 and LCat characters", "profile": [78, 97, 109, 101, 112, 114, 101, 112], "input": [102, 111, 111, 239, 181, 144, 98, 97, 114], "flags": "0", "rc": "STRINGPREP_BIDI_BOTH_L_AND_RAL", "output": null}, {"comment": "Bidi: RandALCat character U+FB38 and LCat characters", "output": [102, 111, 111, 32, 217, 142, 98, 97, 114], "input": [102, 111, 111, 239, 185, 182, 98, 97, 114]}, {"comment": "Bidi: RandALCat without trailing RandALCat U+0627 U+0031", "profile": [78, 97, 109, 101, 112, 114, 101, 112], "input": [216, 167, 49], "flags": "0", "rc": "STRINGPREP_BIDI_LEADTRAIL_NOT_RAL", "output": null}, {"comment": "Bidi: RandALCat character U+0627 U+0031 U+0628", "output": [216, 167, 49, 216, 168], "input": [216, 167, 49, 216, 168]}, {"comment": "Unassigned code point U+E0002", "profile": [78, 97, 109, 101, 112, 114, 101, 112], "input": [243, 160, 128, 130], "flags": "STRINGPREP_NO_UNASSIGNED", "rc": "STRINGPREP_CONTAINS_UNASSIGNED", "output": null}, {"comment": "Larger test (shrinking)", "output": [120, 115, 115, 105, 204, 135, 116, 101, 108, 199, 176, 32, 97, 206, 176, 32], "profile": [78, 97, 109, 101, 112, 114, 101, 112], "input": [88, 194, 173, 195, 159, 196, 176, 226, 132, 161, 106, 204, 140, 194, 160, 194, 170, 206, 176, 226, 128, 128]}, {"comment": "Larger test (expanding)", "output": [120, 115, 115, 227, 130, 173, 227, 131, 173, 227, 131, 161, 227, 131, 188, 227, 131, 136, 227, 131, 171, 105, 204, 135, 116, 101, 108, 40, 100, 41, 227, 130, 162, 227, 131, 145, 227, 131, 188, 227, 131, 136], "input": [88, 195, 159, 227, 140, 150, 196, 176, 226, 132, 161, 226, 146, 159, 227, 140, 128]}]
|