Automattic\WooCommerce\Vendor\GraphQL\Language

BlockString::isBlankprivate staticWC 1.0

Method of the class: BlockString{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = BlockString::isBlank( $str ): bool;
$str(string) (required)
.

BlockString::isBlank() code WC 10.9.1

private static function isBlank(string $str): bool
{
    $strLength = mb_strlen($str);
    for ($i = 0; $i < $strLength; ++$i) {
        if ($str[$i] !== ' ' && $str[$i] !== '\t') {
            return false;
        }
    }

    return true;
}