Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Erlang NIF wrappers for the ICU

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 c_src
Octocat-spinner-32 doc
Octocat-spinner-32 ebin
Octocat-spinner-32 include
Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 Makefile
Octocat-spinner-32 NOTICE
Octocat-spinner-32 README.org
Octocat-spinner-32 rebar
Octocat-spinner-32 rebar.config
README.org

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"
Something went wrong with that request. Please try again.