daveyarwood / djy

A library of character utility functions for Clojure
Eclipse Public License 1.0
37 stars 3 forks source link

Add category function #5

Closed nibe closed 5 years ago

nibe commented 5 years ago

(category-int char) wraps code used in multiple places in a function. It returns an integer value indicating the general category of the given character or code point.

(category char) goes a step further and returns the name of the general category of the given character or code point, e.g. "Lu" for an upper-case letter. Instead of a Java constant you get a standardized abbreviation.

daveyarwood commented 5 years ago

I've pushed version 0.2.0 to clojars, including this addition.