C# Class SharpOS.Kernel.Foundation.CString8

Represents a C-style (null-terminated) string.
Show file Open project: sharpos/SharpOS Class Usage Examples

Public Properties

Property Type Description
firstChar byte

Public Methods

Method Description
Compare ( CString8 str ) : int

Compares the string against str.

Compare ( CString8 str, int count ) : int

Compares count characters of the string against str.

Compare ( CString8 str, int offset, int count ) : int

Compares count characters of the string against str.

Compare ( PString8 str ) : int

Compares the string against str.

Compare ( PString8 str, int count ) : int

Compares count characters of the string against str.

Compare ( PString8 str, int offset, int count ) : int

Compares count characters of the string against str.

Compare ( byte str ) : int

Compares the string against str.

Compare ( byte str, int count ) : int

Compares count characters of the string against str.

Compare ( byte str, int offset, int count ) : int

Compares count characters of the string against str.

Compare ( int from, CString8 str, int offset, int count ) : int

Compares count characters of the string against str.

Compare ( int from, PString8 str, int offset, int count ) : int

Compares count characters of the string against str.

Compare ( int from, byte str, int offset, int count ) : int

Compares count characters of the string against str.

Compare ( int from, string str, int offset, int count ) : int

Compares count characters of the string against str.

Compare ( string str ) : int

Compares the string against str.

Compare ( string str, int count ) : int

Compares count characters of the string against str.

Compare ( string str, int offset, int count ) : int

Compares count characters of the string against str.

Copy ( CString8 original ) : CString8*
Copy ( byte original ) : CString8*
Copy ( string str ) : CString8*
Create ( int capacity ) : CString8*
CreateEmpty ( ) : CString8*
DISPOSE ( CString8 cstr ) : void
GetChar ( int index ) : byte
GetChar ( int index, bool boundsCheck ) : byte

If boundsCheck is true, makes sure index is within bounds, then gets the character at index from the string..

IndexOf ( CString8 substr ) : int
IndexOf ( PString8 substr ) : int
IndexOf ( byte substr ) : int
IndexOf ( int from, CString8 substr ) : int
IndexOf ( int from, CString8 substr, int count ) : int
IndexOf ( int from, CString8 substr, int offset, int count ) : int
IndexOf ( int from, PString8 substr ) : int
IndexOf ( int from, PString8 substr, int count ) : int
IndexOf ( int from, PString8 substr, int offset, int count ) : int
IndexOf ( int from, byte substr ) : int
IndexOf ( int from, byte substr, int count ) : int
IndexOf ( int from, byte substr, int offset, int count ) : int
IndexOf ( int from, string substr ) : int
IndexOf ( int from, string substr, int count ) : int
IndexOf ( int from, string substr, int offset, int count ) : int
IndexOf ( string substr ) : int
SetChar ( int index, byte value ) : void
SetChar ( int index, byte value, bool boundsCheck ) : void
Substring ( int index ) : CString8*
Substring ( int index, int count ) : CString8*
Trim ( ) : CString8*

Generates a new CString8 instance that is identical to this one, minus any leading or trailing whitespace

__Test1 ( ) : void

Private Methods

Method Description
IndexOf ( int from, byte substr, int substrLen, int offset, int count ) : int
Substring_INTERNAL ( int index, int count ) : CString8*
__RunTests ( ) : void

Method Details

Compare() public method

Compares the string against str.
public Compare ( CString8 str ) : int
str CString8
return int

Compare() public method

Compares count characters of the string against str.
public Compare ( CString8 str, int count ) : int
str CString8
count int
return int

Compare() public method

Compares count characters of the string against str.
public Compare ( CString8 str, int offset, int count ) : int
str CString8
offset int
count int
return int

Compare() public method

Compares the string against str.
public Compare ( PString8 str ) : int
str PString8
return int

Compare() public method

Compares count characters of the string against str.
public Compare ( PString8 str, int count ) : int
str PString8
count int
return int

Compare() public method

Compares count characters of the string against str.
public Compare ( PString8 str, int offset, int count ) : int
str PString8
offset int
count int
return int

Compare() public method

Compares the string against str.
public Compare ( byte str ) : int
str byte
return int

Compare() public method

Compares count characters of the string against str.
public Compare ( byte str, int count ) : int
str byte
count int
return int

Compare() public method

