summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2011-01-02 22:15:06 +0000
committerfisharebest <fisharebest@gmail.com>2011-01-02 22:15:06 +0000
commit973748291bbd4daad41ee9a4166aa5d5935051ef (patch)
treef8f6e4b16304367f2a936441d1920050118c3783 /includes
parent951f70944594a6d47bbc39bb388da9cd062d9480 (diff)
downloadwebtrees-973748291bbd4daad41ee9a4166aa5d5935051ef.tar.gz
webtrees-973748291bbd4daad41ee9a4166aa5d5935051ef.tar.bz2
webtrees-973748291bbd4daad41ee9a4166aa5d5935051ef.zip
Remove old/unused functions
Diffstat (limited to 'includes')
-rw-r--r--includes/functions/functions_name.php11
1 files changed, 0 insertions, 11 deletions
diff --git a/includes/functions/functions_name.php b/includes/functions/functions_name.php
index 76289e8d01..0cd27b0220 100644
--- a/includes/functions/functions_name.php
+++ b/includes/functions/functions_name.php
@@ -153,17 +153,6 @@ function check_NN($names) {
return $fullname;
}
-// Returns 1 if $string is valid 7 bit ASCII and 0 otherwise.
-function is_7bitascii($string) {
- return preg_match('/^(?:[\x09\x0A\x0D\x20-\x7E])*$/', $string);
-}
-
-// Returns 1 if $string is valid UTF-8 and 0 otherwise.
-// See http://w3.org/International/questions/qa-forms-utf-8.html
-function is_utf8($string) {
- return preg_match('/^(?:[\x09\x0A\x0D\x20-\x7E]|[\xC2-\xDF][\x80-\xBF]|\xE0[\xA0-\xBF][\x80-\xBF]|[\xE1-\xEC\xEE\xEF][\x80-\xBF]{2}|\xED[\x80-\x9F][\x80-\xBF]|\xF0[\x90-\xBF][\x80-\xBF]{2}|[\xF1-\xF3][\x80-\xBF]{3}|\xF4[\x80-\x8F][\x80-\xBF]{2})*$/', $string);
-}
-
/**
* determine the Daitch-Mokotoff Soundex code for a word
* @param string $name The name