func nameMatchesPath(name, path string) int {
	// #2363 - optimisation: only use unicode character regexp if path contains
	// unicode characters
	re := nameToRegexp(name, !allASCII(path))
	return regexpMatchesPath(re, path)
}
// nameMatchesPath returns the index in the path for the right-most match.
// Returns -1 if not found.
nameMatchesPath returns the index in the path for the right-most match.
Returns -1 if not found.
// nameMatchesPath returns the index in the path for the right - most match . // Returns - 1 if not found .
func nameMatchesPath(name, path string) int {
	re := nameToRegexp(name, !allASCII(path))
	return regexpMatchesPath(re, path)
}
func nameMatchesPath ( name , path string ) int { re := nameToRegexp ( name , ! allASCII ( path ) ) return regexpMatchesPath ( re , path ) }
nameMatchesPath returns the index in the path for the right-most match.
nameMatchesPath returns the index in the path for the right - most match .
// #2363 - optimisation: only use unicode character regexp if path contains // unicode characters