C# Class Pchp.Library.Streams.TextElement

Either string or byte[].
Mostrar archivo Open project: iolevel/peachpie Class Usage Examples

Public Methods

Method 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

Method Description
GetBytes ( ) : byte[]
GetText ( ) : string

Method Details

AsBytes() public method

public AsBytes ( Encoding enc ) : byte[]
enc System.Text.Encoding
return byte[]

AsText() public method

public AsText ( Encoding enc ) : string
enc System.Text.Encoding
return string

FromValue() public static method

public static FromValue ( Context ctx, PhpValue value ) : TextElement
ctx Pchp.Core.Context
value Pchp.Core.PhpValue
return TextElement

TextElement() public method

public TextElement ( PhpString str, Encoding encoding ) : System
str Pchp.Core.PhpString
encoding System.Text.Encoding
return System

TextElement() public method

public TextElement ( byte bytes ) : System
bytes byte
return System

TextElement() public method

public TextElement ( string text ) : System
text string
return System

ToString() public method

public ToString ( ) : string
return string