Locale::minimizeSubtags

locale_minimize_subtags

(No version information available, might only be in Git)

Locale::minimizeSubtags -- locale_minimize_subtags — Remove likely subtags from a locale

Descrição

Estilo orientado a objetos

public static function Locale::minimizeSubtags(string $locale): string|false

Estilo procedural

function locale_minimize_subtags(string $locale): string|false

Minimizes a locale tag by removing subtags that can be inferred using the ICU likely subtag data. For example, en_Latn_US becomes en.

Parâmetros

locale

The locale to minimize.

Valor Retornado

Returns the locale with likely subtags removed, or false on failure.

Erros/ExceƧƵes

Throws a ValueError when the locale argument contains null bytes.

Veja tambƩm

+adicionar nota

Notas de UsuƔrios

Não hÔ notas de usuÔrios para esta pÔgina.