String Utilities
String Utilities
Generic string helpers: StartsWith, EndsWith, Contains, PadLeft, Split, and an AsMessage wrapper for UI text.
Original, compile-verified Verse by Bizanator (Biloxi Studios). Clean-room sample you can drop into a UEFN project and adapt.
-
# String Utilities — Biloxi Studios Inc. # # Generic, dependency-free string helpers: case-insensitive checks, prefix/suffix # tests, left-padding, simple splitting, and a `message` wrapper for UI text. # Written as a module of parametric-free `string`/`[]char` functions. # # Teaches: iterating chars, building strings, <decides> for boolean-style checks, # the <localizes> effect for producing `message` values, and char comparison. using { /Verse.org/Simulation } string_utils<public> := module: # Succeeds when Source starts with Prefix. StartsWith<public>(Source:string, Prefix:string)<decides><transacts>:void = Prefix.Length <= Source.Length Head := Source.Slice[0, Prefix.Length] Head = Prefix # Succeeds when Source ends with Suffix. EndsWith<public>(Source:string, Suffix:string)<decides><transacts>:void = Suffix.Length <= Source.Length Tail := Source.Slice[Source.Length - Suffix.Length, Source.Length] Tail = Suffix
You're reading a preview
The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.
Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.