Resets Benchmark object clear. Returns divider string.

@param null|string $char
@return string
@throws \Exception
767287
public function reset(?string $char = null): string
    {
        $this->initialize();
        return
            $this->sectionSeparator($char);
    }
622139
public static function randomChar( $char )
	{
		if ( strlen( $char ) == 0 )
			return '';

		$char = ord( $char );

		if ( $char > 64 && $char < 91 ) // Uppercase
			return static::randomCharRange( 65, 90 );

		if ( $char > 96 && $char < 123 ) // Lowercase
			return static::randomCharRange( 97, 122 );

		if ( $char > 47 && $char < 58 ) // Numeric
			return static::randomCharRange( 48, 57 );

		return static::$randomCharMap[random_int( 0, count( static::$randomCharMap ) )];
	}
920067
public function scape_chars(array $chars = null)
    {
        if ($chars !== null) {
            $this->escapeChars = $chars;
            return $this;
        }
        return $this->escapeChars;
    }
455816
public static function ord($char)
	{
		if (! ReflectionTypeHint::isValid()) return false;
		if (is_null($char)) return $char;

		static $cache = array();
		if (array_key_exists($char, $cache)) return $cache[$char]; #speed improve

		switch (strlen($char))
		{
			case 1 : return $cache[$char] = ord($char);
			case 2 : return $cache[$char] = (ord($char{1}) & 63) |
											((ord($char{0}) & 31) << 6);
			case 3 : return $cache[$char] = (ord($char{2}) & 63) |
											((ord($char{1}) & 63) << 6) |
											((ord($char{0}) & 15) << 12);
			case 4 : return $cache[$char] = (ord($char{3}) & 63) |
											((ord($char{2}) & 63) << 6) |
											((ord($char{1}) & 63) << 12) |
											((ord($char{0}) & 7)  << 18);
			default :
				trigger_error('Character 0x' . bin2hex($char) . ' is not UTF-8!', E_USER_WARNING);
				return false;
		}
	}
1255134
public static function randomFor($char)
    {
        $list = self::listForCharacter($char);
        $class = get_called_class();
            
        return new $class($list[rand(0, count($list) - 1)]);

    }
375204
public function map(string $chars): string
    {
        //无目标语言时，返回自身
        if (self::$__i18n) {
            //自动加载
            if (!isset(self::$data[self::$__i18n][$this->__name])) {
                if (!isset(self::$data[self::$__i18n])) {
                    self::$data[self::$__i18n] = [];
                }
                self::$data[self::$__i18n][$this->__name] = call_user_func_array(self::$autoload, [$this->__name, self::$__i18n]) ?: [];
            }

            //是否存在目标字符
            if (isset(self::$data[self::$__i18n][$this->__name][$chars])) {
                $chars = self::$data[self::$__i18n][$this->__name][$chars];
            } elseif (is_callable($this->map)) {
                $chars = call_user_func($this->map, $chars);
            }
        }

        return $chars;
    }
325412
public static function char2Unicode($char)
    {
        switch (strlen($char)) {
            case 1 :
                return ord($char);
            case 2 :
                return (ord($char{1}) & 63) |
                    ((ord($char{0}) & 31) << 6);
            case 3 :
                return (ord($char{2}) & 63) |
                    ((ord($char{1}) & 63) << 6) |
                    ((ord($char{0}) & 15) << 12);
            case 4 :
                return (ord($char{3}) & 63) |
                    ((ord($char{2}) & 63) << 6) |
                    ((ord($char{1}) & 63) << 12) |
                    ((ord($char{0}) & 7) << 18);
            default :
                trigger_error('Character is not UTF-8!', E_USER_WARNING);
                return false;
        }
    }
22751
protected function output($char)
    {
        $output = $this->getOutput();
        $output .= $char;
        $this->setOutput($output);
    }
391812
public function get_node( $char ) {
		if ( ! isset( $this->links[ $char ] ) ) {
			$this->links[ $char ] = new Trie_Node();
		}

		return $this->links[ $char ];
	}
836504
public function reset($name = null) {
        if (defined('ARTISAN_TASK_PID')) {
            $pid = @posix_getpid();
        } else {
            $pid = 0;
        }
        if (!$name) {
            $name = $this->cfGname;
        }
        if (isset(self::$INSTANCE[ $pid ][ $name ])) {
            /**@var \wulaphp\db\dialect\DatabaseDialect $dr */
            $dr = self::$INSTANCE[ $pid ][ $name ];
            try {
                $dr->listDatabases();

                return $dr;
            } catch (\Exception $e) {
                unset(self::$INSTANCE[ $pid ][ $name ]);
            }
        }

        return self::getDialect(self::$cfgOptions[ $name ]);
    }
262078
function reset() {
          splitOnChars = opt.splitOnChars.slice(0);
          splitChar = splitOnChars[0];
          chunks = null;
          lastChunk = null;
        }
