Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Erlang NIF wrappers for the ICU
C Erlang
Branch: master

use icu's U_IS_BIG_ENDIAN macro to choose our native endian atom

this requires that icu4e be built against an ICU library configured for
the platform that icu4e will be running on ... but that seems like a
reasonable requirement
latest commit 5d52ca8f88
@beerriot authored
Failed to load latest commit information.
c_src
doc
ebin
include
src
.gitignore
LICENSE
Makefile
NOTICE
README.org
rebar
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.