# encoding: UTF-8

module TwitterCldr
  module Normalizers
    class Base
      class << self
        def code_point_to_char(code_point)
          [code_point.upcase.hex].pack('U*')
        end
        def char_to_code_point(char)
          code_point = char.unpack('U*').first.to_s(16).upcase
          #Pad to atleast 4 digits
          code_point.rjust(4, '0')
        end
      end
    end
  end
end
# encoding: UTF-8

module TwitterCldr
  module Normalizers
    class Base
      class << self
        def code_point_to_char(code_point)
          [code_point.upcase.hex].pack('U*')
        end
        def char_to_code_point(char)
          code_point = char.unpack('U*').first.to_s(16).upcase
          code_point.rjust(4, '0') #Pad to at least 4 digits
        end
      end
    end
  end
end
Fix spelling mistake in comment.
Fix spelling mistake in comment.
