AudioAsset
Ease
FastString
FontAsset
NineSlice
PackedSprite
PackedSpriteID
RB
   HardwareSettings
   IRetroBlitGame
RBAsset
Rect2i
ShaderAsset
SoundReference
SpriteGrid
SpriteSheetAsset
TMXMapAsset
   TMXLayer
   TMXLayerLoadState
   TMXObject
   TMXObjectGroup
   TMXProperties
Vector2i

FastString.ToLowerInvariant

Method

public FastString ToLowerInvariant()

Parameters

No parameters.

Returns

FastString

The same instance of FastString

Description

Convert to lower case characters. The results will be consistent regardless of regional settings.

The FastString.ToLowerInvariant method returns this, which allows it to be chained with other methods such as FastString.Append.

Example

// Allocate a FastString that can hold up to 256 characters
FastString fstr = new FastString(256);

void Render() {
    // Prints "RetroBlit"
    fstr.Set("RetroBlit");
    RB.Print(new Vector2i(00), Color.white, fstr);

    // Prints "retroblit"
    fstr.ToLowerInvariant();
    RB.Print(new Vector2i(020), Color.white, fstr);

    // Prints "RETROBLIT"
    fstr.ToUpperInvariant();
    RB.Print(new Vector2i(040), Color.white, fstr);
}

See Also

FastString.ToLower
FastString.ToUpper
FastString.ToUpperInvariant

See Docs

Features - Avoid GC with Fast String