nestedName

@param string $name
@return string
961767
public function nestedName($name)
    {
        if (!is_string($name)) {
            throw new InvalidArgumentException('nestedName name must string.');
        }
        $nestedTypes = $this->nestedTypes($name);

        if ($nestedTypes === false) {
            return $name;
        }
        return mb_substr($name, 0, mb_strlen($name) - mb_strlen($nestedTypes[count($nestedTypes) - 1]));
    }
441948
protected function fileBasename( $name )
    {
        $pos = strrpos( $name, '.' );
        if ( $pos !== false )
        {
            $name = substr( $name, 0, $pos );
        }
        return $name;
    }
1104772
public function createRegexFromName(string $name) : string
    {
        $route = $this->routeCollection->getNamedRoute($name);

        if ($route === null) {
            return '#^.*$#';
        }

        $strippedPathRegex = substr($route->getPathRegex(), 2, -2);

        if (empty($route->getRawHost())) {
            return "#^$strippedPathRegex$#";
        }

        $protocolRegex = preg_quote('http' . ($route->isSecure() ? 's' : '') . '://', '#');
        $strippedHostRegex = substr($route->getHostRegex(), 2, -2);

        return "#^$protocolRegex$strippedHostRegex$strippedPathRegex$#";
    }
586795
protected function getColumnName($name)
    {
        // check attributes for given name
        if (isset($this->mapping['attributes'][$name])) {
            return $this->mapping['attributes'][$name];
        }

        // check embeddeds for given name
        foreach($this->mapping['embeddeds'] as $embedded) {
            // check for embedded attributes
            if (isset($embedded['attributes'][$name])) {
                return $embedded['attributes'][$name];
            }

            // check for embedded attributes using embedded column prefix
            if ($embedded['columnPrefix'] && strpos($name, $embedded['columnPrefix']) === 0) {
                $embeddedName = substr($name, strlen($embedded['columnPrefix']));

                if (isset($embedded['attributes'][$embeddedName])) {
                    return $embedded['attributes'][$embeddedName];
                }
            }
        }
    }
874424
public function name($name) {
		if (isset($this->_cachedNames[$name])) {
			return $this->_cachedNames[$name];
		}

		list($open, $close) = $this->_quotes;
		list($first, $second) = $this->_splitFieldname($name);

		if ($first) {
			$result = "{$open}{$first}{$close}.{$open}{$second}{$close}";
		} elseif (preg_match('/^[a-z0-9_-]+$/iS', $name)) {
			$result = "{$open}{$name}{$close}";
		} else {
			$result = $name;
		}
		return $this->_cachedNames[$name] = $result;
	}
1096569
protected function getFileName($name)
    {
        $fileName = $this->baseDir . '/' . $name;
        if (substr($fileName, 0 - strlen($this->extension)) !== $this->extension) {
            $fileName .= $this->extension;
        }

        return $fileName;
    }
430830
public function name($name = null)
    {
        if ($name === null) {
            return $name;
        }
        $this->_name = $name;

        return $this;
    }
237643
protected function __getCamelName($name)
    {
        if(!isset($this->__camelCache[$name]))
        {
            $this->__camelCache[$name] = Text::toCamelName($name);
        }
        return $this->__camelCache[$name];
    }
281485
public function setName($name)
    {
        if ($this->getMultiValue() === true) {
            $name .= $this->getMultiValueSuffix();
        }

        return parent::setName($name);
    }
1151726
protected function getName($name)
    {
        $renames = $this->getRenames();

        if (isset($renames[$name])) {
            return $renames[$name];
        }
        return $name;
    }
111590
public function name($name = null)
    {
        if (func_num_args() === 0) {
            return $this->_name;
        }
        return $this->_name = (string) $name;
    }
14354
public static function toUnder($name)
    {
        $name = preg_replace_callback('@[A-Z]@', function ($m) {
            return '_' . strtolower($m[0]);
        }, $name);
        $name = ltrim($name, '_');
        return $name;
    }
1210209
protected function getSlugFromName($name)
    {
        if( array_key_exists($name, self::$sluggedNames) ) {
            return self::$sluggedNames[$name];
        }

        return self::$sluggedNames[$name] = trim(Str::slug($name, '-'));
    }
1190904
protected function prefixedName($name)
    {
        foreach ($this->prefixes as $acronym => $URI) {
            if (0 === strpos($name, $URI)) {
                $name = str_replace($URI, $acronym.':', $name);
                $this->usedPrefixes[$acronym] = true;
                break;
            } else {
                if (0 === strpos($name, $acronym.':')) {
                    $this->usedPrefixes[$acronym] = true;
                    break;
                }
            }
        }

        return $name;
    }
933460
protected function buildName($name)
    {
        $name = preg_replace('/([A-Z]{1})/', ' $1', $name);

        $name = ucfirst($name);

        return trim($name);
    }
471152
private function getFullClassName($name)
    {
        if ($name instanceof Name) {
            if ($name->isFullyQualified()) {
                return $name->toString();
            }
        }

        $name = (string)$name;

        if (isset($this->namespace->uses[$name])) {
            return $this->namespace->uses[$name];
        }

        if ($this->namespace->name) {
            return $this->namespace->name . '\\' . $name;
        }

        return $name;
    }
1194177
public function name($name)
    {
        $nameWithArea = !is_null($area         = area()) ? $area . '.' . $name : $name;
        return parent::name($nameWithArea);
    }