Method
public bool StartsWith(string str)
|
public bool StartsWith(FastString str)
|
Parameters
str
|
string
|
String to look for
|
Returns
bool
True if starts with given string
DescriptionReturns true if string starts with the given string. Example FastString fstr = new FastString(256);
void Update() { fstr.Set("RetroBlit"); Debug.Log(fstr.StartsWith("Retro")); Debug.Log(fstr.StartsWith("Blit"));
fstr.Set(" RetroBlit"); Debug.Log(fstr.StartsWith("Retro")); } |
See AlsoFastString.EndsWith |