C# Класс SharpOS.Kernel.Foundation.CString8

Represents a C-style (null-terminated) string.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
firstChar byte

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
IndexOf ( int from, byte substr, int substrLen, int offset, int count ) : int
Substring_INTERNAL ( int index, int count ) : CString8*
__RunTests ( ) : void

Описание методов

Compare() публичный Метод

Compares the string against str.
public Compare ( CString8 str ) : int
str CString8
Результат int

Compare() публичный Метод

Compares count characters of the string against str.
public Compare ( CString8 str, int count ) : int
str CString8
count int
Результат int

Compare() публичный Метод

Compares count characters of the string against str.
public Compare ( CString8 str, int offset, int count ) : int
str CString8
offset int
count int
Результат int

Compare() публичный Метод

Compares the string against str.
public Compare ( PString8 str ) : int
str PString8
Результат int

Compare() публичный Метод

Compares count characters of the string against str.
public Compare ( PString8 str, int count ) : int
str PString8
count int
Результат int

Compare() публичный Метод

Compares count characters of the string against str.
public Compare ( PString8 str, int offset, int count ) : int
str PString8
offset int
count int
Результат int

Compare() публичный Метод

Compares the string against str.
public Compare ( byte str ) : int
str byte
Результат int

Compare() публичный Метод

Compares count characters of the string against str.
public Compare ( byte str, int count ) : int
str byte
count int
Результат int

Compare() публичный Метод

Compares count characters of the string against str.
public Compare ( byte str, int offset, int count ) : int
str byte
offset int
count int
Результат int

Compare() публичный Метод

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
Результат int

Compare() публичный Метод

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
Результат int

Compare() публичный Метод

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
Результат int

Compare() публичный Метод

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
Результат int

Compare() публичный Метод

Compares the string against str.
public Compare ( string str ) : int
str string
Результат int

Compare() публичный Метод

Compares count characters of the string against str.
public Compare ( string str, int count ) : int
str string
count int
Результат int

Compare() публичный Метод

Compares count characters of the string against str.
public Compare ( string str, int offset, int count ) : int
str string
offset int
count int
Результат int

Copy() публичный статический Метод

public static Copy ( CString8 original ) : CString8*
original CString8
Результат CString8*

Copy() публичный статический Метод

public static Copy ( byte original ) : CString8*
original byte
Результат CString8*

Copy() публичный статический Метод

public static Copy ( string str ) : CString8*
str string
Результат CString8*

Create() публичный статический Метод

public static Create ( int capacity ) : CString8*
capacity int
Результат CString8*

CreateEmpty() публичный статический Метод

public static CreateEmpty ( ) : CString8*
Результат CString8*

DISPOSE() публичный статический Метод

public static DISPOSE ( CString8 cstr ) : void
cstr CString8
Результат void

GetChar() публичный Метод

public GetChar ( int index ) : byte
index int
Результат byte

GetChar() публичный Метод

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
Результат byte

IndexOf() публичный Метод

public IndexOf ( CString8 substr ) : int
substr CString8
Результат int

IndexOf() публичный Метод

public IndexOf ( PString8 substr ) : int
substr PString8
Результат int

IndexOf() публичный Метод

public IndexOf ( byte substr ) : int
substr byte
Результат int

IndexOf() публичный Метод

public IndexOf ( int from, CString8 substr ) : int
from int
substr CString8
Результат int

IndexOf() публичный Метод

public IndexOf ( int from, CString8 substr, int count ) : int
from int
substr CString8
count int
Результат int

IndexOf() публичный Метод

public IndexOf ( int from, CString8 substr, int offset, int count ) : int
from int
substr CString8
offset int
count int
Результат int

IndexOf() публичный Метод

public IndexOf ( int from, PString8 substr ) : int
from int
substr PString8
Результат int

IndexOf() публичный Метод

public IndexOf ( int from, PString8 substr, int count ) : int
from int
substr PString8
count int
Результат int

IndexOf() публичный Метод

public IndexOf ( int from, PString8 substr, int offset, int count ) : int
from int
substr PString8
offset int
count int
Результат int

IndexOf() публичный Метод

public IndexOf ( int from, byte substr ) : int
from int
substr byte
Результат int

IndexOf() публичный Метод

public IndexOf ( int from, byte substr, int count ) : int
from int
substr byte
count int
Результат int

IndexOf() публичный Метод

public IndexOf ( int from, byte substr, int offset, int count ) : int
from int
substr byte
offset int
count int
Результат int

IndexOf() публичный Метод

public IndexOf ( int from, string substr ) : int
from int
substr string
Результат int

IndexOf() публичный Метод

public IndexOf ( int from, string substr, int count ) : int
from int
substr string
count int
Результат int

IndexOf() публичный Метод

public IndexOf ( int from, string substr, int offset, int count ) : int
from int
substr string
offset int
count int
Результат int

IndexOf() публичный Метод

public IndexOf ( string substr ) : int
substr string
Результат int

SetChar() публичный Метод

public SetChar ( int index, byte value ) : void
index int
value byte
Результат void

SetChar() публичный Метод

public SetChar ( int index, byte value, bool boundsCheck ) : void
index int
value byte
boundsCheck bool
Результат void

Substring() публичный Метод

public Substring ( int index ) : CString8*
index int
Результат CString8*

Substring() публичный Метод

public Substring ( int index, int count ) : CString8*
index int
count int
Результат CString8*

Trim() публичный Метод

Generates a new CString8 instance that is identical to this one, minus any leading or trailing whitespace
public Trim ( ) : CString8*
Результат CString8*

__Test1() публичный статический Метод

public static __Test1 ( ) : void
Результат void

Описание свойств

firstChar публичное свойство

public byte firstChar
Результат byte