Module: Unisec::Utils::Range — Documentation by YARD 0.9.44

# Module: Unisec::Utils::Range

Defined in:
  lib/unisec/utils.rb

## Class Method Summary collapse

- .range2codepoint_range(range) ⇒ ::String

  Convert a (integer) range to a range of Unicode code points.

## Class Method Details

### .range2codepoint_range(range) ⇒ `::String`

Convert a (integer) range to a range of Unicode code points

#### Examples:

    Unisec::Utils::Range.range2codepoint_range(1048576..1114111) # => "U+100000 - U+10FFFF"

Parameters:

- range (`::Range`)

Returns:

- (`::String`)

    242
    243
    244
    # File 'lib/unisec/utils.rb', line 242

    def self.range2codepoint_range(range)
      "#{Integer.deccp2stdhexcp(range.begin)} - #{Integer.deccp2stdhexcp(range.end)}"
    end