Skip to content

noahdiewald/icu4e

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

icu4e: Erlang NIF wrappers around icu4c

Prerequisites

To use icu4e, you will need:

  • Erlang/OTP R13B04
  • icu4c version 4.x

Building

To build icu4e, simply type ‘make’ at the commandline.

Using

To use icu4e, start the icu4e application:

1> application:start(icu4e).
ok

Then make calls to the ustring module:

2> S = ustring:new(<<"hello">>, latin1).
<<104,0,101,0,108,0,108,0,111,0>>
3> U = ustring:toupper(S).
<<72,0,69,0,76,0,76,0,79,0>>
4> unicode:characters_to_binary(U, ustring:encoding(), latin1).
<<"HELLO">>

Troubleshooting

…/as: option `-n’ is ambiguous

The correct way to ask ‘echo’ to omit its trailing newline is not consistent across platforms. If you find the build process complaining about random “-n” commandline flags, edit your copy of the icu-config script. You should find two lines that look like:

ECHO_N="-n"
ECHO_C=""

Change these lines to look like this:

ECHO_N=""
ECHO_C="\c"

About

Erlang NIF wrappers for the ICU

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 51.7%
  • Erlang 45.3%
  • C++ 3.0%