We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed58904 commit 634f539Copy full SHA for 634f539
lib/unisec/properties.rb
@@ -44,13 +44,13 @@ def self.codepoints(prop)
44
# @example
45
# Unisec::Properties.codepoints_display('Quotation_Mark')
46
# # =>
47
- # # U+22 " QUOTATION MARK
48
- # # U+27 ' APOSTROPHE
+ # # U+0022 " QUOTATION MARK
+ # # U+0027 ' APOSTROPHE
49
# # …
50
def self.codepoints_display(prop)
51
codepoints = Properties.codepoints(prop)
52
codepoints.each do |cp|
53
- puts "U+#{cp[:codepoint].to_s(16).upcase.ljust(7)} #{cp[:char].ljust(4)} #{cp[:name]}"
+ puts "#{Properties.char2codepoint(cp[:char]).ljust(7)} #{cp[:char].ljust(4)} #{cp[:name]}"
54
end
55
nil
56
0 commit comments