]> git.openstreetmap.org Git - nominatim.git/commit
php: make word list a first-class object
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 12 Aug 2021 09:09:46 +0000 (11:09 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 16 Aug 2021 09:51:49 +0000 (11:51 +0200)
commit1147b83b22a073db2f81ea177f9caa12e727e249
tree84cfe9b6c5c5ad58389cd52f7530b3a351e0e062
parent0fb8eade136ea03e7853aca0795ca69833c33661
php: make word list a first-class object

This separates the logic of creating word sets from the Phrase
class. A tokenizer may now derived the word sets any way they
like. The SimpleWordList class provides a standard implementation
for splitting phrases on spaces.
lib-php/Phrase.php
lib-php/SimpleWordList.php [new file with mode: 0644]
lib-php/tokenizer/legacy_icu_tokenizer.php
lib-php/tokenizer/legacy_tokenizer.php
test/php/Nominatim/PhraseTest.php [deleted file]
test/php/Nominatim/SimpleWordListTest.php [new file with mode: 0644]