ffutf
Utility functions for manipulating Unicode Transformation Format (UTF) compatible data
FoofyFox Unicode Transformation Format (ffutf)

This small library of functions provides a Unicode-aware interface for the C programming language. These functions can be categorised into two types:

Usage

This file can be included with current code as follows:

C

#include "ffutf.h"
Header definitions for ffutf.

C++

extern "C" {
#include "ffutf.h"
}

In addition, if the macro FFUTF_FAILSAFELY is specified at compile time with -DFFUTF_FAILSAFELY, safer alternatives to invalid input will be considered. If a value such as -DFFUTF_FAILSAFELY=foo is specified, the value that the macro expands to will be ignored.

For the type field, to specify an endianness, please use the bitwise OR operator. For example, to specify a UTF-16 encoding with a little endian format, use UTF16 | LE.