C# 클래스 Pchp.Library.Streams.TextElement

Either string or byte[].
파일 보기 프로젝트 열기: iolevel/peachpie 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
GetBytes ( ) : byte[]
GetText ( ) : string

메소드 상세

AsBytes() 공개 메소드

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

AsText() 공개 메소드

public AsText ( Encoding enc ) : string
enc System.Text.Encoding
리턴 string

FromValue() 공개 정적인 메소드

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

TextElement() 공개 메소드

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

TextElement() 공개 메소드

public TextElement ( byte bytes ) : System
bytes byte
리턴 System

TextElement() 공개 메소드

public TextElement ( string text ) : System
text string
리턴 System

ToString() 공개 메소드

public ToString ( ) : string
리턴 string