99 |
7u83 |
1 |
/*
|
|
|
2 |
* Changes by Gunnar Ritter, Freiburg i. Br., Germany, November 2002.
|
|
|
3 |
*
|
|
|
4 |
* Sccsid @(#)wcharm.h 1.12 (gritter) 10/18/03
|
|
|
5 |
*/
|
|
|
6 |
/* UNIX(R) Regular Expresssion Library
|
|
|
7 |
*
|
|
|
8 |
* Note: Code is released under the GNU LGPL
|
|
|
9 |
*
|
|
|
10 |
* Copyright (C) 2001 Caldera International, Inc.
|
|
|
11 |
*
|
|
|
12 |
* This library is free software; you can redistribute it and/or
|
|
|
13 |
* modify it under the terms of the GNU Lesser General Public
|
|
|
14 |
* License as published by the Free Software Foundation; either
|
|
|
15 |
* version 2 of the License, or (at your option) any later version.
|
|
|
16 |
*
|
|
|
17 |
* This library is distributed in the hope that it will be useful,
|
|
|
18 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
19 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
20 |
* Lesser General Public License for more details.
|
|
|
21 |
*
|
|
|
22 |
* You should have received a copy of the GNU Lesser General Public
|
|
|
23 |
* License along with this library; if not, write to:
|
|
|
24 |
* Free Software Foundation, Inc.
|
|
|
25 |
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
26 |
*/
|
|
|
27 |
/* Stubbed-out wide character locale information */
|
|
|
28 |
|
|
|
29 |
#ifndef LIBUXRE_WCHARM_H
|
|
|
30 |
#define LIBUXRE_WCHARM_H
|
|
|
31 |
|
|
|
32 |
#ifndef LIBUXRE_STATIC
|
|
|
33 |
#define LIBUXRE_STATIC
|
|
|
34 |
#endif
|
|
|
35 |
|
|
|
36 |
#ifndef LIBUXRE_WUCHAR_T
|
|
|
37 |
#define LIBUXRE_WUCHAR_T
|
|
|
38 |
typedef unsigned int wuchar_type;
|
|
|
39 |
#endif
|
|
|
40 |
|
|
|
41 |
#ifndef LIBUXRE_W_TYPE
|
|
|
42 |
#define LIBUXRE_W_TYPE
|
|
|
43 |
typedef int w_type;
|
|
|
44 |
#endif
|
|
|
45 |
|
|
|
46 |
#include <wchar.h>
|
|
|
47 |
#include <wctype.h>
|
|
|
48 |
#include <stdlib.h>
|
|
|
49 |
|
|
|
50 |
#ifdef notdef
|
|
|
51 |
#define ISONEBYTE(ch) ((ch), 1)
|
|
|
52 |
|
|
|
53 |
#define libuxre_mb2wc(wp, cp) ((wp), (cp), 0)
|
|
|
54 |
#endif /* notdef */
|
|
|
55 |
|
|
|
56 |
#define ISONEBYTE(ch) (((ch) & 0200) == 0 || mb_cur_max == 1)
|
|
|
57 |
|
|
|
58 |
#define to_lower(ch) (mb_cur_max > 1 ? towlower(ch) : tolower(ch))
|
|
|
59 |
#define to_upper(ch) (mb_cur_max > 1 ? towupper(ch) : toupper(ch))
|
|
|
60 |
|
|
|
61 |
LIBUXRE_STATIC int libuxre_mb2wc(w_type *, const unsigned char *);
|
|
|
62 |
|
|
|
63 |
#endif /* !LIBUXRE_WCHARM_H */
|