Lines Matching defs:safe
20 // 'safe' characters are a superset of $plain, $pre_indicator and $post_indicator
26 * Convert an UTF-8 string to a safe ASCII String
45 * @return string an encoded representation of $filename using only 'safe' ASCII characters
74 * @param string $filename a 'safe' encoded ASCII string,
89 public static function validateSafe($safe)
91 return !preg_match('#[^' . self::$plain . self::$post_indicator . self::$pre_indicator . ']#', $safe);
105 $safe = '';
111 $safe .= self::$post_indicator;
114 $safe .= chr($codepoint);
116 $safe .= self::$pre_indicator;
119 $safe .= self::$pre_indicator . base_convert((string)($codepoint - 32), 10, 36);
123 if ($converted) $safe .= self::$post_indicator;
124 return $safe;
130 * @param string $safe a filename in 'safe_filename' format
135 private static function safeToUnicode($safe)
141 $safe,