A data structure for fast Unicode character metadata lookup, ported from ICU