You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: Implement the immutable String slice wrapper and the OwnedString type for allocator-aware formatting.
Acceptance Criteria:
Implement STRING_new.
Implement STRING_format and STRING_formatVariadic utilizing snprintf/memccpy safely under the hood.
Tests must verify that STRING_format routes through the provided Allocator, returns a valid OwnedString via the Monad union, and properly handles allocation failures.
Stringslice wrapper and theOwnedStringtype for allocator-aware formatting.STRING_new.STRING_formatandSTRING_formatVariadicutilizingsnprintf/memccpysafely under the hood.STRING_formatroutes through the providedAllocator, returns a validOwnedStringvia theMonadunion, and properly handles allocation failures.