Crates.io | string-mumu |
lib.rs | string-mumu |
version | 0.1.0 |
created_at | 2025-07-09 06:24:52.463849+00 |
updated_at | 2025-07-09 06:24:52.463849+00 |
description | String functions and tools plugin for the Lava language |
homepage | https://lava.nu11.uk |
repository | https://gitlab.com/tofo/mumu-string |
max_upload_size | |
id | 1744283 |
size | 80,592 |
mumu-string
is a powerful string utilities plugin for the Lava language. It provides a rich set of string manipulation functions—ranging from basic case conversion to concatenation, slicing, replacement, partial application, and more.
lower
, upper
, trim
, length
, to_string
.concat
, split
, join
, replace
, contains
, starts_with
, ends_with
, slice
, repeat
, index_of
, last_index_of
._
for currying functions.Example usage in the REPL:
string:concat("Hello", "World") ; "HelloWorld"
string:replace("foo bar foo", "foo", "baz") ; "baz bar baz"
string:trim(" spaces ") ; "spaces"
string:slice("abcdef", 2, 5) ; "cde"
Add mumustring
to your Cargo.toml
:
[dependencies]
mumustring = "0.1.0"
Compile and install the shared library:
git clone https://gitlab.com/your-org/mum-ustring.git
cd mumustring
make
make install
This places libmumustring.so
(and symlink libstring.so
) into /usr/local/lib/
. Then in the Lava REPL:
extend("string")
string:upper("hello") ; "HELLO"
Dual-licensed under MIT and Apache‑2.0. Choose whichever suits your needs. See LICENSE for full terms.
Contributions welcome! Please open issues or merge requests on GitLab. Refer to the code style and tests for adding new features.
For help or questions, open an issue on the GitLab repository.