aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/text.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-12-28 17:30:04 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-12-28 17:30:04 -0500
commitfedc4b0ead8f7874120c6e86aaa971a790faea1f (patch)
tree2973f9691b72c97a9cc80fd75c4db8e2e2c59e63 /src/stdlib/text.c
parent469030e9686e81c520c2ecbeab703a07361f51a4 (diff)
parentcfce376f585e0cd0231e95843617f75bd65b6c07 (diff)
Merge branch 'dev' into static-dependencies
Diffstat (limited to 'src/stdlib/text.c')
-rw-r--r--src/stdlib/text.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/stdlib/text.c b/src/stdlib/text.c
index ce48091a..ccb2510f 100644
--- a/src/stdlib/text.c
+++ b/src/stdlib/text.c
@@ -670,10 +670,14 @@ Text_t Text$slice(Text_t text, Int_t first_int, Int_t last_int) {
}
public
-Text_t Text$from(Text_t text, Int_t first) { return Text$slice(text, first, I_small(-1)); }
+Text_t Text$from(Text_t text, Int_t first) {
+ return Text$slice(text, first, I_small(-1));
+}
public
-Text_t Text$to(Text_t text, Int_t last) { return Text$slice(text, I_small(1), last); }
+Text_t Text$to(Text_t text, Int_t last) {
+ return Text$slice(text, I_small(1), last);
+}
public
Text_t Text$reversed(Text_t text) {
@@ -815,7 +819,9 @@ OptionalText_t Text$from_strn(const char *str, size_t len) {
}
public
-OptionalText_t Text$from_str(const char *str) { return str ? Text$from_strn(str, strlen(str)) : Text(""); }
+OptionalText_t Text$from_str(const char *str) {
+ return str ? Text$from_strn(str, strlen(str)) : Text("");
+}
static void u8_buf_append(Text_t text, Byte_t **buf, int64_t *capacity, int64_t *i) {
switch (text.tag) {