H A D | EncodingFactory.php | 57 public function detect(string $header): EncodingInterface|null argument 66 if (preg_match($regex, $header) === 1) { 77 if (str_starts_with($header, $start)) { 83 $header = strtr(ltrim($header), ["\r\n" => "\n", "\n\r" => "\n", "\r" => "\n"]); variable in Fisharebest\\Webtrees\\Factories\\EncodingFactory 85 …while (str_contains($header, "\n ") || str_contains($header, " \n") || str_contains($header, ' ')… 86 $header = strtr($header, ["\n " => "\n", " \n" => "\n", ' ' => ' ']); variable in Fisharebest\\Webtrees\\Factories\\EncodingFactory 90 $header = strstr($header, "\n0", true); variable in Fisharebest\\Webtrees\\Factories\\EncodingFactory 92 if ($header === false) { 142 if (preg_match('/' . $regex . '/i', $header) === 1) { 147 if (preg_match('/1 CHAR (.+)/', $header, $match) === 1) {
|