diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-08-16 17:21:01 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-08-16 17:21:01 -0400 |
| commit | c72b0406a32ffc3f04324f7b6c321486762fca41 (patch) | |
| tree | 244e51c858890ea2ffb8c74a2c33c81b79de376e /CHANGES.md | |
| parent | 849fd423a759edf1b58b548a6148c177a6f8cd71 (diff) | |
Improved parsing and prefix/suffix matching using a `remainder`
parameter
Diffstat (limited to 'CHANGES.md')
| -rw-r--r-- | CHANGES.md | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -10,10 +10,17 @@ number and exit. - Added `tomo --prefix` to print the Tomo install prefix. - Sets now support infix operations for `and`, `or`, `xor`, and `-`. -- Added Path.sibling(). -- Added Path.has_extension(). -- Added Table.with_fallback(). -- Added Int*.get_bit() and Byte.get_bit(). +- Added `Path.sibling()`. +- Added `Path.has_extension()`. +- Added `Table.with_fallback()`. +- Added `Int*.get_bit()` and `Byte.get_bit()`. +- Added `Byte.parse()` to parse bytes from text. +- Added optional `remainder` parameter to `parse()` methods, which (if + non-none) receives the remaining text after the match. If `none`, the match + will fail unless it consumes the whole text. +- Added optional `remainder` parameter to `Text.starts_with()` and + `Text.ends_with()` to allow you to get the rest of the text without two + function calls. - Improved space efficiency of Text that contains non-ASCII codepoints. - Doctests now use equality checking instead of converting to text. - Fixed the following bugs: |
