Dump symbol name for debug purpose
@param string $name
@return string
@since 1.5.0
767750
public static function dumpName(string $name): string
    {
        if (self::isLikeName($name)) {
            return $name;
        }
        return self::dumpInline($name);
    }
120764
protected function _dump($data, $name = '...')
    {
        $varType = strtolower(getType($data));

        $advType = false;
        if ($varType == 'string' && preg_match('#(.*)::(.*)#', $name, $matches)) {
            $matches[2] = trim(strToLower($matches[2]));
            if ($this->_strlen($matches[2]) > 0) {
                $advType = $matches[2];
            }
            $name = $matches[1];
        }

        if ($this->_strlen($name) > 80) {
            $name = substr($name, 0, 80) . '...';
        }

        if ($varType == 'null') {
            $this->_null($name);

        } elseif ($varType == 'boolean') {
            $this->_boolean($data, $name, $advType);

        } elseif ($varType == 'integer') {
            $this->_integer($data, $name, $advType);

        } elseif ($varType == 'double') {
            $this->_float($data, $name, $advType);

        } elseif ($varType == 'string') {
            $this->_string($data, $name, $advType);

        } elseif ($varType == 'array') {
            if ($this->_currentDepth <= self::$_config['dump']['maxDepth']) {
                $this->_currentDepth++;
                $this->_array($data, $name, $advType);
                $this->_currentDepth--;
            } else {
                $this->_maxDepth($data, $name, $advType);
            }

        } elseif ($varType == 'object') {
            if ($this->_currentDepth <= self::$_config['dump']['maxDepth']) {
                $this->_currentDepth++;

                if (get_class($data) == 'Closure') {
                    $this->_closure($data, $name, $advType);
                } else {
                    $this->_object($data, $name, $advType);
                }

                $this->_currentDepth--;
            } else {
                $this->_maxDepth($data, $name);
            }

        } elseif ($varType == 'resource') {
            $this->_resource($data, $name, $advType);

        } else {
            $this->_undefined($data, $name, $advType);
        }

        return $this;
    }
1356447
public function getUniqueName($name)
    {
        if (!isset($this->registry[$name])) {
            $this->registry[$name] = 0;

            return $name;
        }

        ++$this->registry[$name];

        return sprintf('%s_%s', $name, $this->registry[$name]);
    }
881390
protected function _getFileName($name){

		$name = trim($name);

		$name = iconv('ISO-8859-1', 'ASCII//TRANSLIT', $name);
		$name = preg_replace('/[^a-z0-9\-:]+/i', '_', $name);
		$name = str_replace(':', '.', $name);

		if($name == ''){

			throw new CacheException('Cache-entry name cannot be empty');
		}

		return "{$name}.cache";
	}
984281
protected function _getFallbackVarname($name)
    {
        if (false===strpos($name, '_')) {
            return $name;
        }
        $parts = explode('_', $name);
        $str = '';
        foreach ($parts as $_part) {
            $str .= strlen($str) ? ucfirst($_part) : $_part;
        }
        return $str;
    }
488232
protected function getName($name)
    {
        $name = parent::getName($name);

        // This fixes any URL encoded filename and sanitize it
        $name = strtolower(urldecode($name));

        // Replace spaces with a dash
        $name = preg_replace('!\s+!', '-', $name);

        // Remove odd characters
        return preg_replace('/[^A-Za-z0-9\-_\.]/', '', $name);
    }
519529
public static function debugSession($name = "") {

        $session_id = request()->session()->sessionId();
        $sessionIds = Cache::get(md5('Log.debugSession'), []);
        $sessionIds[ $session_id ] = $name;
        Cache::set(md5('Log.debugSession'), $sessionIds);
    }
1323980
private function getFullQualifiedAssetName($name)
    {
        $name = $this->getUnquotedAssetName($name);

        if (strpos($name, '.') === false) {
            $name = $this->getName() . '.' . $name;
        }

        return strtolower($name);
    }
918589
public function name($name)
    {
        $prefix = !is_null($this->associatedEntity) && $this->associatedEntity->isSupportedAttribute($name) ?
            $this->keys['POST_WRAP'] . '[' . $this->associatedEntity->getInputName() . ']' :
            $this->keys['POST_WRAP'];

        // Transforms user[name] to data[user][name];
        if (preg_match('/^(.+?)\[(.+)?/', $name, $matches)) {
            return $prefix . '[' . $matches[1].'][' . $matches[2];
        }

        // Transforms user to data[user]
        return $prefix . '[' . $name . ']';
    }
436300
public static function underscore($name)
    {
        if (!isset(self::$underscoreCache[$name])) {
            $underscoreName = strtolower(preg_replace('/(\B)([A-Z])/', '$1_$2', $name));
            self::$underscoreCache[$name] = $underscoreName;

            if (!isset(self::$camelizeCache[$underscoreName])) {
                self::$camelizeCache[$underscoreName] = $name;
            }
        }

        return self::$underscoreCache[$name];
    }
1310918
protected function getFileName($name) {
		
		// defaults
		$fileName = "";
		$dirSep   = DIRECTORY_SEPARATOR;
		
		// test to see what kind of path was supplied
		$posDash  = strpos($name,"-");
		$posSlash = strpos($name,$dirSep);
		
		if (($posSlash === false) && ($posDash !== false)) {
			$fileName = $this->baseDir.$dirSep.$this->patternUtil->getPatternFileName($name);
		} else {
			$fileName = $this->baseDir.$dirSep.$name;
		}
		
		if (substr($fileName, 0 - strlen($this->extension)) !== $this->extension) {
			$fileName .= $this->extension;
		}
		
		return $fileName;
		
	}
1245024
public function getCacheFilename($name)
    {
        if (false === $this->cache) {
            return false;
        }

        $class = substr($this->getTemplateClass($name), strlen($this->templateClassPrefix));

        return $this->getCache().'/'.substr($class, 0, 2).'/'.substr($class, 2, 2).'/'.substr($class, 4).'.php';
    }
967077
public function name($name = null)
    {
        if (func_num_args() === 0) {
            return $this->_data['name'];
        }
        $name = (string) $name;
        return $this->_data['name'] = $name;
    }
222637
public final function getHeaderLine($name): string
   {
       $key = $this->parseHeaderName($name);
       return array_key_exists($key, $this->header)
            ? implode(",", $this->header[$key])
            : "";
   }
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$#";
    }
440688
public static function name($name, $icon = null, bool $skip_i18n = false) : string {
		if (empty($skip_i18n)) {
			$name = i18n(null, $name);
		}
		if (!empty($icon)) {
			$name = \HTML::icon(['type' => $icon]) . ' ' . $name;
		}
		return $name;
	}
690573
public function user_name($name = NULL)
	{
		$delim = array('.', '_');

		if ($name)
		{
			$names = preg_split('/[^\w]+/', $name, NULL, PREG_SPLIT_NO_EMPTY);
			shuffle($names);
			return implode($delim[array_rand($delim)], $names);
		}

		if (mt_rand(0, 1))
		{
			$name = preg_replace('/\W/', '', \Phaker::name()->first_name);
		}
		else
		{
			$names = preg_replace('/\W/', '', array(\Phaker::name()->first_name, \Phaker::name()->last_name));
			$name  = implode($delim[array_rand($delim)], $names);
		}

		return static::fix_umlauts(strtolower($name));
	}