From 65599524f5b41ffb6d8d55664611612c0b57ad47 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Tue, 20 Oct 2026 11:01:01 +0000 Subject: feat(library): add experimental string MID function Co-Authored-By: Claude Opus 5.5 --- tests/library/exp-string/notes.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/library/exp-string/notes.md') diff --git a/tests/library/exp-string/notes.md b/tests/library/exp-string/notes.md index ff25d0f..c05d6d7 100644 --- a/tests/library/exp-string/notes.md +++ b/tests/library/exp-string/notes.md @@ -9,3 +9,5 @@ LEFT keeps ABC, returns zero bytes for an empty source or nonpositive count, and RIGHT keeps FGH, returns zero bytes for an empty source or nonpositive count, and clamps 20 to all eight letters. Taking four bytes from hello followed by three NULs retains the final o and all three NULs. The added checks use separate procedures to keep generated temporary-object cleanup small enough for the ordinary runner timeout. + +MID positions 2..4 give BCD. The minimum INTEGER start clamps to 1 and gives AB; a maximum count from position 7 gives GH. Empty input, a maximum start, and nonpositive counts give length zero. Four bytes starting at the second of three NULs retain two NULs and AB. -- cgit v1.3.1-4-g156e