Documentation
¶
Overview ¶
Package unicodeurls contains URLs for Unicode data files. It is meant to be used in code generators that parse the files.
Index ¶
- Constants
- func ParseHex(parts []string) string
- func ReadDataFile(url string, processor func(string))
- func ReadDataFileList[T any](url string, processor func(string) (T, bool)) (output []T)
- func ReadDataFileMap[Key comparable, Value any](url string, processor func(string) (Key, Value, bool)) (output map[Key]Value)
Constants ¶
View Source
const Confusables = "https://www.unicode.org/Public/security/" + UnicodeVersion + ".0/confusables.txt"
View Source
const EmojiTest = "https://unicode.org/Public/emoji/" + UnicodeVersion + "/emoji-test.txt"
View Source
const EmojiVariationSequences = "https://www.unicode.org/Public/" + UnicodeVersion + ".0/ucd/emoji/emoji-variation-sequences.txt"
View Source
const UnicodeVersion = "16.0"
Variables ¶
This section is empty.
Functions ¶
func ReadDataFile ¶
ReadDataFile fetches a data file from a URL and processes it line by line with the given processor function.
func ReadDataFileList ¶
ReadDataFileList fetches a data file from a URL and converts lines into array items with the given function.
func ReadDataFileMap ¶
func ReadDataFileMap[Key comparable, Value any](url string, processor func(string) (Key, Value, bool)) (output map[Key]Value)
ReadDataFileMap fetches a data file from a URL and converts lines into a map with the given function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.