@nikitonsky Just had a look, and it just calls erlang.

Erlang implementation is here:
github.com/erlang/otp/blob/016

Erlang has a script which generates the unicode util code from the unicode spec. Macros would have been nice for that. :)
github.com/erlang/otp/blob/mas