From 0c4db4fea1960571318444bd39593533b04b3716 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Tue, 20 Oct 2026 11:00:16 +0000 Subject: feat(library): add experimental string RIGHT function Co-Authored-By: Claude Opus 5.5 --- pseudocode-lib/README.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pseudocode-lib/README.md') diff --git a/pseudocode-lib/README.md b/pseudocode-lib/README.md index b776d16..6a4c23c 100644 --- a/pseudocode-lib/README.md +++ b/pseudocode-lib/README.md @@ -20,3 +20,5 @@ INCLUDE paths are relative to the program. Adjust them when the program is elsew The library provides `&`, `_EXP_STRING_NUM_TO_STR` (INTEGER/REAL), `_EXP_STRING_STR_TO_NUM` (REAL), `_EXP_STRING_LENGTH` (byte length) and `_EXP_STRING_OUTPUT` (text plus newline). Numeric formatting uses `std::to_string`; parsing uses `std::stod` and requires full consumption. C++ standard exceptions print the user call line and are catchable with TRY/CATCH. The built-in STRING remains available with its existing lifetime and NUL limitations. Owning class values inside whole-record or BYVAL-array copies still have bitwise-copy limitations. `_EXP_STRING_LEFT(S : _EXP_STRING, Count : INTEGER)` returns a new `_EXP_STRING` containing up to Count bytes from the beginning. Nonpositive counts return an empty string; counts exceeding the length return the whole string. Embedded NUL bytes are preserved. + +`_EXP_STRING_RIGHT(S : _EXP_STRING, Count : INTEGER)` returns a new `_EXP_STRING` containing up to Count bytes from the end. Nonpositive counts return an empty string; counts exceeding the length return the whole string. Embedded NUL bytes are preserved. -- cgit v1.3.1-4-g156e