remove unused methods in unicode.

This commit is contained in:
Benoît Burnichon
2016-03-30 12:40:39 +02:00
parent 35a4111cf3
commit 5737fc14c4
2 changed files with 7 additions and 19 deletions

View File

@@ -423,20 +423,18 @@ class caption_Field_Value implements cache_cacheableInterface
}
/**
*
* @param string $word
* @return array
* @return string[]
*/
protected function splitTermAndContext($word)
{
$term = trim($word);
$context = "";
if (($po = strpos($term, "(")) !== false) {
if (($pc = strpos($term, ")", $po)) !== false) {
$context = '';
if (($po = strpos($term, '(')) !== false && ($pc = strpos($term, ')', $po)) !== false) {
$context = trim(substr($term, $po + 1, $pc - $po - 1));
$term = trim(substr($term, 0, $po));
}
}
return [$term, $context];
}

View File

@@ -1541,17 +1541,7 @@ class unicode
]
];
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);
}
protected $endCharacters_utf8 = "\t\r\n !\"#\$%&'()+,-./:;<=>@[\\]^_`{|}~£§¨°";
/**
* Converts a string