]> git.proxmox.com Git - mirror_edk2.git/blame - StdLib/Include/wctype.h
Update or add comments to files and functions for use by Doxygen.
[mirror_edk2.git] / StdLib / Include / wctype.h
CommitLineData
53e1e5c6 1/** @file\r
2 Wide character classification functions and macros.\r
3\r
4 Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
5 This program and the accompanying materials are licensed and made available under\r
6 the terms and conditions of the BSD License that accompanies this distribution.\r
7 The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
2aa62f2b 12\r
2aa62f2b 13 * Copyright (c)1999 Citrus Project,\r
14 * All rights reserved.\r
15 *\r
16 * Redistribution and use in source and binary forms, with or without\r
17 * modification, are permitted provided that the following conditions\r
18 * are met:\r
19 * 1. Redistributions of source code must retain the above copyright\r
20 * notice, this list of conditions and the following disclaimer.\r
21 * 2. Redistributions in binary form must reproduce the above copyright\r
22 * notice, this list of conditions and the following disclaimer in the\r
23 * documentation and/or other materials provided with the distribution.\r
24 *\r
25 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND\r
26 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
27 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
28 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE\r
29 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
35 * SUCH DAMAGE.\r
36 *\r
37 * citrus Id: wctype.h,v 1.4 2000/12/21 01:50:21 itojun Exp\r
2aa62f2b 38\r
53e1e5c6 39 NetBSD: wctype.h,v 1.6 2005/02/03 04:39:32 perry Exp\r
40**/\r
2aa62f2b 41#ifndef _WCTYPE_H_\r
42#define _WCTYPE_H_\r
43\r
44#include <sys/EfiCdefs.h>\r
45#include <machine/ansi.h>\r
46\r
53e1e5c6 47#ifdef _EFI_WINT_T\r
48 typedef _EFI_WINT_T wint_t;\r
49 #undef _BSD_WINT_T_\r
50 #undef _EFI_WINT_T\r
2aa62f2b 51#endif\r
52\r
53#ifdef _BSD_WCTRANS_T_\r
54typedef wint_t (*wctrans_t)(wint_t);\r
55#undef _BSD_WCTRANS_T_\r
56#endif\r
57\r
58#ifdef _BSD_WCTYPE_T_\r
59typedef _BSD_WCTYPE_T_ wctype_t;\r
60#undef _BSD_WCTYPE_T_\r
61#endif\r
62\r
63#ifndef WEOF\r
64#define WEOF ((wint_t)-1)\r
65#endif\r
66\r
67__BEGIN_DECLS\r
68int /*EFIAPI*/ iswalnum(wint_t);\r
69int /*EFIAPI*/ iswalpha(wint_t);\r
70int /*EFIAPI*/ iswcntrl(wint_t);\r
71int /*EFIAPI*/ iswctype(wint_t, wctype_t);\r
72int /*EFIAPI*/ iswdigit(wint_t);\r
73int /*EFIAPI*/ iswgraph(wint_t);\r
74int /*EFIAPI*/ iswlower(wint_t);\r
75int /*EFIAPI*/ iswprint(wint_t);\r
76int /*EFIAPI*/ iswpunct(wint_t);\r
77int /*EFIAPI*/ iswblank(wint_t);\r
78int /*EFIAPI*/ iswspace(wint_t);\r
79int /*EFIAPI*/ iswupper(wint_t);\r
80int /*EFIAPI*/ iswxdigit(wint_t);\r
81wint_t /*EFIAPI*/ towctrans(wint_t, wctrans_t);\r
82wint_t /*EFIAPI*/ towlower(wint_t);\r
83wint_t /*EFIAPI*/ towupper(wint_t);\r
84wctrans_t /*EFIAPI*/ wctrans(const char *);\r
85wctype_t /*EFIAPI*/ wctype(const char *);\r
86__END_DECLS\r
87\r
88#endif /* _WCTYPE_H_ */\r