|
Main Page
Class Hierarchy
Alphabetical List
Compound List
File List
Compound Members
|
00001 /* Template for FOX ver.0.1.0
00002 *
00003 * This software is in the public domain.
00004 * There are no restrictions on any sort of usage of this software.
00005 *
00006 * $fxxml: fxunicode.h,v 1.12.0 2001/03/28 21:17:35 Toshihiro Inoue Exp $
00007 */
00008 #ifndef FXUNICODE_H
00009 #define FXUNICODE_H
00010
00011 namespace FXEX {
00012
00013 /**
00014 * The FXUnicode namespace contains a collection of function which can encode/decode UTF8
00015 * character strings.
00016 */
00017 namespace FXUnicode {
00018
00019 /// encode a text string to a unicode character
00020 FXushort utf8CharEncode(const FXchar* text, FXint max);
00021
00022 /// decode a unicode character back into a text string
00023 FXString utf8CharDecode(FXushort ch);
00024
00025 /// return the number of unicode characters in a given text string.
00026 FXint utf8CharLen(const FXchar* text, FXint max);
00027
00028 }; // FXUnicode
00029 }; // namespace FXEX
00030 #endif // FXUNICODE_H