Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

scim_types.h

Go to the documentation of this file.
00001 /** @file scim_types.h
00002  *  @brief defines some basic data types.
00003  */
00004 
00005 /*
00006  * Smart Common Input Method
00007  * 
00008  * Copyright (c) 2003 James Su <suzhe@turbolinux.com.cn>
00009  * Copyright (c) 2002 James Su <suzhe@turbolinux.com.cn>
00010  *
00011  *
00012  * This library is free software; you can redistribute it and/or
00013  * modify it under the terms of the GNU Lesser General Public
00014  * License as published by the Free Software Foundation; either
00015  * version 2 of the License, or (at your option) any later version.
00016  *
00017  * This library is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  * GNU Lesser General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU Lesser General Public
00023  * License along with this program; if not, write to the
00024  * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
00025  * Boston, MA  02111-1307  USA
00026  *
00027  * $Id: scim_types.h.in,v 1.1 2003/12/29 04:54:10 uid67192 Exp $
00028  */
00029 
00030 
00031 #ifndef __SCIM_TYPES_H
00032 #define __SCIM_TYPES_H
00033 
00034 #include <stdint.h>
00035 
00036 namespace scim {
00037 
00038 typedef uint16_t uint16;
00039 typedef uint32_t uint32;
00040 typedef uint64_t uint64;
00041 
00042 #ifdef __STDC_ISO_10646__
00043     typedef wchar_t ucs4_t;
00044 #else
00045     typedef uint32 ucs4_t;
00046 #endif
00047 
00048 typedef std::basic_string<char> String;
00049 typedef std::basic_string<ucs4_t> WideString;
00050 
00051 } // namespace scim
00052 
00053 #endif //__SCIM_TYPES_H
00054 
00055 /*
00056 vi:ts=4:nowrap:ai:expandtab
00057 */

Generated on Fri May 7 17:27:25 2004 for scim by doxygen 1.3.6