626850
public static function getCharDirection($char)
    {
        $c = Strings::ord($char);

        if (!(0x5be <= $c && 0x10b7f >= $c)) {
            return static::LTR;
        }

        if (0x85e >= $c) {
            if (0x5be === $c ||
                0x5c0 === $c ||
                0x5c3 === $c ||
                0x5c6 === $c ||
                (0x5d0 <= $c && 0x5ea >= $c) ||
                (0x5f0 <= $c && 0x5f4 >= $c) ||
                0x608 === $c ||
                0x60b === $c ||
                0x60d === $c ||
                0x61b === $c ||
                (0x61e <= $c && 0x64a >= $c) ||
                (0x66d <= $c && 0x66f >= $c) ||
                (0x671 <= $c && 0x6d5 >= $c) ||
                (0x6e5 <= $c && 0x6e6 >= $c) ||
                (0x6ee <= $c && 0x6ef >= $c) ||
                (0x6fa <= $c && 0x70d >= $c) ||
                0x710 === $c ||
                (0x712 <= $c && 0x72f >= $c) ||
                (0x74d <= $c && 0x7a5 >= $c) ||
                0x7b1 === $c ||
                (0x7c0 <= $c && 0x7ea >= $c) ||
                (0x7f4 <= $c && 0x7f5 >= $c) ||
                0x7fa === $c ||
                (0x800 <= $c && 0x815 >= $c) ||
                0x81a === $c ||
                0x824 === $c ||
                0x828 === $c ||
                (0x830 <= $c && 0x83e >= $c) ||
                (0x840 <= $c && 0x858 >= $c) ||
                0x85e === $c) {
                return static::RTL;
            }
        } elseif (0x200f === $c) {
            return static::RTL;
        } elseif (0xfb1d <= $c) {
            if (0xfb1d === $c ||
                (0xfb1f <= $c && 0xfb28 >= $c) ||
                (0xfb2a <= $c && 0xfb36 >= $c) ||
                (0xfb38 <= $c && 0xfb3c >= $c) ||
                0xfb3e === $c ||
                (0xfb40 <= $c && 0xfb41 >= $c) ||
                (0xfb43 <= $c && 0xfb44 >= $c) ||
                (0xfb46 <= $c && 0xfbc1 >= $c) ||
                (0xfbd3 <= $c && 0xfd3d >= $c) ||
                (0xfd50 <= $c && 0xfd8f >= $c) ||
                (0xfd92 <= $c && 0xfdc7 >= $c) ||
                (0xfdf0 <= $c && 0xfdfc >= $c) ||
                (0xfe70 <= $c && 0xfe74 >= $c) ||
                (0xfe76 <= $c && 0xfefc >= $c) ||
                (0x10800 <= $c && 0x10805 >= $c) ||
                0x10808 === $c ||
                (0x1080a <= $c && 0x10835 >= $c) ||
                (0x10837 <= $c && 0x10838 >= $c) ||
                0x1083c === $c ||
                (0x1083f <= $c && 0x10855 >= $c) ||
                (0x10857 <= $c && 0x1085f >= $c) ||
                (0x10900 <= $c && 0x1091b >= $c) ||
                (0x10920 <= $c && 0x10939 >= $c) ||
                0x1093f === $c ||
                0x10a00 === $c ||
                (0x10a10 <= $c && 0x10a13 >= $c) ||
                (0x10a15 <= $c && 0x10a17 >= $c) ||
                (0x10a19 <= $c && 0x10a33 >= $c) ||
                (0x10a40 <= $c && 0x10a47 >= $c) ||
                (0x10a50 <= $c && 0x10a58 >= $c) ||
                (0x10a60 <= $c && 0x10a7f >= $c) ||
                (0x10b00 <= $c && 0x10b35 >= $c) ||
                (0x10b40 <= $c && 0x10b55 >= $c) ||
                (0x10b58 <= $c && 0x10b72 >= $c) ||
                (0x10b78 <= $c && 0x10b7f >= $c)) {
                return static::RTL;
            }
        }

        return static::LTR;
    }
1237065
public function trimLeft($char)
    {
        if (!$this->isString($char)) {
            throw new StringObjectException(StringObjectException::MSG_INVALID_ARG, [
                '$char',
                'string'
            ]);
        }
        $this->val(ltrim($this->val(), $char));

        return $this;
    }
867692
public String getAndReset(String characterSet) {
		if (null == characterSet || characterSet.trim().isEmpty()) {
			return getAndReset();
		}
		synchronized (buffer) {
			String res = new String(this.buffer.toByteArray(), Charset.forName(characterSet));
			this.buffer.reset();
			return res;
		}
	}
1134477
public static function getStringWithoutLastElement($string, $separator)
    {
        $elements = self::getStringElements($string, $separator);
        $lastKey = Arrays::getLastKey($elements);

        unset($elements[$lastKey]);

        return implode($separator, $elements);
    }
91479
private function getCombiningClass(int $char): int
    {
        return isset($this->namePrepData->normalizeCombiningClasses[$char])
            ? $this->namePrepData->normalizeCombiningClasses[$char]
            : 0;
    }
325638
public function getRateReset()
    {
        if (!$this->lastResponse) {
            return null;
        }

        /** @var Header $limit */
        $limit = $this->lastResponse->getHeader('X-Rate-Reset');

        return $limit ? $limit->normalize() : null;
    }