diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-06-20 16:50:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-20 16:50:07 +0200 |
| commit | d9e08bc5d8a1292e3eccdb325bde4d180ebb4749 (patch) | |
| tree | 07f06b1d0a3730acd0bdf33dfd25f8171758a6a9 | |
| parent | 208ace0b0306cd88344442ef2f0ef9d66772a153 (diff) | |
| parent | b82753227da67f75381e30a8c9ed38097566bed8 (diff) | |
Merge pull request #5374 from Feoramund/fix-regex-docs
Fix RegEx docs
| -rw-r--r-- | core/sys/posix/posix.odin | 2 | ||||
| -rw-r--r-- | core/text/regex/regex.odin | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/core/sys/posix/posix.odin b/core/sys/posix/posix.odin index d56217407..1e6a0aa9b 100644 --- a/core/sys/posix/posix.odin +++ b/core/sys/posix/posix.odin @@ -31,7 +31,7 @@ Unimplemented headers: - iso646.h | Impossible - math.h | See `core:c/libc` - mqueue.h | Targets don't seem to have implemented it -- regex.h | See `core:regex` +- regex.h | See `core:text/regex` - search.h | Not useful in Odin - spawn.h | Use `fork`, `execve`, etc. - stdarg.h | See `core:c/libc` diff --git a/core/text/regex/regex.odin b/core/text/regex/regex.odin index 7456634ac..bff82c407 100644 --- a/core/text/regex/regex.odin +++ b/core/text/regex/regex.odin @@ -28,8 +28,6 @@ Creation_Error :: enum { Expected_Delimiter, // An unknown letter was supplied to `create_by_user` after the last delimiter. Unknown_Flag, - // An unsupported flag was supplied. - Unsupported_Flag, } Error :: union #shared_nil { @@ -69,7 +67,6 @@ Regular_Expression :: struct { /* An iterator to repeatedly match a pattern against a string, to be used with `*_iterator` procedures. -Note: Does not handle `.Multiline` properly. */ Match_Iterator :: struct { regex: Regular_Expression, @@ -436,7 +433,6 @@ match_with_preallocated_capture :: proc( /* Iterate over a `Match_Iterator` and return successive captures. -Note: Does not handle `.Multiline` properly. Inputs: - it: Pointer to the `Match_Iterator` to iterate over. |