Example #1
0
 /**
  * Add new characters to the list. `$map` should be a hash.
  */
 public static function add_chars($map)
 {
     if (!is_array($map)) {
         throw new LogicException('$map must be an associative array.');
     }
     self::$maps[] = $map;
     self::$map = array();
     self::$chars = '';
 }
Example #2
0
 /**
  * Add new characters to the list. `$map` should be a hash.
  *
  * @param Array $map
  */
 public static function add_chars(array $map)
 {
     self::$maps[] = $map;
     self::$map = array();
     self::$chars = '';
 }