C# Class Pchp.Core.PhpString

Inheritance: IPhpConvertible, IPhpArray
Afficher le fichier Open project: iolevel/peachpie Class Usage Examples

Méthodes publiques

Свойство Type Description
Empty PhpString

Private Properties

Свойство Type Description
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

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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

Method Details

Append() public méthode

public Append ( PhpString value ) : void
value PhpString
Résultat void

Append() public méthode

public Append ( byte value ) : void
value byte
Résultat void

Append() public méthode

public Append ( string value ) : void
value string
Résultat void

PhpString() public méthode

public PhpString ( ) : Pchp.Core.Utilities
Résultat Pchp.Core.Utilities

PhpString() public méthode

public PhpString ( byte value ) : Pchp.Core.Utilities
value byte
Résultat Pchp.Core.Utilities

PhpString() public méthode

public PhpString ( string value ) : Pchp.Core.Utilities
value string
Résultat Pchp.Core.Utilities

PhpString() public méthode

public PhpString ( string x, string y ) : Pchp.Core.Utilities
x string
y string
Résultat Pchp.Core.Utilities

ToBoolean() public méthode

public ToBoolean ( ) : bool
Résultat bool

ToBytes() public méthode

public ToBytes ( Encoding encoding ) : byte[]
encoding Encoding
Résultat byte[]

ToClass() public méthode

public ToClass ( ) : object
Résultat object

ToDouble() public méthode

public ToDouble ( ) : double
Résultat double

ToLong() public méthode

public ToLong ( ) : long
Résultat long

ToNumber() public méthode

public ToNumber ( PhpNumber &number ) : Convert.NumberInfo
number PhpNumber
Résultat Convert.NumberInfo

ToString() public méthode

public ToString ( ) : string
Résultat string

ToString() public méthode

public ToString ( Context ctx ) : string
ctx Context
Résultat string

ToString() public méthode

public ToString ( Encoding encoding ) : string
encoding Encoding
Résultat string

ToStringOrThrow() public méthode

public ToStringOrThrow ( Context ctx ) : string
ctx Context
Résultat string

this() public méthode

Gets or sets character at given index according to PHP semantics.
public this ( int index ) : char
index int Character index.
Résultat char

Property Details

Empty public_oe static_oe property

Empty immutable string.
public static PhpString,Pchp.Core Empty
Résultat PhpString