C# Класс IronRuby.Builtins.MutableString.Content

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_owner MutableString

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

Метод Описание
Append ( Content content, int start, int count ) : void
Append ( System.Stream stream, int count ) : void
Append ( byte b, int repeatCount ) : void
Append ( byte bytes, int start, int count ) : void
Append ( char c, int repeatCount ) : void
Append ( char chars, int start, int count ) : void
Append ( string str, int start, int count ) : void
AppendFormat ( IFormatProvider provider, string format, object args ) : void
AppendTo ( BinaryContent content, int start, int count ) : void
AppendTo ( CharArrayContent content, int start, int count ) : void
AppendTo ( StringContent content, int start, int count ) : void
CalculateHashCode ( ) : int
CheckEncoding ( ) : void
Clone ( ) : Content
Concat ( Content content ) : Content
ConcatTo ( BinaryContent content ) : Content
ConcatTo ( CharArrayContent content ) : Content
ConcatTo ( StringContent content ) : Content
ContainsInvalidCharacters ( ) : bool
ConvertToBytes ( ) : byte[]
ConvertToString ( ) : string
EscapeRegularExpression ( ) : Content
GetBinarySlice ( int start, int count ) : byte[]
GetByte ( int index ) : byte

Gets index'th byte of the string. Throws if the string includes invalid characters.

GetByteCount ( ) : int

Returns the number of bytes in the string. Throws if the string includes invalid characters.

GetBytes ( ) : IEnumerable
GetCapacity ( ) : int
GetChar ( int index ) : char

Gets index'th character of the string. Throws if the string includes invalid characters.

GetCharCount ( ) : int

Returns the number of characters in the string. Counts surrogates as two characters.

GetCharacterCount ( ) : int

Returns the number of true Unicode characters in the string.

GetCharacters ( ) : CharacterEnumerator
GetSlice ( int start, int count ) : Content

Returns a slice of the content. The size of the slice could be less than the requested count if there is not enough data in the content. Returns an empty content if start is greater than the size of the content. The owner of the result is the current owner.

GetStringSlice ( int start, int count ) : string
IndexIn ( Content str, int start, int count ) : int
IndexOf ( byte b, int start, int count ) : int
IndexOf ( char c, int start, int count ) : int
IndexOf ( string str, int start, int count ) : int
Insert ( int index, byte b ) : void
Insert ( int index, byte bytes, int start, int count ) : void
Insert ( int index, char c ) : void
Insert ( int index, char chars, int start, int count ) : void
Insert ( int index, string str, int start, int count ) : void
InsertTo ( Content str, int index, int start, int count ) : void
LastIndexIn ( Content str, int start, int count ) : int
LastIndexOf ( byte b, int start, int count ) : int
LastIndexOf ( char c, int start, int count ) : int
LastIndexOf ( string str, int start, int count ) : int
OrdinalCompareTo ( Content content ) : int
OrdinalCompareTo ( string str ) : int
Remove ( int start, int count ) : void
ReverseOrdinalCompareTo ( BinaryContent content ) : int
ReverseOrdinalCompareTo ( CharArrayContent content ) : int
ReverseOrdinalCompareTo ( StringContent content ) : int
SetByte ( int index, byte b ) : void
SetCapacity ( int capacity ) : void
SetChar ( int index, char c ) : void
StartsWith ( char c ) : bool
SwitchToBinaryContent ( ) : Content
SwitchToMutableContent ( ) : Content
SwitchToStringContent ( ) : Content
ToByteArray ( ) : byte[]
TrimExcess ( ) : void
UpdateCharacterFlags ( uint flags ) : uint
Write ( int offset, byte value, int repeatCount ) : void
Write ( int offset, byte value, int start, int count ) : void

Защищенные методы

Метод Описание
Content ( MutableString owner ) : System
WrapContent ( byte bytes, int count ) : BinaryContent
WrapContent ( char chars, int count ) : CharArrayContent

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

Метод Описание
GetByteArray ( int &count ) : byte[]
SetOwner ( MutableString owner ) : void
UpdateAsciiAndSurrogatesFlags ( char str, int itemCount, uint flags ) : uint
UpdateAsciiAndSurrogatesFlags ( string str, uint flags ) : uint

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

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

public abstract Append ( Content content, int start, int count ) : void
content Content
start int
count int
Результат void

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

public abstract Append ( System.Stream stream, int count ) : void
stream System.Stream
count int
Результат void

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

public abstract Append ( byte b, int repeatCount ) : void
b byte
repeatCount int
Результат void

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

public abstract Append ( byte bytes, int start, int count ) : void
bytes byte
start int
count int
Результат void

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

public abstract Append ( char c, int repeatCount ) : void
c char
repeatCount int
Результат void

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

public abstract Append ( char chars, int start, int count ) : void
chars char
start int
count int
Результат void

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

public abstract Append ( string str, int start, int count ) : void
str string
start int
count int
Результат void

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

public abstract AppendFormat ( IFormatProvider provider, string format, object args ) : void
provider IFormatProvider
format string
args object
Результат void

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

public abstract AppendTo ( BinaryContent content, int start, int count ) : void
content BinaryContent
start int
count int
Результат void

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

public abstract AppendTo ( CharArrayContent content, int start, int count ) : void
content CharArrayContent
start int
count int
Результат void

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

public abstract AppendTo ( StringContent content, int start, int count ) : void
content StringContent
start int
count int
Результат void

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

public abstract CalculateHashCode ( ) : int
Результат int

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

public abstract CheckEncoding ( ) : void
Результат void

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

public abstract Clone ( ) : Content
Результат Content

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

