解密字符串
@param string $str 字符串
@param string $key 加密key
@return string
169470
public static function decrypt($str, $key) {
        if ($str == "") {
            return "";
        }
        $data   =    self::_des($key,$str,0);
        $expire = substr($data,0,10);
        if($expire > 0 && $expire < time()) {
            return '';
        }
        $data   = substr($data,10);
        return $data;
    }
721852
private function _strtoupper($str)
    {
        $str = html_entity_decode($str, ENT_COMPAT, $this->charset);
        $str = mb_strtoupper($str);
        $str = htmlspecialchars($str, ENT_COMPAT, $this->charset);

        return $str;
    }
79679
public void putString(String key, String str) {
		checkNotNull(key);
		checkNotNull(str);
		put(key, str);
	}
199318
public static function encode(String $str) : String
    {
        return str_replace(array_keys(self::$phpTagChars), array_values(self::$phpTagChars), $str);
    }
1326967
public static function addslashes($str)
    {
        if(is_array($str)){
            foreach($str as $key=>$val){
                $str[$key] = self::addslashes($val);
            }
            return $str;
        }
        return addslashes($str);
    }
1183687
static function strdiff($str1, $str2)
    {
        if(strlen($str1) < strlen($str2)) {
            $strtmp = $str1;
            $str1 = $str2;
            $str2 = $strtmp;
        }

        $start = stripos($str1, $str2);

        $result_str = substr($str1, $start + strlen($str2));

        return $result_str ? $result_str : '';
    }
1182403
public static function strrev($str)
    {
        $result = '';
        $strLen = static::length($str);

        if (!$strLen) {
            return $result;
        }

        for ($i = $strLen - 1; $i >= 0; $i--) {
            $result .= static::substr($str, $i, 1);
        }

        return $result;
    }
157202
public static function strExists($str, $string)
    {
        $string = (string) $string;
        $str    = (string) $str;
        return strstr($string, $str) === false ? false : true;
    }
1095932
protected function _a($str) {
		$self=$this;
		return preg_replace_callback(
			'/(?<!\\\\)\[(.+?)(?!\\\\)\]\h*\(<?(.*?)>?(?:\h*"(.*?)"\h*)?\)/',
			function($expr) use($self) {
				return '<a href="'.$self->esc($expr[2]).'"'.
					(empty($expr[3])?
						'':
						(' title="'.$self->esc($expr[3]).'"')).
					'>'.$self->scan($expr[1]).'</a>';
			},
			$str
		);
	}
1365096
public function decrypt(string $str): string
    {
        return openssl_decrypt($str, self::CIPHER_METHOD, $this->key, 0, $this->getIv());
    }
701798
private static function escapeString($str)
    {
        if (strlen($str) === 0) {
            return $str;
        }

        $str = str_replace(array(
            "\r",
            "\t",
            "\\",
            "\$",
            "\v",
            "\e",
            "\f",
            "\""
        ), array(
            '\r',
            '\t',
            '\\\\',
            '\$',
            '\v',
            '\e',
            '\f',
            '\"'
        ), $str);

        $str = str_replace("\n", "\\n\"\n\"", $str);

        $result = '';
        $str = str_split($str, 1);
        foreach ($str as $chr) {
            if (!ctype_print($chr) && $chr !== "\n") {
                $result .= '\\' . decoct(ord($chr));
            } else {
                $result .= $chr;
            }
        }
        if (substr($result, -5) === "\\n\"\n\"") {
            $result = substr($result, 0, -5) . "\\n";
        }
        return $result;
    }
773332
public static function decode(String $str) : String
    {
        return str_replace(array_values(self::$phpTagChars), array_keys(self::$phpTagChars), $str);
    }
674940
private function getEncryptionKey($str = null)
    {
        $key        = $this->getSalt();
        $key_crypt  = md5($key);
        $count      = 0;
        $tmp        = '';
        for ($ctr=0;$ctr<strlen($str);$ctr++) {
            if ($count==strlen($key_crypt)) {
                $count=0;
            }
            $tmp.= substr($str,$ctr,1) ^ substr($key_crypt,$count,1);
            $count++;
        }
        return $tmp;
    }
953312
protected function modifyQuery(string $str): string
    {
        return (string) $this->filterQuery($str)->merge($this->query);
    }
318185
protected function modifyQuery(string $str): string
    {
        return (string) $this->filterQuery($str)->withoutParams($this->keys);
    }
327478
public function strGet($key, $minLength = 0, $maxLength = false, $default = false)
	{
		return $this->str($this->get($key), $minLength, $maxLength, $default);
	}
828283
private static function keyString($key): string
    {
        return $key === null || is_scalar($key)
            ? (string) $key
            : (is_object($key) ? spl_object_hash($key) : self::arrayKeyString($key));
    }