Compares count characters of the string against str.
public Compare ( byte str, int offset, int count ) : int
str byte
offset int
count int
return int

Compare() public method

Compares count characters of the string against str.
public Compare ( int from, CString8 str, int offset, int count ) : int
from int
str CString8
offset int
count int
return int

Compare() public method

Compares count characters of the string against str.
public Compare ( int from, PString8 str, int offset, int count ) : int
from int
str PString8
offset int
count int
return int

Compare() public method

Compares count characters of the string against str.
public Compare ( int from, byte str, int offset, int count ) : int
from int
str byte
offset int
count int
return int

Compare() public method

Compares count characters of the string against str.
public Compare ( int from, string str, int offset, int count ) : int
from int
str string
offset int
count int
return int

Compare() public method

Compares the string against str.
public Compare ( string str ) : int
str string
return int

Compare() public method

Compares count characters of the string against str.
public Compare ( string str, int count ) : int
str string
count int
return int

Compare() public method

Compares count characters of the string against str.
public Compare ( string str, int offset, int count ) : int
str string
offset int
count int
return int

Copy() public static method

public static Copy ( CString8 original ) : CString8*
original CString8
return CString8*

Copy() public static method

public static Copy ( byte original ) : CString8*
original byte
return CString8*

Copy() public static method

public static Copy ( string str ) : CString8*
str string
return CString8*

Create() public static method

public static Create ( int capacity ) : CString8*
capacity int
return CString8*

CreateEmpty() public static method

public static CreateEmpty ( ) : CString8*
return CString8*

DISPOSE() public static method

public static DISPOSE ( CString8 cstr ) : void
cstr CString8
return void

GetChar() public method

public GetChar ( int index ) : byte
index int
return byte

GetChar() public method

If boundsCheck is true, makes sure index is within bounds, then gets the character at index from the string..
public GetChar ( int index, bool boundsCheck ) : byte
index int
boundsCheck bool
return byte

IndexOf() public method

public IndexOf ( CString8 substr ) : int
substr CString8
return int

IndexOf() public method

public IndexOf ( PString8 substr ) : int
substr PString8
return int

IndexOf() public method

public IndexOf ( byte substr ) : int
substr byte
return int

IndexOf() public method

public IndexOf ( int from, CString8 substr ) : int
from int
substr CString8
return int

IndexOf() public method

public IndexOf ( int from, CString8 substr, int count ) : int
from int
substr CString8
count int
return int

IndexOf() public method

public IndexOf ( int from, CString8 substr, int offset, int count ) : int
from int
substr CString8
offset int
count int
return int

IndexOf() public method

public IndexOf ( int from, PString8 substr ) : int
from int
substr PString8
return int

IndexOf() public method

public IndexOf ( int from, PString8 substr, int count ) : int
from int
substr PString8
count int
return int

IndexOf() public method

public IndexOf ( int from, PString8 substr, int offset, int count ) : int
from int
substr PString8
offset int
count int
return int

IndexOf() public method

public IndexOf ( int from, byte substr ) : int
from int
substr byte
return int

IndexOf() public method

public IndexOf ( int from, byte substr, int count ) : int
from int
substr byte
count int
return int

IndexOf() public method

public IndexOf ( int from, byte substr, int offset, int count ) : int
from int
substr byte
offset int
count int
return int

IndexOf() public method

public IndexOf ( int from, string substr ) : int
from int
substr string
return int

IndexOf() public method

public IndexOf ( int from, string substr, int count ) : int
from int
substr string
count int
return int

IndexOf() public method

public IndexOf ( int from, string substr, int offset, int count ) : int
from int
substr string
offset int
count int
return int

IndexOf() public method

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

SetChar() public method

public SetChar ( int index, byte value ) : void
index int
value byte
return void

SetChar() public method

public SetChar ( int index, byte value, bool boundsCheck ) : void
index int
value byte
boundsCheck bool
return void

Substring() public method

public Substring ( int index ) : CString8*
index int
return CString8*

Substring() public method

public Substring ( int index, int count ) : CString8*
index int
count int
return CString8*

Trim() public method

Generates a new CString8 instance that is identical to this one, minus any leading or trailing whitespace
public Trim ( ) : CString8*
return CString8*

__Test1() public static method

public static __Test1 ( ) : void
return void

Property Details

firstChar public property

public byte firstChar
return byte