public abstract Concat ( Content content ) : Content
content Content
Результат Content

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

public abstract ConcatTo ( BinaryContent content ) : Content
content BinaryContent
Результат Content

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

public abstract ConcatTo ( CharArrayContent content ) : Content
content CharArrayContent
Результат Content

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

public abstract ConcatTo ( StringContent content ) : Content
content StringContent
Результат Content

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

public abstract ContainsInvalidCharacters ( ) : bool
Результат bool

Content() защищенный Метод

protected Content ( MutableString owner ) : System
owner MutableString
Результат System

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

public abstract ConvertToBytes ( ) : byte[]
Результат byte[]

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

public abstract ConvertToString ( ) : string
Результат string

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

public abstract EscapeRegularExpression ( ) : Content
Результат Content

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

public abstract GetBinarySlice ( int start, int count ) : byte[]
start int
count int
Результат byte[]

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

Gets index'th byte of the string. Throws if the string includes invalid characters.
public abstract GetByte ( int index ) : byte
index int
Результат byte

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

Returns the number of bytes in the string. Throws if the string includes invalid characters.
public abstract GetByteCount ( ) : int
Результат int

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

public abstract GetBytes ( ) : IEnumerable
Результат IEnumerable

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

public abstract GetCapacity ( ) : int
Результат int

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

Gets index'th character of the string. Throws if the string includes invalid characters.
public abstract GetChar ( int index ) : char
index int
Результат char

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

Returns the number of characters in the string. Counts surrogates as two characters.
Invalid character.
public abstract GetCharCount ( ) : int
Результат int

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

Returns the number of true Unicode characters in the string.
public abstract GetCharacterCount ( ) : int
Результат int

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

public abstract GetCharacters ( ) : CharacterEnumerator
Результат CharacterEnumerator

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

Returns a slice of the content. The size of the slice could be less than the requested count if there is not enough data in the content. Returns an empty content if start is greater than the size of the content. The owner of the result is the current owner.
public abstract GetSlice ( int start, int count ) : Content
start int
count int
Результат Content

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

public abstract GetStringSlice ( int start, int count ) : string
start int
count int
Результат string

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

public abstract IndexIn ( Content str, int start, int count ) : int
str Content
start int
count int
Результат int

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

public abstract IndexOf ( byte b, int start, int count ) : int
b byte
start int
count int
Результат int

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

public abstract IndexOf ( char c, int start, int count ) : int
c char
start int
count int
Результат int

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

public abstract IndexOf ( string str, int start, int count ) : int
str string
start int
count int
Результат int

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

public abstract Insert ( int index, byte b ) : void
index int
b byte
Результат void

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

public abstract Insert ( int index, byte bytes, int start, int count ) : void
index int
bytes byte
start int
count int
Результат void

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

public abstract Insert ( int index, char c ) : void
index int
c char
Результат void

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

public abstract Insert ( int index, char chars, int start, int count ) : void
index int
chars char
start int
count int
Результат void

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

public abstract Insert ( int index, string str, int start, int count ) : void
index int
str string
start int
count int
Результат void

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

public abstract InsertTo ( Content str, int index, int start, int count ) : void
str Content
index int
start int
count int
Результат void

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

public abstract LastIndexIn ( Content str, int start, int count ) : int
str Content
start int
count int
Результат int

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

public abstract LastIndexOf ( byte b, int start, int count ) : int
b byte
start int
count int
Результат int

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

public abstract LastIndexOf ( char c, int start, int count ) : int
c char
start int
count int
Результат int

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

public abstract LastIndexOf ( string str, int start, int count ) : int
str string
start int
count int
Результат int

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

public abstract OrdinalCompareTo ( Content content ) : int
content Content
Результат int

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

public abstract OrdinalCompareTo ( string str ) : int
str string
Результат int

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

public abstract Remove ( int start, int count ) : void
start int
count int
Результат void

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

public abstract ReverseOrdinalCompareTo ( BinaryContent content ) : int
content BinaryContent
Результат int

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

public abstract ReverseOrdinalCompareTo ( CharArrayContent content ) : int
content CharArrayContent
Результат int

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

public abstract ReverseOrdinalCompareTo ( StringContent content ) : int
content StringContent
Результат int

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

public abstract SetByte ( int index, byte b ) : void
index int
b byte
Результат void

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

public abstract SetCapacity ( int capacity ) : void
capacity int
Результат void

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

public abstract SetChar ( int index, char c ) : void
index int
c char
Результат void

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

public abstract StartsWith ( char c ) : bool
c char
Результат bool

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

public abstract SwitchToBinaryContent ( ) : Content
Результат Content

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

public abstract SwitchToMutableContent ( ) : Content
Результат Content

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

public abstract SwitchToStringContent ( ) : Content
Результат Content

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

public abstract ToByteArray ( ) : byte[]
Результат byte[]

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

public abstract TrimExcess ( ) : void
Результат void

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

public abstract UpdateCharacterFlags ( uint flags ) : uint
flags uint
Результат uint

WrapContent() защищенный Метод

protected WrapContent ( byte bytes, int count ) : BinaryContent
bytes byte
count int
Результат BinaryContent

WrapContent() защищенный Метод

protected WrapContent ( char chars, int count ) : CharArrayContent
chars char
count int
Результат CharArrayContent

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

public abstract Write ( int offset, byte value, int repeatCount ) : void
offset int
value byte
repeatCount int
Результат void

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

public abstract Write ( int offset, byte value, int start, int count ) : void
offset int
value byte
start int
count int
Результат void

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

_owner защищенное свойство

protected MutableString _owner
Результат MutableString