Montag, 11. Februar 2013

utf8proc

What is utf8proc?

utf8proc is a library for processing UTF-8 encoded strings. It is fairly lightweight in comparison to something like ICU, for example. It is implemented in C and has an API in C as well as Ruby.

Installation and Quickstart

1. Download from Web

http://www.public-software-group.org/utf8proc

2. Build the library

make c-library

3. Install static libs

mkdir "%userprofile%\lib\utf8proc"
cp -v *.a "%userprofile%\lib\utf8proc"

4. Install header files

mkdir "%userprofile%\include\utf8proc"
cp -v utf8proc.h "%userprofile%\include\utf8proc"

5. Add paths to environment

Static libs in LIBRARY_PATH
Headers in CPATH

6. Compile a test program

Compiled ex_getutf8len.c



Keine Kommentare:

Kommentar veröffentlichen