Dodo
DOm DOcument implementation
Loading...
Searching...
No Matches
Wikimedia\Dodo\Internal\Encoding Class Reference

Encodings have a name, and one or more labels. More...

Static Public Member Functions

static string getEncodingFromLabel (string $label)
 Names and labels.
 
static bool isKnownEncodingName (string $name)
 
static dump ()
 Developer-only: generated the encoding name and labels table from the machine-readable data included in the encodings spec.
 

Detailed Description

Encodings have a name, and one or more labels.

See also
https://encoding.spec.whatwg.org/#name

Member Function Documentation

◆ getEncodingFromLabel()

static string Wikimedia\Dodo\Internal\Encoding::getEncodingFromLabel ( string $label)
static

Names and labels.

See also
https://encoding.spec.whatwg.org/#ref-for-lable
Parameters
string$labelAn encoding label
Returns
?string An encoding name, or null if the label is not found

◆ isKnownEncodingName()

static bool Wikimedia\Dodo\Internal\Encoding::isKnownEncodingName ( string $name)
static
Parameters
string$name
Returns
bool True iff the given string is a known encoding name.

The documentation for this class was generated from the following file: