C# Класс Pchp.Core.PhpString

Наследование: IPhpConvertible, IPhpArray
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
Empty PhpString

Private Properties

Свойство Тип Описание
AddChunk void
AddChunkToArray void
AssertChunkObject void
ChunkLength int
ChunkLength int
ChunkToBoolean bool
ChunkToBytes byte[]
ChunkToBytes byte[]
ChunkToString string
ChunkToString string
GetCharInChunk char
GetLength int
IPhpArray IPhpArray
IPhpArray PhpAlias
IPhpArray PhpValue
IPhpArray object
IPhpArray void
IPhpArray void
IPhpArray void
IPhpArray void
Output void
OutputChunk void
OutputChunks void
SetCharInChunk void

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

Метод Описание
Append ( PhpString value ) : void
Append ( byte value ) : void
Append ( string value ) : void
PhpString ( ) : Pchp.Core.Utilities
PhpString ( byte value ) : Pchp.Core.Utilities
PhpString ( string value ) : Pchp.Core.Utilities
PhpString ( string x, string y ) : Pchp.Core.Utilities
ToBoolean ( ) : bool
ToBytes ( Encoding encoding ) : byte[]
ToClass ( ) : object
ToDouble ( ) : double
ToLong ( ) : long
ToNumber ( PhpNumber &number ) : Convert.NumberInfo
ToString ( ) : string
ToString ( Context ctx ) : string
ToString ( Encoding encoding ) : string
ToStringOrThrow ( Context ctx ) : string
this ( int index ) : char

Gets or sets character at given index according to PHP semantics.

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

Метод Описание
AddChunk ( object newchunk ) : void
AddChunkToArray ( object chunks, object newchunk ) : void
AssertChunkObject ( object chunk ) : void
ChunkLength ( object chunk ) : int
ChunkLength ( object chunks, int count ) : int
ChunkToBoolean ( object chunk ) : bool
ChunkToBytes ( Encoding encoding, object chunk ) : byte[]
ChunkToBytes ( Encoding encoding, object chunks, int count ) : byte[]
ChunkToString ( Encoding encoding, object chunk ) : string
ChunkToString ( Encoding encoding, object chunks, int count ) : string
GetCharInChunk ( object chunk, int index ) : char
GetLength ( ) : int
IPhpArray ( IntStringKey key ) : IPhpArray

Ensures the item at given index is array.

IPhpArray ( IntStringKey key ) : PhpAlias

Ensures the item at given index is alias.

IPhpArray ( IntStringKey key ) : PhpValue

Gets value at given index. Gets void value in case the key is not found.

IPhpArray ( IntStringKey key ) : object

Ensures the item at given index is class object.

IPhpArray ( IntStringKey key ) : void

Removes a value matching given key. In case the value is not found, the method does nothing.

IPhpArray ( IntStringKey key, PhpAlias alias ) : void

Writes aliased value at given index.

IPhpArray ( IntStringKey key, PhpValue value ) : void

Sets value at specific index. Value must not be an alias.

IPhpArray ( PhpValue value ) : void

Add a value to the end of array. Value can be an alias.

Output ( Context ctx ) : void
OutputChunk ( Context ctx, object chunk ) : void
OutputChunks ( Context ctx, object chunks, int count ) : void
SetCharInChunk ( object &chunk, int index, char ch ) : void

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

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

public Append ( PhpString value ) : void
value PhpString
Результат void

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

public Append ( byte value ) : void
value byte
Результат void

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

public Append ( string value ) : void
value string
Результат void

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

public PhpString ( ) : Pchp.Core.Utilities
Результат Pchp.Core.Utilities

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

public PhpString ( byte value ) : Pchp.Core.Utilities
value byte
Результат Pchp.Core.Utilities

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

public PhpString ( string value ) : Pchp.Core.Utilities
value string
Результат Pchp.Core.Utilities

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

public PhpString ( string x, string y ) : Pchp.Core.Utilities
x string
y string
Результат Pchp.Core.Utilities

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

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

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

public ToBytes ( Encoding encoding ) : byte[]
encoding Encoding
Результат byte[]

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

public ToClass ( ) : object
Результат object

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

public ToDouble ( ) : double
Результат double

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

public ToLong ( ) : long
Результат long

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

public ToNumber ( PhpNumber &number ) : Convert.NumberInfo
number PhpNumber
Результат Convert.NumberInfo

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

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

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

public ToString ( Context ctx ) : string
ctx Context
Результат string

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

public ToString ( Encoding encoding ) : string
encoding Encoding
Результат string

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

public ToStringOrThrow ( Context ctx ) : string
ctx Context
Результат string

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

Gets or sets character at given index according to PHP semantics.
public this ( int index ) : char
index int Character index.
Результат char

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

Empty публичное статическое свойство

Empty immutable string.
public static PhpString,Pchp.Core Empty
Результат PhpString