Home
last modified time | relevance | path

Searched refs:substr (Results 1 – 25 of 38) sorted by relevance

12

/webtrees/app/Report/
H A DRightToLeftSupport.php34 use function substr; alias
157 $element = substr($workingText, 0, $currentLen);
158 $temp = strtolower(substr($element, 0, 3));
172 $workingText = substr($workingText, $currentLen);
181 $entity = substr($workingText, 0, $currentLen);
190 $workingText = substr($workingText, $currentLen);
193 if (substr($workingText, 1, 1) === '{') {
200 $directive = substr($workingText, 0, $currentLen);
201 $workingText = substr($workingText, $currentLen);
216 if (substr($workingText . "\n", $offset, 6) === ' ') {
[all …]
H A DHtmlRenderer.php35 use function substr; alias
683 $out .= substr($string, 0, $spacepos) . "\n";
684 $string = substr($string, $spacepos + 1);
H A DReportParserGenerate.php81 use function substr; alias
253 return ltrim(substr($gedrec, $pos1));
255 $subrec = substr($gedrec, $pos1, $pos2 - $pos1);
276 if (substr($thisSubrecord, 0, 2) !== $nlevel . ' ') {
279 $subrecordType = substr($thisSubrecord, 2, 4);
281 $text .= "\n" . substr($thisSubrecord, 7);
1057 if (substr($value, 0, 4) === '<br>') {
1058 $value = substr($value, 4);
/webtrees/app/
H A DSoundex.php717 $thisEntry = substr($name, $currPos, self::MAXCHAR); // Get maximum length chunk
722 $thisEntry = substr($thisEntry, 0, -1); // Not in table: try a shorter chunk
738 $nextEntry = substr($name, $currPos, self::MAXCHAR); // Get maximum length chunk
743 $nextEntry = substr($nextEntry, 0, -1); // Not in table: try a shorter chunk
785 $result[] = substr($tempResult . '000000', 0, 6);
799 $result[] = substr($tempResult . '000000', 0, 6);
H A DIndividual.php942 $sublevel = 1 + (int) substr($gedcom, 0, 1);
1007 $full = substr($full, 0, $pos) . '@P.N. ' . substr($full, $pos);
1032 if (strcasecmp(substr($SURN, 0, 2), 'Mc') === 0) {
1034 } elseif (strcasecmp(substr($SURN, 0, 4), 'Mac ') === 0) {
/webtrees/tests/
H A DTestCase.php53 use function substr; alias
225 $this->validateHtml(substr($html, strlen('<DOCTYPE html>')));
233 $html = substr($html, strcspn($html, '<>'));
244 $html = substr($html, strlen($match[0]));
269 $html = substr($html, strpos($html, '</script>'));
271 $html = substr($html, strlen($match[0]));
274 static::fail('Unrecognised tag: ' . substr($html, 0, 40));
/webtrees/app/GedcomFilters/
H A DGedcomEncodingFilter.php19 use function substr; alias
83 $data_in = substr($this->data, 0, $bytes);
86 $this->data = substr($this->data, $bytes);
/webtrees/app/Statistics/Repository/
H A DGedcomRepository.php34 use function substr; alias
124 $head[1] = substr($head[1], $p, $p2 - $p);
129 $head[1] = substr($head[1], 1);
H A DEventRepository.php41 use function substr; alias
94 $no_types[] = substr($type, 1);
/webtrees/app/Module/
H A DFanChartModule.php64 use function substr; alias
487 (int) hexdec(substr($css_color, 0, 2)),
488 (int) hexdec(substr($css_color, 2, 2)),
489 (int) hexdec(substr($css_color, 4, 2))
/webtrees/app/Census/
H A DCensusColumnBirthPlace.php49 if (substr($birth_place, -strlen($census_place) - 2) === ', ' . $census_place) {
50 return substr($birth_place, 0, -strlen($census_place) - 2);
/webtrees/app/Services/
H A DRomanNumeralsService.php24 use function substr; alias
85 $roman = substr($roman, strlen($value));
H A DTreeService.php43 use function substr; alias
264 'chunk_data' => substr($file_data, 0, $eol_pos + 1),
267 $file_data = substr($file_data, $eol_pos + 1);
H A DGedcomService.php190 $hemisphere = substr($text, 0, 1);
191 $degrees = substr($text, 1);
H A DRelationshipService.php43 use function substr; alias
1312 $bef_last = substr($path, -6, 3);
1520 $first = substr($path, 0, 3);
2198 $path1 = substr($path, 0, 3);
2199 $path2 = substr($path, 3);
2210 $path1 .= substr($path2, 0, 3);
2211 $path2 = substr($path2, 3);
H A DEmailService.php46 use function substr; alias
190 $domain = substr(strrchr($address->getAddress(), '@') ?: '@', 1);
H A DMediaFileService.php55 use function substr; alias
115 $number *= $units[substr($size, -1)] ?? 1;
/webtrees/app/Factories/
H A DIdFactory.php30 use function substr; alias
91 $checksum_a += hexdec(substr($uid, $i, 2));
H A DRouteFactory.php36 use function substr; alias
78 $url = $base_url . substr($url, strlen($base_path));
/webtrees/app/Http/RequestHandlers/
H A DExportGedcomPage.php34 use function substr; alias
61 $download_filename = substr($filename, 0, -4);
H A DUploadMediaAction.php42 use function substr; alias
82 $key = substr($key, 9);
H A DGedcomLoad.php40 use function substr; alias
176 … $data->chunk_data = substr($data->chunk_data, strlen(UTF8::BYTE_ORDER_MARK));
H A DSetupWizard.php54 use function substr; alias
234 switch (substr($memory_limit, -1)) {
/webtrees/app/CommonMark/
H A DCensusTableContinueParser.php37 use function substr; alias
86 return substr($text, strlen(CensusTableExtension::TH_PREFIX));
/webtrees/app/Module/InteractiveTree/
H A DTreeView.php90 $firstLetter = substr($json_request, 0, 1);
91 $json_request = substr($json_request, 1);

12