Lines Matching refs:gedcom
93 …me_facts = Collection::make($names)->map(static fn (string $gedcom): Fact => new Fact($gedcom, $du…
108 $gedcom = trim('1 ' . $tag . ' ' . $default);
110 return new Fact($gedcom, $record, '');
178 $gedcom = implode("\n", $gedcom_lines);
180 if ($append && $gedcom !== '') {
181 $gedcom = "\n" . $gedcom;
184 return $gedcom;
198 $gedcom = preg_replace('/\n\d CONT ?/', "\r", $fact->gedcom());
200 …return $this->insertMissingLevels($fact->record()->tree(), $fact->tag(), $gedcom, $include_hidden);
214 $gedcom = preg_replace('/\n\d CONT ?/', "\r", $record->gedcom());
216 … $gedcom = $this->insertMissingLevels($record->tree(), $record->tag(), $gedcom, $include_hidden);
220 return preg_replace('/^0 @[^@]+@ NOTE/', '1 CONC', $gedcom);
223 return preg_replace('/^0.*\n/', '', $gedcom);
256 * @param string $gedcom
261 …protected function insertMissingLevels(Tree $tree, string $tag, string $gedcom, bool $include_hidd… argument
268 $parts = preg_split('/\n(?=' . $next_level . ')/', $gedcom);
302 $gedcom = $next_level . ' ' . $subtag;
305 $gedcom .= ' ' . $default;
309 …_to_add = "\n" . $this->insertMissingLevels($tree, $tag . ':' . $subtag, $gedcom, $include_hidden);