aboutsummaryrefslogtreecommitdiff
path: root/ucd/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'ucd/api.go')
-rw-r--r--ucd/api.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/ucd/api.go b/ucd/api.go
index 6451f39..0212e01 100644
--- a/ucd/api.go
+++ b/ucd/api.go
@@ -39,6 +39,19 @@ func NormalizeCharacterProperty(propName, propVal string) (string, error) {
return b.String(), nil
}
+func IsContributoryProperty(propName string) bool {
+ if propName == "" {
+ return false
+ }
+
+ for _, p := range contributoryProperties {
+ if propName == p {
+ return true
+ }
+ }
+ return false
+}
+
func FindCodePointRanges(propName, propVal string) ([]*CodePointRange, bool, error) {
if propName == "" {
propName = "gc"