Add Ltac2 Char.is_space, String.split_on_char and String.trim#22239
Open
JasonGross wants to merge 1 commit into
Open
Add Ltac2 Char.is_space, String.split_on_char and String.trim#22239JasonGross wants to merge 1 commit into
JasonGross wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ttctspSoVoquHLQtbPVZw
57166f4 to
f855903
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[Written by Claude (Fable 5) via Claude Code, on behalf of @JasonGross; extracted from a larger Ltac2 utility library. One of a series of small independent Ltac2 stdlib additions.]
Adds whitespace handling to
Ltac2.Char/Ltac2.String:Char.is_space(space, tab, newline, carriage return, form feed — the same set as OCaml'sString.trim),String.split_on_charwith OCaml semantics (result never empty, empty segments preserved,String.concat (String.make 1 sep) (split_on_char sep s) = s), andString.trim.Design note: the isolated decisions are the whitespace character set and the empty-segment behavior of
split_on_char.🤖 Generated with Claude Code
https://claude.ai/code/session_019ttctspSoVoquHLQtbPVZw