public static function stringLength(string $str) : int { return Binary::safeStrlen($str); }
/** * @param string $input * @return string * @throws \TypeError */ public static function nonEmpty(string $input) : string { if (Util::stringLength($input) < 1) { throw new \TypeError(); } return $input; }