runetype.h revision 4fd606d1f5abe38e1f42c38de1d2e895166bd0f4
/* $NetBSD: runetype.h,v 1.19 2005/11/29 03:11:59 christos Exp $ */
/*-
* Copyright (c) 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Paul Borman at Krystal Technologies.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* @(#)runetype.h 8.1 (Berkeley) 6/2/93
*/
#ifndef _NB_RUNETYPE_H_
#define _NB_RUNETYPE_H_
#include <sys/EfiCdefs.h>
/* for cross host tools on older systems */
#ifndef UINT32_C
/* assumes sizeof(unsigned int)>=4 */
#endif
typedef uint32_t __nbrune_t;
typedef uint64_t __runepad_t;
#define _NB_RUNE_ISCACHED(c) ((c)>=0 && (c)<_CACHED_RUNES)
/*
* The lower 8 bits of runetype[] contain the digit value of the rune.
*/
/*
* rune file format. network endian.
*/
typedef struct {
typedef struct {
typedef struct {
/*
* The following are to deal with Runes larger than _CACHED_RUNES - 1.
* Their data is actually contiguous with this structure so as to make
*/
/* variable size data follows */
/*
* expanded rune locale declaration. local to the host. host endian.
*/
typedef struct {
} _NBRuneEntry;
typedef struct {
} _NBRuneRange;
/*
* wctrans stuffs.
*/
typedef struct _WCTransEntry {
const char *te_name;
#define _WCTRANS_INDEX_LOWER 0
#define _WCTRANS_INDEX_UPPER 1
#define _WCTRANS_NINDEXES 2
/*
* wctype stuffs.
*/
typedef struct _WCTypeEntry {
const char *te_name;
} _WCTypeEntry;
#define _WCTYPE_INDEX_ALNUM 0
#define _WCTYPE_INDEX_ALPHA 1
#define _WCTYPE_INDEX_BLANK 2
#define _WCTYPE_INDEX_CNTRL 3
#define _WCTYPE_INDEX_DIGIT 4
#define _WCTYPE_INDEX_GRAPH 5
#define _WCTYPE_INDEX_LOWER 6
#define _WCTYPE_INDEX_PRINT 7
#define _WCTYPE_INDEX_PUNCT 8
#define _WCTYPE_INDEX_SPACE 9
#define _WCTYPE_INDEX_UPPER 10
#define _WCTYPE_INDEX_XDIGIT 11
#define _WCTYPE_NINDEXES 12
/*
* ctype stuffs
*/
typedef struct _NBRuneLocale {
/*
* copied from _FileRuneLocale
*/
void *rl_variable;
/*
* the following portion is generated on the fly
*/
const char *rl_codeset;
struct _citrus_ctype_rec *rl_citrus_ctype;
/* magic number for LC_CTYPE (rune)locale declaration */
/* magic string for dynamic link module - type should be like "LC_CTYPE" */
/* codeset tag */
#define _NB_RUNE_CODESET "CODESET="
#endif /* !_NB_RUNETYPE_H_ */