VerseIsland
FeedLearnLeaderboardGuidesReferenceExploreSearchDocsVerse Library
Sign in
Feed Learn 📖 Codex Leaderboard Guides Reference Explore Search Docs Verse Library
Browse Community Snippets›Verse Language·Up to Community Snippets · Verse Language·63 of 114 in Verse Language

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 Discord — free for members Read the original at Epic Games documentation

Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.

Guided course

Add this to your free study plan — we’ll suggest related material and stitch it into one compile-checked lesson.

Keep exploring
More in Verse Language · 63 of 114
Prev
math utils
Next
tag utils

Source

Epic Games documentation

Bizanator

MIT

View original
VerseIsland· an archipelago of Verse & UEFN knowledge
🗺️ Island atlasLearnGuidesHistoryAbout & PressSources & LicensingPrivacy PolicyTermsStatus

Not affiliated with Epic Games. Fortnite, UEFN, Unreal Engine, and Verse are trademarks of Epic Games, Inc. Content is attributed to its source — see Sources & Licensing.

🦜

Scout · your island guide

The Isle of Verse