Commit Graph

23 Commits

Author SHA1 Message Date
32cbf7b7c8 Bugfix for text hashing 2024-12-26 17:15:52 -05:00
46b61d3ed2 Add text:by_line()/:by_split()/:by_match() 2024-12-21 16:32:22 -05:00
478ddad9aa Add Text:reversed() 2024-12-19 15:32:19 -05:00
b0faa5adc2 Add Text:from()/to() and Array:slice() for symmetry 2024-12-19 13:50:35 -05:00
aa26234471 Minor cleanups and fixes to RNG, chacha, and text 2024-12-17 14:24:37 -05:00
a201939a81 Use likely()/unlikely() macros and a few bugfixes for integers 2024-12-07 15:59:37 -05:00
17e473a98a Bugfix for text memory allocations 2024-12-04 14:18:19 -05:00
f66f8ad711 Add serialization and deserialization 2024-11-29 18:09:12 -05:00
4b5e4cd1f2 Change how types handle metamethods 2024-11-29 12:55:14 -05:00
1e3fb8a2c0 Rename "NULL" to "NONE" 2024-11-24 16:18:21 -05:00
ccada385c4 Add Text.at(i) for getting a single cluster 2024-11-19 13:27:27 -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
aabc0a3cff Update text API to use optional returns when applicable 2024-11-04 01:17:47 -05:00
9ebb039a81 Fix up some GCC compiler flag options for LTO and inlining 2024-10-29 23:14:31 -04:00
29d1d74d7a Move unistr header out of tomo header 2024-10-25 14:05:07 -04:00
1a6ce0047b Rename TypeInfo -> TypeInfo_t and fix up some typeinfo code 2024-09-30 14:39:30 -04:00
14b04f97be Quote Patterns with "|" instead of "/" when applicable 2024-09-16 00:29:12 -04:00
10a51ad996 Bugfix for string escaping in printouts 2024-09-16 00:15:54 -04:00
259c7efcf8 Make sure that escape sequences don't accidentally trigger the next
backslash to be interpreted as an escape sequence when printing quoted
text
2024-09-15 14:09:49 -04:00
9cff275dc6 Slightly improve text quoting so it outputs "a$\r\nb" instead of
"a$\r$\nb"
2024-09-15 14:07:20 -04:00
75e0201fad Improve automatic text quoting so it minimizes escape sequences when
possible.
2024-09-15 14:03:16 -04:00
6012a00763 Clean up pattern code to make better use of TextIter_t and fix up
URI/URL patterns
2024-09-14 00:12:52 -04:00
c455e7b67d Rename builtins/ -> stdlib/ 2024-09-13 20:18:08 -04:00