C# 클래스 Pchp.Core.PhpString

상속: IPhpConvertible, IPhpArray
파일 보기 프로젝트 열기: iolevel/peachpie 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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