WordPress at a glance
function is not described

Symfony\Component\CssSelector\XPath\Extension

NodeExtension::isSafeName() private WC 1.0

Tests if given name is safe.

{} It's a method of the class: NodeExtension{}

No Hooks.

Return

true|false.

Usage

// private - for code of main (parent) class only
$result = $this->isSafeName( $name );
$name(string) (required)
-

Code of NodeExtension::isSafeName() WC 5.4.1

<?php
private function isSafeName($name)
{
    return 0 < preg_match('~^[a-zA-Z_][a-zA-Z0-9_.-]*$~', $name);
}