mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-08 10:34:34 +00:00
remove unused methods in unicode.
This commit is contained in:
@@ -423,20 +423,18 @@ class caption_Field_Value implements cache_cacheableInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @param string $word
|
* @param string $word
|
||||||
* @return array
|
* @return string[]
|
||||||
*/
|
*/
|
||||||
protected function splitTermAndContext($word)
|
protected function splitTermAndContext($word)
|
||||||
{
|
{
|
||||||
$term = trim($word);
|
$term = trim($word);
|
||||||
$context = "";
|
$context = '';
|
||||||
if (($po = strpos($term, "(")) !== false) {
|
|
||||||
if (($pc = strpos($term, ")", $po)) !== false) {
|
if (($po = strpos($term, '(')) !== false && ($pc = strpos($term, ')', $po)) !== false) {
|
||||||
$context = trim(substr($term, $po + 1, $pc - $po - 1));
|
$context = trim(substr($term, $po + 1, $pc - $po - 1));
|
||||||
$term = trim(substr($term, 0, $po));
|
$term = trim(substr($term, 0, $po));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return [$term, $context];
|
return [$term, $context];
|
||||||
}
|
}
|
||||||
|
@@ -1541,17 +1541,7 @@ class unicode
|
|||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $endCharacters_utf8 = "\t\r\n !\"#\$%&'()+,-./:;<=>@[\]^_`{|}~£§¨°";
|
protected $endCharacters_utf8 = "\t\r\n !\"#\$%&'()+,-./:;<=>@[\\]^_`{|}~£§¨°";
|
||||||
|
|
||||||
public function get_indexer_bad_chars()
|
|
||||||
{
|
|
||||||
return $this->endCharacters_utf8;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function has_indexer_bad_char($string)
|
|
||||||
{
|
|
||||||
return mb_strpos($this->endCharacters_utf8, $string);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts a string
|
* Converts a string
|
||||||
|
Reference in New Issue
Block a user