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

FastString.ToUpper

Method

public FastString ToUpper()

Parameters

No parameters.

Returns

FastString

The same instance of FastString

Description

Convert to upper case characters. The results could differ depending on regional settings. For consistent results use FastString.ToUpperInvariant.

The FastString.ToUpper 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.ToLower();
    RB.Print(new Vector2i(020), Color.white, fstr);

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

See Also

FastString.ToLower
FastString.ToLowerInvariant
FastString.ToUpperInvariant

See Docs

Features - Avoid GC with Fast String