转为下划线
@param $name
@return string
14354
public static function toUnder($name)
    {
        $name = preg_replace_callback('@[A-Z]@', function ($m) {
            return '_' . strtolower($m[0]);
        }, $name);
        $name = ltrim($name, '_');
        return $name;
    }
337100
protected function getPath($name) {
		$path = [];
		$matches = null;
		preg_match('/^([^\[]+)/', $name, $matches);
		$path[] = $matches[0];
		preg_match_all('/\[([^\]]*)\]/', $name, $matches);
		$path = array_merge($path, $matches[1]);

		return $path;
	}
286451
public function get(string $name): ?string
    {
        $key = strtolower($name);
        if (!isset($this->headers[$key])) {
            return null;
        }

        return $this->headers[$key][1];
    }
852927
public static function get( $name = '' ) {
		$name = self::sanitize( $name );
		$filename = self::get_filename( $name );

		return $filename ? @file_get_contents( $filename ) : '';
	}
68766
protected function getHtmlName($name)
    {
        if (strpos($name, '.')) {
            $segments = explode('.', $name);
            return array_shift($segments).'['.implode('][', $segments).']';
        }

        return $name;
    }
84533
public function getPheanstalk($name = null)
    {
        $name = null !== $name ? $name : $this->default;

        if (array_key_exists($name, $this->pheanstalks)) {
            return $this->pheanstalks[$name];
        }

        return;
    }
1110287
public static function get(string $name)
    {
        //获取连接句柄
        $handle = self::handle();

        //获取存储对象的类型
        $type = $handle->type($name);

        switch ($type) {
            case \redis::REDIS_STRING:
                return new RedisString($handle, $name);
            case \redis::REDIS_HASH:
                return new RedisHash($handle, $name);
            case \redis::REDIS_LIST:
                return new RedisList($handle, $name);
            case \redis::REDIS_SET:
                return new RedisSet($handle, $name);
            case \redis::REDIS_ZSET:
                return new RedisSortedSet($handle, $name);
            case \redis::REDIS_NOT_FOUND:
                return null;
            default:
                trigger_error('不识别的Redis数据类型:' . $type, E_USER_ERROR);
                return null;
        }
    }
185478
protected function getTranslationName($name)
    {
        $name = $this->getRouteName($name);
        $name = array_last(explode('.', $name));

        return $name;
    }
967077
public function name($name = null)
    {
        if (func_num_args() === 0) {
            return $this->_data['name'];
        }
        $name = (string) $name;
        return $this->_data['name'] = $name;
    }
750986
private function underscore($name)
    {
        $result = preg_replace('/([A-Z]|[0-9]+)/', "_$1", $name);
        $result = trim($result, '_');
        $result = strtolower($result);
        
        return $result;
    }
329123
public static function string($name)
    {
        $buffer = [];
        foreach (self::trigger($name) as $hook) {
            $buffer[] = $hook->output;
        }
        
        return implode("", $buffer);
    }
714739
public function parseName($name)
    {
        if(null !== $this->config->prefix)
        {
            return str_replace('@', $this->config->prefix, $name);
        }
        else
        {
            return $name;
        }
    }
120631
public static function getDescriptionByName($name)
    {
        $key = strtoupper($name);
        if (isset(self::$availableNameList[$key])) {
            return self::$availableNameList[$key];
        } else {
            return false;
        }
    }
389149
protected function getNamedParameterRegex($name)
    {
        if (mb_substr($name, 0, 1) == ':') {
            $name = mb_substr($name, 1);
        }

        return $this->wrapRegex($this->notInsideQuotes('\:' . preg_quote($name), false));
    }
1333422
public function getText(string $name)
    {
        return $this->textContentAreas->where(function (TextContentArea $contentArea) use ($name) {
            return $contentArea->name === $name;
        })->first();
    }
782032
public static function get($name = null)
	{
		if(empty($name))
		{
			// 默认数据库配置名
			$name = Config::get('@.DEFAULT_DB');
		}
		$obj = self::getInstance($name);
		if(null !== $obj)
		{
			return $obj;
		}
		$option = Config::get('@.DB.' . $name);
		if(false === $option)
		{
			return false;
		}
		else
		{
			return Db::create($option,$name);
		}
	}
1110456
public function getItemKey($name): string
    {
        if (func_num_args() > 1)
            $name = func_get_args();

        if (is_array($name))
            return implode('|', $name);

        return (string) $name;
    }