Skip to content

barrel-db/erlang-ucol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ucol

Simple collation module for Erlang applications based on NIf that allows you to sort binaries.

Requirements

This module requires icu4c installed on your system.

OSX users: the build use the version installed with your system.

Example of usage

1> ucol:compare(<<"foo">>, <<"bar">>).
1
2> ucol:compare(<<"foo">>, <<"foo">>).
0
3> ucol:compare(<<"A">>, <<"aai">>).
-1

The function compare returns 1 when the initial binary is greater than the other, 0 when they are equivalent or -1 when the one is less than the other.

About

ICU based collation Erlang module

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages