1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
# This file was automatically generated by running:
#
# scripts/generate_html_entities.cr
#
# DO NOT EDIT
module HTML
# :nodoc:
SINGLE_CHAR_ENTITIES = {
<%- single_char_entities.each do |name, entity| -%>
<%= name.inspect %>.to_slice => '\u{<%= "%06X" % entity.codepoints[0] %>}',
<%- end -%>
} of Bytes => Char
# :nodoc:
DOUBLE_CHAR_ENTITIES = {
<%- double_char_entities.each do |name, entity| -%>
<%= name.inspect %>.to_slice => "\u{<%= "%04X" % entity.codepoints[0] %>}\u{<%= "%04X" % entity.codepoints[1] %>}",
<%- end -%>
} of Bytes => String
# :nodoc:
MAX_ENTITY_NAME_SIZE = <%= max_entity_name_size %>
end
|