C# Class IronRuby.Builtins.MutableString.Content

显示文件 Open project: jschementi/iron

Protected Properties

Property Type Description
_owner MutableString

Public Methods

Method Description
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

Protected Methods

Method Description
Content ( MutableString owner ) : System
WrapContent ( byte bytes, int count ) : BinaryContent
WrapContent ( char chars, int count ) : CharArrayContent

Private Methods

Method Description
GetByteArray ( int &count ) : byte[]
SetOwner ( MutableString owner ) : void
UpdateAsciiAndSurrogatesFlags ( char str, int itemCount, uint flags ) : uint
UpdateAsciiAndSurrogatesFlags ( string str, uint flags ) : uint

Method Details

Append() public abstract method

public abstract Append ( Content content, int start, int count ) : void
content Content
start int
count int
return void

Append() public abstract method

public abstract Append ( System.Stream stream, int count ) : void
stream System.Stream
count int
return void

Append() public abstract method

public abstract Append ( byte b, int repeatCount ) : void
b byte
repeatCount int
return void

Append() public abstract method

public abstract Append ( byte bytes, int start, int count ) : void
bytes byte
start int
count int
return void

Append() public abstract method

public abstract Append ( char c, int repeatCount ) : void
c char
repeatCount int
return void

Append() public abstract method

public abstract Append ( char chars, int start, int count ) : void
chars char
start int
count int
return void

Append() public abstract method

public abstract Append ( string str, int start, int count ) : void
str string
start int
count int
return void

AppendFormat() public abstract method

public abstract AppendFormat ( IFormatProvider provider, string format, object args ) : void
provider IFormatProvider
format string
args object
return void

AppendTo() public abstract method

public abstract AppendTo ( BinaryContent content, int start, int count ) : void
content BinaryContent
start int
count int
return void

AppendTo() public abstract method

public abstract AppendTo ( CharArrayContent content, int start, int count ) : void
content CharArrayContent
start int
count int
return void

AppendTo() public abstract method

public abstract AppendTo ( StringContent content, int start, int count ) : void
content StringContent
start int
count int
return void

CalculateHashCode() public abstract method

public abstract CalculateHashCode ( ) : int
return int

CheckEncoding() public abstract method

public abstract CheckEncoding ( ) : void
return void

Clone() public abstract method

public abstract Clone ( ) : Content
return Content

Concat() public abstract method

public abstract Concat ( Content content ) : Content
content Content
return Content

ConcatTo() public abstract method

public abstract ConcatTo ( BinaryContent content ) : Content
content BinaryContent
return Content

ConcatTo() public abstract method

public abstract ConcatTo ( CharArrayContent content ) : Content
content CharArrayContent
return Content

ConcatTo() public abstract method

public abstract ConcatTo ( StringContent content ) : Content
content StringContent
return Content

ContainsInvalidCharacters() public abstract method

public abstract ContainsInvalidCharacters ( ) : bool
return bool

Content() protected method

protected Content ( MutableString owner ) : System
owner MutableString
return System

ConvertToBytes() public abstract method

public abstract ConvertToBytes ( ) : byte[]
return byte[]

ConvertToString() public abstract method

public abstract ConvertToString ( ) : string
return string

EscapeRegularExpression() public abstract method

public abstract EscapeRegularExpression ( ) : Content
return Content

GetBinarySlice() public abstract method

public abstract GetBinarySlice ( int start, int count ) : byte[]
start int
count int
return byte[]

GetByte() public abstract method

Gets index'th byte of the string. Throws if the string includes invalid characters.
public abstract GetByte ( int index ) : byte
index int
return byte

GetByteCount() public abstract method

Returns the number of bytes in the string. Throws if the string includes invalid characters.
public abstract GetByteCount ( ) : int
return int

GetBytes() public abstract method

public abstract GetBytes ( ) : IEnumerable
return IEnumerable

GetCapacity() public abstract method

public abstract GetCapacity ( ) : int
return int

GetChar() public abstract method

Gets index'th character of the string. Throws if the string includes invalid characters.
public abstract GetChar ( int index ) : char
index int
return char

GetCharCount() public abstract method

Returns the number of characters in the string. Counts surrogates as two characters.
Invalid character.
public abstract GetCharCount ( ) : int
return int

GetCharacterCount() public abstract method

Returns the number of true Unicode characters in the string.
public abstract GetCharacterCount ( ) : int
return int

GetCharacters() public abstract method

