3
* Copyright 1998 CrossWire Bible Society (http://www.crosswire.org)
4
* CrossWire Bible Society
8
* This program is free software; you can redistribute it and/or modify it
9
* under the terms of the GNU General Public License as published by the
10
* Free Software Foundation version 2.
12
* This program is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* General Public License for more details.
26
/** Converts a 32-bit unsigned integer UTF-32 value into a UTF-8 encoded 1-6 byte array
27
* @param utf32 the UTF-32 Unicode code point value
28
* @param utf8 pointer to an array of 6 unsigned chars to contain the UTF-8 value
31
unsigned char* UTF32to8 (unsigned long utf32, unsigned char * utf8);
34
/** Converts a UTF-8 encoded 1-6 byte array into a 32-bit unsigned integer UTF-32 value
35
* @param utf8 pointer to an array of 6 unsigned chars containing the UTF-8 value, starting in the utf8[0]
36
* @param utf32 the UTF-32 Unicode code point value
39
unsigned long UTF8to32 (unsigned char * utf8, unsigned long utf32);