Get the translation name.

@param  string  $name
@return string
185478
protected function getTranslationName($name)
    {
        $name = $this->getRouteName($name);
        $name = array_last(explode('.', $name));

        return $name;
    }
1268482
public function nameGetNextName($name) {
    $parentName = $this->parents[$name];
    if (!isset($parentName)) {
      $siblingNames = $this->toplevelNames;
      $siblingMap = $this->toplevelMap;
    }
    else {
      $siblingNames = $this->childNames[$parentName];
      $siblingMap = $this->childMap[$parentName];
    }
    $index = $siblingMap[$name];
    return isset($siblingNames[$index + 1])
      ? $siblingNames[$index + 1]
      : null;
  }
1061356
public function formatLabel($name)
    {
        if (!$name) {
            return null;
        }

        if ($this->translator->has($name)) {
            $translatedName = $this->translator->get($name);

            if (is_string($translatedName)) {
                return $translatedName;
            }
        }

        return ucfirst(str_replace('_', ' ', $name));
    }
1119376
protected function getNamedItem(string $name)
    {
        if (array_key_exists($name, $this->items)) {
            return $this->items[$name];
        }

        return null;
    }
967077
public function name($name = null)
    {
        if (func_num_args() === 0) {
            return $this->_data['name'];
        }
        $name = (string) $name;
        return $this->_data['name'] = $name;
    }
810137
public static function getIsoCodeByName($name)
    {
        $name = strtoupper($name);
        return (isset(self::$currencies[$name])) ? self::$currencies[$name] : self::$currencies['REAL'];
    }
235593
public function getMessage($name = null)
    {
        if ($name === null) {
            return $this->message;
        }
        return str_replace(':name', $name, $this->message);
    }
1151726
protected function getName($name)
    {
        $renames = $this->getRenames();

        if (isset($renames[$name])) {
            return $renames[$name];
        }
        return $name;
    }
135481
protected function parseName($name)
    {
        if (str_contains($name, '\\')) {
            $name = str_replace('\\', '/', $name);
        }

        if (str_contains($name, '/')) {
            $formats = collect(explode('/', $name))->map(function ($name)
            {
                return Str::studly($name);
            });

            $name = $formats->implode('/');
        } else {
            $name = Str::studly($name);
        }

        return $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 . ']';
    }
12245
public static function getDIKey($name)
    {
        $name = str_replace(['/', '\\'], '.', $name);

        $name = StringNormalise::toDotSeparated($name);

        return strtolower(static::getPrefix() . '.' . $name);
    }
828811
protected function getMigrationFullName($name)
    {
        $folder = '';

        if (Config::organizeMigrations()) {
            $folder = $this->tableName;
        }

        return str_finish($this->getMigrationPath($folder) . DIRECTORY_SEPARATOR . $name, '.php');
    }
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;
	}
309081
protected function getTranslationName($name)
    {
        $name = Str::replaceFirst($this->getDefaultNamespace(trim($this->rootNamespace(), '\\')).'\\', '', $name);
        $name = Str::replaceLast('Models\\', '', $name);
        $name = str_plural(snake_case($name));

        return $name;
    }
784173
public function server(string $name): string {
        if (!isset($this->server[$name])) {
            return "";
        }
        return $this->server[$name];
    }
1129197
protected function readName($name)
    {
        $name = trim($name);
        $firstName = NULL;
        $lastName = NULL;
        preg_match('/([^,]+),([^,]+)/', $name, $matches);
        if (count($matches) > 0) {
            $lastName = trim($matches[1]);
            $firstName = isset($matches[2]) ? trim($matches[2]) : '';
        } else {
            preg_match_all('/[^\s]+/', $name, $matches);
            if (isset($matches[0])) {
                $matches = $matches[0];
            }
            if (count($matches) > 1) {
                $lastName = array_pop($matches);
                $firstName = implode(' ', $matches);
            }
            if (count($matches) == 1) {
                $firstName = $matches[0];
            }
        }
        return array('firstname' => $firstName, 'lastname' => $lastName);
    }
1239058
public function getLocaleForName($name)
    {
        foreach ($this->translations as $translation)
        {
            if ($translation->tag_name === $name)
            {
                return $translation->locale;
            }
        }

        return null;
    }