public abstract GetCharacters ( ) : CharacterEnumerator
return CharacterEnumerator

GetSlice() public abstract method

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
return Content

GetStringSlice() public abstract method

public abstract GetStringSlice ( int start, int count ) : string
start int
count int
return string

IndexIn() public abstract method

public abstract IndexIn ( Content str, int start, int count ) : int
str Content
start int
count int
return int

IndexOf() public abstract method

public abstract IndexOf ( byte b, int start, int count ) : int
b byte
start int
count int
return int

IndexOf() public abstract method

public abstract IndexOf ( char c, int start, int count ) : int
c char
start int
count int
return int

IndexOf() public abstract method

public abstract IndexOf ( string str, int start, int count ) : int
str string
start int
count int
return int

Insert() public abstract method

public abstract Insert ( int index, byte b ) : void
index int
b byte
return void

Insert() public abstract method

public abstract Insert ( int index, byte bytes, int start, int count ) : void
index int
bytes byte
start int
count int
return void

Insert() public abstract method

public abstract Insert ( int index, char c ) : void
index int
c char
return void

Insert() public abstract method

public abstract Insert ( int index, char chars, int start, int count ) : void
index int
chars char
start int
count int
return void

Insert() public abstract method

public abstract Insert ( int index, string str, int start, int count ) : void
index int
str string
start int
count int
return void

InsertTo() public abstract method

public abstract InsertTo ( Content str, int index, int start, int count ) : void
str Content
index int
start int
count int
return void

LastIndexIn() public abstract method

public abstract LastIndexIn ( Content str, int start, int count ) : int
str Content
start int
count int
return int

LastIndexOf() public abstract method

public abstract LastIndexOf ( byte b, int start, int count ) : int
b byte
start int
count int
return int

LastIndexOf() public abstract method

public abstract LastIndexOf ( char c, int start, int count ) : int
c char
start int
count int
return int

LastIndexOf() public abstract method

public abstract LastIndexOf ( string str, int start, int count ) : int
str string
start int
count int
return int

OrdinalCompareTo() public abstract method

public abstract OrdinalCompareTo ( Content content ) : int
content Content
return int

OrdinalCompareTo() public abstract method

public abstract OrdinalCompareTo ( string str ) : int
str string
return int

Remove() public abstract method

public abstract Remove ( int start, int count ) : void
start int
count int
return void

ReverseOrdinalCompareTo() public abstract method

public abstract ReverseOrdinalCompareTo ( BinaryContent content ) : int
content BinaryContent
return int

ReverseOrdinalCompareTo() public abstract method

public abstract ReverseOrdinalCompareTo ( CharArrayContent content ) : int
content CharArrayContent
return int

ReverseOrdinalCompareTo() public abstract method

public abstract ReverseOrdinalCompareTo ( StringContent content ) : int
content StringContent
return int

SetByte() public abstract method

public abstract SetByte ( int index, byte b ) : void
index int
b byte
return void

SetCapacity() public abstract method

public abstract SetCapacity ( int capacity ) : void
capacity int
return void

SetChar() public abstract method

public abstract SetChar ( int index, char c ) : void
index int
c char
return void

StartsWith() public abstract method

public abstract StartsWith ( char c ) : bool
c char
return bool

SwitchToBinaryContent() public abstract method

public abstract SwitchToBinaryContent ( ) : Content
return Content

SwitchToMutableContent() public abstract method

public abstract SwitchToMutableContent ( ) : Content
return Content

SwitchToStringContent() public abstract method

public abstract SwitchToStringContent ( ) : Content
return Content

ToByteArray() public abstract method

public abstract ToByteArray ( ) : byte[]
return byte[]

TrimExcess() public abstract method

public abstract TrimExcess ( ) : void
return void

UpdateCharacterFlags() public abstract method

public abstract UpdateCharacterFlags ( uint flags ) : uint
flags uint
return uint

WrapContent() protected method

protected WrapContent ( byte bytes, int count ) : BinaryContent
bytes byte
count int
return BinaryContent

WrapContent() protected method

protected WrapContent ( char chars, int count ) : CharArrayContent
chars char
count int
return CharArrayContent

Write() public abstract method

public abstract Write ( int offset, byte value, int repeatCount ) : void
offset int
value byte
repeatCount int
return void

Write() public abstract method

public abstract Write ( int offset, byte value, int start, int count ) : void
offset int
value byte
start int
count int
return void

Property Details

_owner protected_oe property

protected MutableString _owner
return MutableString