Module: Parser (I18n::Locale::Tag::Rfc4646)

Overview
Module Structure
Class Hierarchy
Constants
Parser::PATTERN
Module Methods
Parser.match / 1
is a submodule of
class: Rfc4646 ( I18n::Locale::Tag )
has properties
constant: PATTERN   
module method: match / 1   
is defined at
#52 in active_support/vendor/i18n-0.4.1/i18n/locale/tag/rfc4646.rb  

Overview

Module Structure

  module: <Toplevel Module>
  module: I18n
  module: Locale
  module: Tag
  class: Rfc4646
module: Parser     

Class Hierarchy

Constants

Parser::PATTERN

#53 in active_support/vendor/i18n-0.4.1/i18n/locale/tag/rfc4646.rb

PATTERN = %r{\A(?: ([a-z]{2,3}(?:(?:-[a-z]{3}){0,3})?|[a-z]{4}|[a-z]{5,8}) # language (?:-([a-z]{4}))? # script (?:-([a-z]{2}|\d{3}))? # region (?:-([0-9a-z]{5,8}|\d[0-9a-z]{3}))* # variant (?:-([0-9a-wyz](?:-[0-9a-z]{2,8})+))* # extension (?:-(x(?:-[0-9a-z]{1,8})+))?| # privateuse subtag (x(?:-[0-9a-z]{1,8})+)| # privateuse tag /* ([a-z]{1,3}(?:-[0-9a-z]{2,8}){1,2}) */ # grandfathered )\z}xi   

Module Methods