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

FastString.Contains

Method

public bool Contains(string str)
public bool Contains(FastString str)
public bool Contains(char c)

Parameters

str string String to find
c char Character to find

Returns

bool

True if found

Description

Returns true if contains given string.

Example

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

void Update() {
    fstr.Set("retroblit is retro");
    Debug.Log(fstr.Contains("retro")); // true
    Debug.Log(fstr.Contains('i')); // true
    Debug.Log(fstr.Contains("missing")); // false
}