C# Class Pchp.Library.Streams.TextElement

Either string or byte[].
Afficher le fichier Open project: iolevel/peachpie Class Usage Examples

Méthodes publiques

Méthode Description
AsBytes ( Encoding enc ) : byte[]
AsText ( Encoding enc ) : string
FromValue ( Context ctx, PhpValue value ) : TextElement
TextElement ( PhpString str, Encoding encoding ) : System
TextElement ( byte bytes ) : System
TextElement ( string text ) : System
ToString ( ) : string

Private Methods

Méthode Description
GetBytes ( ) : byte[]
GetText ( ) : string

Method Details

AsBytes() public méthode

public AsBytes ( Encoding enc ) : byte[]
enc System.Text.Encoding
Résultat byte[]

AsText() public méthode

public AsText ( Encoding enc ) : string
enc System.Text.Encoding
Résultat string

FromValue() public static méthode

public static FromValue ( Context ctx, PhpValue value ) : TextElement
ctx Pchp.Core.Context
value Pchp.Core.PhpValue
Résultat TextElement

TextElement() public méthode

public TextElement ( PhpString str, Encoding encoding ) : System
str Pchp.Core.PhpString
encoding System.Text.Encoding
Résultat System

TextElement() public méthode

public TextElement ( byte bytes ) : System
bytes byte
Résultat System

TextElement() public méthode

public TextElement ( string text ) : System
text string
Résultat System

ToString() public méthode

public ToString ( ) : string
Résultat string