lean4-htt/tests/lean/string_imp2.lean.expected.out
Markus Himmel bf60550ce5
chore: rename Substring to Substring.Raw (#11154)
This PR renames `Substring`  to `Substring.Raw`.

This is to signify its status as a second-class citizen (not deprecated,
but no real plans for verification, like `String.Pos.Raw`) and to free
up the name `Substring` for a possible future type `String.Substring :
String -> Type` so that `s.Substring` is the type of substrings of `s`.

The functions `String.toSubstring` and `String.toSubstring'` will remain
for now for bootstrapping reasons.
2025-11-16 09:30:04 +00:00

47 lines
591 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"hellohello"
"hello hello"
5
['h', 'e', 'l', 'l', 'o']
['α', 'β']
[]
['α', 'β', 'γ']
"αβγ"
"αβγ"
"αβγ"
{ byteIdx := 2 }
['α', 'β']
"αβa"
"α α-"
'A'
"aβγ"
"abγ"
"abc"
"cbγ"
"0bc"
"01c"
"012"
"21c"
"λbc"
"abc-bc"
"abc"
"a\x00bb"
4
false
true
false
false
true
true
false
true
false
"βγ"
"γ"
"αβγδ".toRawSubstring
"abcd".toRawSubstring
"abcd".toRawSubstring
["abc".toRawSubstring, "αβγ".toRawSubstring, "123".toRawSubstring, "".toRawSubstring]
["abc".toRawSubstring, "αβγ".toRawSubstring, "123".toRawSubstring, "".toRawSubstring]
'α'
'β'
{ byteIdx := 4 }