lean4-htt/src/Lean/Data/Lsp
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
..
Basic.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
BasicAux.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
CancelParams.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
Capabilities.lean chore: remove redundant imports in core (#10750) 2025-10-16 20:27:46 +00:00
Client.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
CodeActions.lean chore: remove redundant imports in core (#10750) 2025-10-16 20:27:46 +00:00
Communication.lean refactor: use String.split instead of String.splitOn or String.splitToList (#11250) 2025-11-19 09:35:19 +00:00
Diagnostics.lean chore: remove redundant imports in core (#10750) 2025-10-16 20:27:46 +00:00
Extra.lean chore: remove redundant imports in core (#10750) 2025-10-16 20:27:46 +00:00
InitShutdown.lean doc: clarify server protocol violations around initialize (#11091) 2025-11-05 09:53:39 +00:00
Internal.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
Ipc.lean chore: remove redundant imports in core (#10750) 2025-10-16 20:27:46 +00:00
LanguageFeatures.lean chore: rename String.endPos -> String.rawEndPos (#10853) 2025-10-21 11:25:30 +00:00
TextSync.lean chore: remove redundant imports in core (#10750) 2025-10-16 20:27:46 +00:00
Utf16.lean refactor: redefine String.replace (#10986) 2025-10-29 07:48:33 +00:00
Window.lean refactor: module-ize Lean (#9330) 2025-07-25 12:02:51 +00:00
Workspace.lean chore: remove redundant imports in core (#10750) 2025-10-16 20:27:46 +00:00