Commit f64ba62
committed
feat: Add Tier 1-2 ZRTL plugins (string, json, regex, process)
New plugins:
- zrtl_string: String manipulation (45+ functions)
- Basic: length, concat, repeat, join
- Case: to_upper, to_lower, capitalize, to_title
- Trim: trim, trim_start, trim_end
- Search: contains, starts_with, ends_with, index_of, count
- Replace: replace, replace_all, remove
- Extract: substring, char_at, split, lines
- Padding: pad_start, pad_end
- Conversion: parse_int, parse_float, from_int, from_float
- Comparison: compare, equals (case-sensitive and insensitive)
- zrtl_json: JSON parsing and manipulation
- Handle-based API for JSON values
- Parse/stringify with pretty-print option
- Type checking (null, bool, number, string, array, object)
- Object access: get, set, has, keys, remove
- Array access: length, get, set, push, pop
- Constructors: null, bool, int, float, string, array, object
- JSONPath-like access via dot-notation paths
- zrtl_regex: Regular expression matching
- Pattern compilation with case-insensitive option
- Matching: is_match, find, find_all, count
- Replacement: replace_first, replace_all
- Capture groups: capture, captures
- Splitting: split, splitn
- Quick functions for one-off operations
- Escape utility for literal strings
- zrtl_process: Subprocess execution
- Quick execution: run, run_capture, shell, shell_capture
- Process management: spawn, wait, kill, is_running, id
- I/O: read_stdout, read_stderr, write_stdin, close_stdin
- Utility: current_pid, command_exists
Updated book chapter 14 with documentation for all new plugins.
Total plugins: 11 (IO, FS, Time, Thread, Net, Env, Math, String, JSON, Regex, Process)1 parent 5a1ba37 commit f64ba62
10 files changed
Lines changed: 2566 additions & 0 deletions
File tree
- book
- plugins
- zrtl_json
- src
- zrtl_process
- src
- zrtl_regex
- src
- zrtl_string
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
209 | 294 | | |
210 | 295 | | |
211 | 296 | | |
| |||
225 | 310 | | |
226 | 311 | | |
227 | 312 | | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
228 | 317 | | |
229 | 318 | | |
230 | 319 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments