WordPress at a glance
function is not described

Automattic\Jetpack\Autoloader\jpfd0d177b2d8140b4b20d4474b07b8ed7

Path_Processor::is_absolute_path() private WC 1.0

Indicates whether or not a path is absolute.

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

No Hooks.

Return

true|false. True if the path is absolute, otherwise false.

Usage

// private - for code of main (parent) class only
$result = $this->is_absolute_path( $path );
$path(string) (required)
The path to check.

Code of Path_Processor::is_absolute_path() WC 5.3.0

<?php
private function is_absolute_path( $path ) {
	if ( 0 === strlen( $path ) || '.' === $path[0] ) {
		return false;
	}

	// Absolute paths on Windows may begin with a drive letter.
	if ( preg_match( '/^[a-zA-Z]:[\/\\\\]/', $path ) ) {
		return true;
	}

	// A path starting with / or \ is absolute; anything else is relative.
	return ( '/' === $path[0] || '\\' === $path[0] );
}