skip to content
[readonly]
==> README.md <==
1# @ajax/mesh-mt
2
3Growable strings (`mt_buf`), string lists (`mt_strs`), `mt_fmt`, and Rust's splitting
4(`mt_split` = `split(c)`, `mt_words` = `split_whitespace()`, `mt_lines` = `lines()`,
5`mt_split_once`, `mt_trim`) with Rust's exact edge cases (`"".split(',')` is one empty item).
6
7The fleet packages build and parse their text wire formats with these, the way the Rust did with
8`String` and `Vec<String>`. Allocation failure aborts.
9
10## Ported from
11
12The `String` / `Vec<String>` / `str` methods [alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh)'s
13`mesh-host` fleet code (fleet.rs, sched.rs, cluster.rs, peer.rs) uses.
14
15## Tests
16
17`tests/text.c`: splitting edge cases, buffers, lists.
18
19## Licence
20
21MIT. See the repository's LICENSE.