From 496c020541d4d35e5800b813b3f8d113a8f2b90b Mon Sep 17 00:00:00 2001 From: _ov4 Date: Tue, 20 Oct 2026 11:02:36 +0000 Subject: feat(library): add experimental string UCASE overloads Co-Authored-By: Claude Opus 5.5 --- pseudocode-lib/_exp_string.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'pseudocode-lib/_exp_string.cc') diff --git a/pseudocode-lib/_exp_string.cc b/pseudocode-lib/_exp_string.cc index 6155319..bd476b8 100644 --- a/pseudocode-lib/_exp_string.cc +++ b/pseudocode-lib/_exp_string.cc @@ -101,6 +101,18 @@ char _exp_string_impl_lcase_char(char Ch) { return static_cast(std::tolower(static_cast(Ch))); }); } +void _exp_string_impl_ucase(void *Target, void *Handle) { + checked([&] { + text(Target) = text(Handle); + for (char &Ch : text(Target)) + Ch = static_cast(std::toupper(static_cast(Ch))); + }); +} +char _exp_string_impl_ucase_char(char Ch) { + return checked([&] { + return static_cast(std::toupper(static_cast(Ch))); + }); +} void _exp_string_impl_output(void *Handle) { checked([&] { const auto &Text = text(Handle); -- cgit v1.3.1-4-g156e