Documentation

Bom : string
in package

Table of Contents

Cases

Utf16Be  = "\xfe\xff"
Utf16Le  = "\xff\xfe"
Utf32Be  = "\x00\x00\xfe\xff"
Utf32Le  = "\xff\xfe\x00\x00"
Utf8  = ""

Methods

encoding()  : string
fromEncoding()  : self
fromSequence()  : self
isUtf16()  : bool
isUtf32()  : bool
isUtf8()  : bool
length()  : int
tryFromEncoding()  : self|null
tryFromSequence()  : self|null
getContents()  : string|null

Cases

Methods

encoding()

public encoding() : string
Return values
string

fromEncoding()

public static fromEncoding(string $name) : self
Parameters
$name : string
Return values
self

fromSequence()

public static fromSequence(mixed $sequence) : self
Parameters
$sequence : mixed
Return values
self

isUtf16()

public isUtf16() : bool
Return values
bool

isUtf32()

public isUtf32() : bool
Return values
bool

isUtf8()

public isUtf8() : bool
Return values
bool

length()

public length() : int
Return values
int

tryFromSequence()

public static tryFromSequence(mixed $sequence) : self|null
Parameters
$sequence : mixed
Return values
self|null

getContents()

private static getContents(Stream|SplFileObject $sequence, int $length, int $offset) : string|null
Parameters
$sequence : Stream|SplFileObject
$length : int
$offset : int
Return values
string|null

        
On this page

Search results