original_string: protected static function utf8($string) {
  		$map = [];
  		$values = [];
  		$find = 1;
  		$length = strlen($string);
  		for ($i = 0; $i < $length; $i++) {
  			$value = ord($string[$i]);
  			if ($value < 128) {
  				$map[] = $value;
  			} else {
  				if (empty($values)) {
  					$find = ($value < 224) ? 2 : 3;
  				}
  				$values[] = $value;
  				if (count($values) === $find) {
  					if ($find == 3) {
  						$map[] = (($values[0] % 16) * 4096) + (($values[1] % 64) * 64) + ($values[2] % 64);
  					} else {
  						$map[] = (($values[0] % 32) * 64) + ($values[1] % 64);
  					}
  					$values = [];
  					$find = 1;
  				}
  			}
  		}
  		return $map;
  	}
code: protected static function utf8($string) {
  		$map = [];
  		$values = [];
  		$find = 1;
  		$length = strlen($string);
  		for ($i = 0; $i < $length; $i++) {
  			$value = ord($string[$i]);
  			if ($value < 128) {
  				$map[] = $value;
  			} else {
  				if (empty($values)) {
  					$find = ($value < 224) ? 2 : 3;
  				}
  				$values[] = $value;
  				if (count($values) === $find) {
  					if ($find == 3) {
  						$map[] = (($values[0] % 16) * 4096) + (($values[1] % 64) * 64) + ($values[2] % 64);
  					} else {
  						$map[] = (($values[0] % 32) * 64) + ($values[1] % 64);
  					}
  					$values = [];
  					$find = 1;
  				}
  			}
  		}
  		return $map;
  	}
code_tokens: protected static function utf8 ( $ string ) { $ map = [ ] ; $ values = [ ] ; $ find = 1 ; $ length = strlen ( $ string ) ; for ( $ i = 0 ; $ i < $ length ; $ i ++ ) { $ value = ord ( $ string [ $ i ] ) ; if ( $ value < 128 ) { $ map [ ] = $ value ; } else { if ( empty ( $ values ) ) { $ find = ( $ value < 224 ) ? 2 : 3 ; } $ values [ ] = $ value ; if ( count ( $ values ) === $ find ) { if ( $ find == 3 ) { $ map [ ] = ( ( $ values [ 0 ] % 16 ) * 4096 ) + ( ( $ values [ 1 ] % 64 ) * 64 ) + ( $ values [ 2 ] % 64 ) ; } else { $ map [ ] = ( ( $ values [ 0 ] % 32 ) * 64 ) + ( $ values [ 1 ] % 64 ) ; } $ values = [ ] ; $ find = 1 ; } } } return $ map ; }
docstring: Converts a multibyte character string
  to the decimal value of the character
  
  @param string $string String to convert.
  @return array
docstring_tokens: Converts a multibyte character string to the decimal value of the character