summaryrefslogtreecommitdiff
path: root/includes/functions/functions_name.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/functions/functions_name.php')
-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