Class Locale::Tag::Posix
In: lib/locale/tag/posix.rb
Parent: Simple

Locale tag class for POSIX locale

  • ja
  • ja_JP
  • ja_JP.UTF-8
  • ja_JP.UTF-8@Osaka
  • C/POSIX (-> en_US)

Methods

candidates   charset=   modifier=   new   parse   to_s  

Constants

LANGUAGE = "([a-z]{2,})"
TAG_RE = /\A#{LANGUAGE}(?:_#{REGION})?(?:\.([^@]+))?(?:@(.*))?\Z/i

Attributes

charset  [R] 
modifier  [R] 

Public Class methods

Public Instance methods

Returns an Array of tag-candidates order by priority. Use Locale.candidates instead of this method.

Set the charset.

Set the modifier as a String

Returns the language tag.

  <language>_<COUNTRY>.<CHARSET>@<MODIFIER>
  (e.g.) "ja_JP.EUC-JP@Modifier"

[Validate]