class ICU::Region
- ICU::Region
- Reference
- Object
Overview
Region
Territory containment and mapping.
Usage
ICU::Region.new(250) # => "FR"
ICU::Region.new("DE") # => 276
ICU::Region.new("EU").contains?(ICU::Region.new("IT")) # => true
ICU::Region.new(21).contained_regions.map(&.code) # => ["BM", "CA", "GL", "PM", "US"]
See also
Defined in:
icu/region.crConstructors
Instance Method Summary
- #==(other : Region)
- #code : String
- #contained_regions : Array(Region)
- #containing_region : Region
- #contains?(other : Region)
- #numeric_code : Int32
- #to_unsafe : LibICU::URegion