Commit Graph

31 Commits

Author SHA1 Message Date
4720ca7a5f Rename Text.utf8_bytes back to Text.bytes 2024-11-19 13:30:45 -05:00
ccada385c4 Add Text.at(i) for getting a single cluster 2024-11-19 13:27:27 -05:00
e97c3850b8 Document Text.slice() 2024-11-19 12:59:06 -05:00
898bee1581 Introduce a Match struct to represent pattern matching results, which
improves the usability of a lot of the APIs. Also bugfix some issues
with ranges.
2024-11-09 16:27:54 -05:00
7a4f2e73ad Rename from_text() to parse() 2024-11-09 15:11:11 -05:00
be2673ef2b Make Text:find() return an optional int 2024-11-02 13:51:58 -04:00
ce2aebe910 Update docs to reflect deprecation of "&" stack references 2024-10-27 21:14:27 -04:00
5a80ff0db3 Update docs to standardize function signature formatting 2024-10-09 13:48:45 -04:00
074cf22ad4 Change function syntax from func(args)->ret to func(args -> ret) 2024-10-09 13:26:28 -04:00
e31e3d1514 Update docs 2024-09-16 15:15:17 -04:00
9800784d41 Update docs 2024-09-15 15:35:47 -04:00
e422079fcc Add a Byte datatype 2024-09-15 15:33:47 -04:00
9447ba8c4a Split pattern code into its own file 2024-09-13 13:34:04 -04:00
e16792d5eb Add Text.starts_with() and Text.ends_with() 2024-09-09 05:31:25 -04:00
44892df4c5 Add Text.trim() 2024-09-06 00:03:28 -04:00
d3c4f613ac Update to reflect code growth 2024-09-05 04:00:15 -04:00
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
f99e94c532 Document {nl} 2024-09-04 14:13:42 -04:00
df844946f7 Add Text:matches() for convenience and performance 2024-09-04 00:34:27 -04:00
b8bb4ada8b Add recursive mode to text replacement and update docs 2024-09-03 23:16:45 -04:00
02dbcbf8b5 Update docs 2024-09-03 22:59:36 -04:00
850fc8fbe1 Clean up text replacement API to use backrefs instead of match_chain() 2024-09-03 22:56:53 -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
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
5feecff9d9 Deprecate Where and change channel API to use a boolean front value 2024-09-03 03:53:36 -04:00
7b44044b5e Updated docs 2024-09-03 01:18:22 -04:00
5441e6f287 Update docs 2024-09-03 00:54:48 -04:00
6c22999ede Add text slicing 2024-09-02 23:56:08 -04:00
67e8f2dea0 Move docs into one folder 2024-08-19 00:23:02 -04:00