Commit Graph

68 Commits

Author SHA1 Message Date
3a556296b6 Add Text:repeat() 2024-09-04 21:22:03 -04:00
00543b4e87 Add Text.map(pat, fn) 2024-09-04 21:02:37 -04:00
570c4c63ca Remove readline dependency 2024-09-04 14:36:23 -04:00
716c30d592 Add nl/newline/clrf pattern 2024-09-04 14:12:41 -04:00
e0aca8fa72 Add method for getting a length-based string as Text 2024-09-04 03:02:30 -04:00
df844946f7 Add Text:matches() for convenience and performance 2024-09-04 00:34:27 -04:00
fbb7bee68b Don't bold DSL text 2024-09-03 23:55:11 -04:00
b8bb4ada8b Add recursive mode to text replacement and update docs 2024-09-03 23:16:45 -04:00
850fc8fbe1 Clean up text replacement API to use backrefs instead of match_chain() 2024-09-03 22:56:53 -04:00
79b48365d6 Add comments 2024-09-03 21:34:29 -04:00
d321a23b3d Bugfix for "?" 2024-09-03 21:32:29 -04:00
c14ed3e3e7 Add Text.replace_all({Pattern:Text}) and tweak API for replacement to
support placeholders
2024-09-03 20:48:11 -04:00
e86813d9c1 Bugfix for $/{..}/ 2024-09-03 15:14:46 -04:00
82849ba783 Use Text("...") literal constructor instead of Text$from_str("...")
function call.
2024-09-03 15:00:28 -04:00
de7b564a91 Escape question marks in patterns 2024-09-03 14:31:21 -04:00
91c5dc61c1 Change pattern syntax from [..pat] to {pat} 2024-09-03 14:27:09 -04:00
64143f0a13 Syntax overhaul (comments back to #, print statments to !!),
using `$/.../` for patterns and using a DSL for patterns
2024-09-03 13:19:41 -04:00
5f0b099e14 Better behavior for invalid character names 2024-09-03 01:32:00 -04:00
b517f3b287 Fix codepoint names by falling back to block names 2024-09-03 01:30:07 -04:00
e98e77e1d3 Fix for missing codepoint names 2024-09-03 01:20:36 -04:00
3df85ee6d8 Add [..int] and [..num] 2024-09-03 00:36:10 -04:00
5aa5a5e99b Fix some stuff around Text:find() and text indexing 2024-09-02 23:47:16 -04:00
5d6fa135b1 Add Text:find_all() 2024-09-02 23:26:55 -04:00
9d2e9c02fe Fix splitting an empty string 2024-09-02 23:24:16 -04:00
6e4be93848 Add Text:join() and tests 2024-09-02 23:13:02 -04:00
6d7e09bf18 Add Text:split() and use that with an empty pattern instead of Text:clusters() 2024-09-02 23:07:08 -04:00
9214e621bf Add Text:lines() 2024-09-02 22:57:49 -04:00
970f7a87ca Add %#k printing and fix issue with concatenating zero-length strings 2024-09-02 22:40:44 -04:00
708acda54e WIP fixes for synthetic graphemes and adding some text conversion
methods
2024-09-02 22:30:19 -04:00
cac560fdc3 Text fixes 2024-09-02 21:18:15 -04:00
55d758c3c4 Fix casing methods 2024-09-02 20:47:58 -04:00
0d8ef1d44b Fix printing issue 2024-09-02 20:34:00 -04:00
620ebeab8d Fixing string methods 2024-09-02 20:22:13 -04:00
6d7a359f8f Bugfix some text replacement things 2024-09-02 19:49:52 -04:00
a4454df4b9 Bugfix int parsing 2024-09-02 19:23:35 -04:00
b0a8404bd7 Fix enums/structs 2024-09-02 19:18:21 -04:00
94761d9a5a Fix some stuff 2024-09-02 19:05:06 -04:00
185ddaca82 Bugfix 2024-09-02 18:54:53 -04:00
61e482f6f3 Initial WIP first past 2024-09-02 18:47:39 -04:00
934b843b1c Add .text_content as a field on DSLs instead of a method 2024-08-19 14:29:58 -04:00
8363d53bd2 Update channel API to take a Where parameter 2024-08-18 23:59:13 -04:00
9c2d7c437d Fix up type conversions with ints and nums 2024-08-14 14:57:01 -04:00
d08f795794 Partially working first draft of bigints 2024-08-13 01:30:25 -04:00
926995f58d Bugfix for Text:split() 2024-08-10 16:41:23 -04:00
167634eaa4 Change array API to take a padded item size instead of a type info in
most cases
2024-08-03 15:33:50 -04:00
78960b1461 Randomize hash key on startup and rename to TOMO_HASH_KEY. 2024-07-04 16:46:24 -04:00
e9abf8a370 Prefer 'sizeof(t[n])' over 'sizeof(t)*n' 2024-06-06 15:05:35 -04:00
c5c3be9e5d Deprecate Text.slice() 2024-05-20 15:27:42 -04:00
5b1960859f Hook up Text.has(), Text.trimmed(), Text.without() 2024-05-20 15:19:31 -04:00
7dddfb71a0 Add Text.slice() 2024-05-19 14:38:44 -04:00