C# Class AGS.CScript.Compiler.FastString

Optimised class to allow Substrings to be done without creating new copies of the string data in memory
Show file Open project: adventuregamestudio/ags Class Usage Examples

Public Methods

Method Description
FastString ( string source ) : System
FastString ( string source, int offset ) : System
IndexOf ( char text ) : int
IndexOf ( char text, int offset ) : int
IndexOf ( string text ) : int
IndexOf ( string text, int offset ) : int
StartsWith ( string text ) : bool
Substring ( int offset ) : FastString
Substring ( int offset, int length ) : string
ToString ( ) : string
Trim ( ) : FastString
this ( int index ) : char

Method Details

FastString() public method

public FastString ( string source ) : System
source string
return System

FastString() public method

public FastString ( string source, int offset ) : System
source string
offset int
return System

IndexOf() public method

public IndexOf ( char text ) : int
text char
return int

IndexOf() public method

public IndexOf ( char text, int offset ) : int
text char
offset int
return int

IndexOf() public method

public IndexOf ( string text ) : int
text string
return int

IndexOf() public method

public IndexOf ( string text, int offset ) : int
text string
offset int
return int

StartsWith() public method

public StartsWith ( string text ) : bool
text string
return bool

Substring() public method

public Substring ( int offset ) : FastString
offset int
return FastString

Substring() public method

public Substring ( int offset, int length ) : string
offset int
length int
return string

ToString() public method

public ToString ( ) : string
return string

Trim() public method

public Trim ( ) : FastString
return FastString

this() public method

public this ( int index ) : char
index int
return char