mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 09:23:44 +00:00
library/string.m:
Simplify string.append(out, out, in) and make it work sensibly in
the presence of ill-formed code unit sequences, breaking the input
string after each code point or code unit in an ill-formed sequence.
tests/hard_coded/Mmakefile:
tests/hard_coded/string_append_ooi_ilseq.exp:
tests/hard_coded/string_append_ooi_ilseq.exp2:
tests/hard_coded/string_append_ooi_ilseq.m:
Add test case.
13 lines
92 B
Plaintext
13 lines
92 B
Plaintext
L:
|
|
R: 😀 0xd83d z
|
|
|
|
L: 😀
|
|
R: 0xd83d z
|
|
|
|
L: 😀 0xd83d
|
|
R: z
|
|
|
|
L: 😀 0xd83d z
|
|
R:
|
|
|