EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index

StdLib/LibC/Locale/rune.h

Go to the documentation of this file.
00001 /*  $NetBSD: rune.h,v 1.11 2006/02/16 19:19:49 tnozaki Exp $  */
00002 
00003 /*-
00004  * Copyright (c) 1993
00005  *  The Regents of the University of California.  All rights reserved.
00006  *
00007  * This code is derived from software contributed to Berkeley by
00008  * Paul Borman at Krystal Technologies.
00009  *
00010  * Redistribution and use in source and binary forms, with or without
00011  * modification, are permitted provided that the following conditions
00012  * are met:
00013  * 1. Redistributions of source code must retain the above copyright
00014  *    notice, this list of conditions and the following disclaimer.
00015  * 2. Redistributions in binary form must reproduce the above copyright
00016  *    notice, this list of conditions and the following disclaimer in the
00017  *    documentation and/or other materials provided with the distribution.
00018  * 3. Neither the name of the University nor the names of its contributors
00019  *    may be used to endorse or promote products derived from this software
00020  *    without specific prior written permission.
00021  *
00022  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
00023  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00024  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00025  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
00026  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00027  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00028  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00029  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00030  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00031  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00032  * SUCH DAMAGE.
00033  *
00034  *  @(#)rune.h  8.1 (Berkeley) 6/27/93
00035  */
00036 #ifndef _RUNE_H_
00037 #define _RUNE_H_
00038 
00039 #include  <LibConfig.h>
00040 
00041 #include <stdio.h>
00042 #include <wchar.h>
00043 #include "runetype.h"
00044 
00045 /*
00046  * map _RTYPE_x to _CTYPE_x
00047  *
00048  * XXX: these should be defined in ctype.h and used in isxxx macros.
00049  *      (note: current isxxx macros use "old" NetBSD masks and
00050  *       _CTYPE_x are not public.)
00051  */
00052 #define _CTYPE_A  _RUNETYPE_A
00053 #define _CTYPE_C  _RUNETYPE_C
00054 #define _CTYPE_D  _RUNETYPE_D
00055 #define _CTYPE_G  _RUNETYPE_G
00056 #define _CTYPE_L  _RUNETYPE_L
00057 #define _CTYPE_P  _RUNETYPE_P
00058 #define _CTYPE_S  _RUNETYPE_S
00059 #define _CTYPE_U  _RUNETYPE_U
00060 #define _CTYPE_X  _RUNETYPE_X
00061 #define _CTYPE_B  _RUNETYPE_B
00062 #define _CTYPE_R  _RUNETYPE_R
00063 #define _CTYPE_I  _RUNETYPE_I
00064 #define _CTYPE_T  _RUNETYPE_T
00065 #define _CTYPE_Q  _RUNETYPE_Q
00066 #define _CTYPE_SWM  _RUNETYPE_SWM
00067 #define _CTYPE_SWS  _RUNETYPE_SWS
00068 #define _CTYPE_SW0  _RUNETYPE_SW0
00069 #define _CTYPE_SW1  _RUNETYPE_SW1
00070 #define _CTYPE_SW2  _RUNETYPE_SW2
00071 #define _CTYPE_SW3  _RUNETYPE_SW3
00072 
00073 /*
00074  * Other namespace conversion.
00075  */
00076 
00077 #define rune_t      __nbrune_t
00078 #define _RUNE_ISCACHED    _NB_RUNE_ISCACHED
00079 #define _CACHED_RUNES   _NB_CACHED_RUNES
00080 #define _DEFAULT_INVALID_RUNE _NB_DEFAULT_INVALID_RUNE
00081 #define _RuneEntry    _NBRuneEntry
00082 #define _RuneRange    _NBRuneRange
00083 #define _RuneLocale   _NBRuneLocale
00084 #define _RUNE_MAGIC_1   _NB_RUNE_MAGIC_1
00085 #define _RUNE_MODULE_1    _NB_RUNE_MODULE_1
00086 #define _RUNE_CODESET   _NB_RUNE_CODESET
00087 
00088 /*
00089  * global variables
00090  */
00091 extern size_t __mb_len_max_runtime;
00092 #define __MB_LEN_MAX_RUNTIME  __mb_len_max_runtime
00093 
00094 extern _RuneLocale _DefaultRuneLocale;
00095 extern _RuneLocale *_CurrentRuneLocale;
00096 extern const char *_PathLocale;
00097 
00098 #define _LOCALE_ALIAS_NAME  "locale.alias"
00099 
00100 #endif  
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines