diff options
author | Christian Schneider | 2022-12-12 16:53:55 +0100 |
---|---|---|
committer | Christian Schneider | 2022-12-12 16:53:55 +0100 |
commit | 8701e070aab559beb1b55a5bea15d762e9e31fe6 (patch) | |
tree | 32f3268e001d967dbbab54e875f7b92cb128ed71 | |
parent | e6dd542db15c153aa1d1f825708f75de13ef24f4 (diff) | |
download | itools-8701e070aab559beb1b55a5bea15d762e9e31fe6.tar.gz itools-8701e070aab559beb1b55a5bea15d762e9e31fe6.tar.bz2 itools-8701e070aab559beb1b55a5bea15d762e9e31fe6.zip |
Remove unused functions it::toascii, it_pipe::latin/utf8
-rw-r--r-- | it.class | 14 | ||||
-rw-r--r-- | it_pipe.class | 16 |
2 files changed, 0 insertions, 30 deletions
@@ -391,20 +391,6 @@ static function servertype($pattern) /** - * Convert a string to ASCII-only chars, map/strip ISO-8859-1 accents - * @param $text Text to convert - * @return mapped/stripped version of $text contains only chars [0..127] - */ -static function toascii($text) -{ - return strtr(strtr($text, - utf8_decode( 'ÇéâàåçêëèïîìÅÉôòûùÿøØáíóúñÑÁÂÀãÃÊËÈÍÎÏÓÔõÕÚÛÙýÝ'), - 'CeaaaceeeiiiAEoouuyooaiounNAAAaAEEEIIIOOoOUUUyY'), - array("\xe4" => 'ae', "\xf6" => 'oe', "\xfc" => 'ue', "\xc4" => 'Ae', "\xd6" => 'Oe', "\xdc" => 'Ue', "\xe6" => 'ae', "\xc6" => 'Ae', "\xdf" => 'ss')); -} - - -/** * Check whether an IP adress lies within a given range. Supports IPv4 and IPv6 * @param $ip IP address (192.168.42.123) * @param $cidrs IP range in CIDR notation (192.168.42.64/26) or array of ranges diff --git a/it_pipe.class b/it_pipe.class index edc6dd8..0ffb7af 100644 --- a/it_pipe.class +++ b/it_pipe.class @@ -101,22 +101,6 @@ function filter($expr) } /** - * Convert pipe from utf8 to iso-latin - */ -function latin() -{ - return $this->map('utf8_decode($v)'); -} - -/** - * Convert pipe from iso-latin to uft8 - */ -function utf8() -{ - return $this->map('utf8_encode($v)'); -} - -/** * Select cols from tab-separated cols in each line and tab-joins them again. Key order relevant. */ function cut($picks) |