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

θͺ¬ζ˜Ž

γ‚ͺγƒ–γ‚Έγ‚§γ‚―γƒˆζŒ‡ε‘εž‹

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

ζ‰‹ηΆšγεž‹

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.

パラパータ

locale

The locale to minimize.

ζˆ»γ‚Šε€€

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

エラー / δΎ‹ε€–

Throws a ValueError when the locale argument contains null bytes.

参考

οΌ‹add a note

User Contributed Notes

There are no user contributed notes for this page.