lean4-htt/src/Init/Data/String
Markus Himmel 52d05b6972
refactor: use String.split instead of String.splitOn or String.splitToList (#11250)
This PR introduces a function `String.split` which is based on
`String.Slice.split` and therefore supports all pattern types and
returns a `Std.Iter String.Slice`.

This supersedes the functions `String.splitOn` and `String.splitToList`,
and we remove all all uses of these functions from core. They will be
deprecated in a future PR.

Migrating from `String.splitOn` and `String.splitToList` is easy: we
introduce functions `Iter.toStringList` and `Iter.toStringArray` that
can be used to conveniently go from `Std.Iter String.Slice` to `List
String` and `Array String`, so for example `s.splitOn "foo"` can be
replaced by `s.split "foo" |>.toStringList`.
2025-11-19 09:35:19 +00:00
..
Lemmas feat: String.toList_map (#11021) 2025-11-01 13:54:39 +00:00
Pattern fix: KMP implementation (#10998) 2025-10-29 06:04:45 +00:00
Basic.lean refactor: use String.split instead of String.splitOn or String.splitToList (#11250) 2025-11-19 09:35:19 +00:00
Bootstrap.lean chore: rename Substring to Substring.Raw (#11154) 2025-11-16 09:30:04 +00:00
Decode.lean perf: improve performance of String.ValidPos (#11142) 2025-11-11 15:30:47 +00:00
Defs.lean chore: deprecate String.toSubstring (#11232) 2025-11-18 13:50:50 +00:00
Extra.lean refactor: do not use String.Iterator (#11127) 2025-11-11 11:46:58 +00:00
Iterator.lean chore: rename Substring to Substring.Raw (#11154) 2025-11-16 09:30:04 +00:00
Legacy.lean refactor: use String.split instead of String.splitOn or String.splitToList (#11250) 2025-11-19 09:35:19 +00:00
Lemmas.lean feat: add Std.Trichotomous (#10945) 2025-11-18 13:20:53 +00:00
Modify.lean feat: String.toList_map (#11021) 2025-11-01 13:54:39 +00:00
Pattern.lean feat: new String.Slice API (#10514) 2025-09-25 12:18:52 +00:00
PosRaw.lean chore: add deprecations for duplicated theorems (#10967) 2025-10-29 05:26:16 +00:00
Repr.lean chore: rename Substring to Substring.Raw (#11154) 2025-11-16 09:30:04 +00:00
Search.lean refactor: use String.split instead of String.splitOn or String.splitToList (#11250) 2025-11-19 09:35:19 +00:00
Slice.lean refactor: use String.split instead of String.splitOn or String.splitToList (#11250) 2025-11-19 09:35:19 +00:00
Stream.lean chore: rename Substring to Substring.Raw (#11154) 2025-11-16 09:30:04 +00:00
Substring.lean chore: rename Substring to Substring.Raw (#11154) 2025-11-16 09:30:04 +00:00
TakeDrop.lean refactor: use String.Slice in String.take and variants (#11180) 2025-11-18 16:13:48 +00:00
Termination.lean chore: some String API cleanup in Lake.Util.Version (#11160) 2025-11-14 08:56:56 +00:00
ToSlice.lean refactor: redefine String.replace (#10986) 2025-10-29 07:48:33 +00:00