Files
mercury/tests/hard_coded/string_append_ooi_ilseq.exp
Peter Wang cd899271c6 Make string.append(out, out, in) work with ill-formed sequences.
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.
2019-10-24 12:31:29 +11:00

19 lines
186 B
Plaintext

L:
R: 😀 0xf0 0x9f 0x98 z
L: 😀
R: 0xf0 0x9f 0x98 z
L: 😀 0xf0
R: 0x9f 0x98 z
L: 😀 0xf0 0x9f
R: 0x98 z
L: 😀 0xf0 0x9f 0x98
R: z
L: 😀 0xf0 0x9f 0x98 z
R: