C# Class LeopotamGroup.Collections.FastString

Mostra file Open project: Leopotam/LeopotamGroupLibraryUnity Class Usage Examples

Public Methods

Method Description
Append ( FastString rhs ) : FastString

Append specified FastString to end of current string.

Append ( char rhs ) : FastString

Append specified character to end of current string.

Append ( string rhs ) : FastString

Append specified string to end of current string.

Clear ( ) : void

Clear string data.

FastString ( ) : System

Default constructor with empty string data.

FastString ( string rhs ) : System

Constructor with specified default string data.

ToString ( ) : string

Return final string, no GC allocation.

Trim ( int amount ) : FastString

Trim current string with specified amount of characters from end.

UpdateLength ( ) : void
this ( int idx ) : char

Get / set character at specified position.

Method Details

Append() public method

Append specified FastString to end of current string.
public Append ( FastString rhs ) : FastString
rhs FastString String to append.
return FastString

Append() public method

Append specified character to end of current string.
public Append ( char rhs ) : FastString
rhs char Character to append.
return FastString

Append() public method

Append specified string to end of current string.
public Append ( string rhs ) : FastString
rhs string String to append.
return FastString

Clear() public method

Clear string data.
public Clear ( ) : void
return void

FastString() public method

Default constructor with empty string data.
public FastString ( ) : System
return System

FastString() public method

Constructor with specified default string data.
public FastString ( string rhs ) : System
rhs string Init string data.
return System

ToString() public method

Return final string, no GC allocation.
public ToString ( ) : string
return string

Trim() public method

Trim current string with specified amount of characters from end.
public Trim ( int amount ) : FastString
amount int Amount.
return FastString

UpdateLength() public method

public UpdateLength ( ) : void
return void

this() public method

Get / set character at specified position.
public this ( int idx ) : char
idx int Index.
return char