Browse Source

Add new labels

multi-byte
J. King 4 years ago
parent
commit
0682e294c8
  1. 4
      lib/Encoding.php
  2. 8
      lib/Encoding/Big5.php
  3. 5
      lib/Encoding/UTF16BE.php
  4. 10
      lib/Encoding/UTF16LE.php
  5. 9
      lib/Encoding/UTF8.php

4
lib/Encoding.php

File diff suppressed because one or more lines are too long

8
lib/Encoding/Big5.php

@ -8,7 +8,13 @@ namespace MensBeam\Intl\Encoding;
class Big5 extends AbstractEncoding implements StatelessEncoding {
const NAME = "Big5";
const LABELS = ["big5", "big5-hkscs", "cn-big5", "csbig5", "x-x-big5"];
const LABELS = [
"big5",
"big5-hkscs",
"cn-big5",
"csbig5",
"x-x-big5"
];
const TABLE_DOUBLES = [
1133 => [0x00CA, 0x0304],
1135 => [0x00CA, 0x030C],

5
lib/Encoding/UTF16BE.php

@ -9,5 +9,8 @@ namespace MensBeam\Intl\Encoding;
class UTF16BE extends UTF16 {
const BE = true;
const NAME = "UTF-16BE";
const LABELS = ["utf-16be"];
const LABELS = [
"unicodefffe",
"utf-16be"
];
}

10
lib/Encoding/UTF16LE.php

@ -9,5 +9,13 @@ namespace MensBeam\Intl\Encoding;
class UTF16LE extends UTF16 {
const BE = false;
const NAME = "UTF-16LE";
const LABELS = ["utf-16", "utf-16le"];
const LABELS = [
"csunicode",
"iso-10646-ucs-2",
"ucs-2",
"unicode",
"unicodefeff",
"utf-16",
"utf-16le"
];
}

9
lib/Encoding/UTF8.php

@ -8,7 +8,14 @@ namespace MensBeam\Intl\Encoding;
class UTF8 extends AbstractEncoding implements StatelessEncoding {
const NAME = "UTF-8";
const LABELS = ["unicode-1-1-utf-8", "utf-8", "utf8"];
const LABELS = [
"unicode-1-1-utf-8",
"unicode11utf8",
"unicode20utf8",
"utf-8",
"utf8",
"x-unicode20utf8"
];
protected $selfSynchronizing = true;

Loading…
Cancel
Save