Deleted Added
full compact
wctype.c (127477) wctype.c (177311)
1/*-
2 * Copyright (c) 2002 Tim J. Robbins.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2002 Tim J. Robbins.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/lib/libc/locale/wctype.c 127477 2004-03-27 08:59:21Z tjr $");
28__FBSDID("$FreeBSD: head/lib/libc/locale/wctype.c 177311 2008-03-17 18:22:23Z antoine $");
29
30#include <ctype.h>
31#include <string.h>
32#include <wctype.h>
33
34#undef iswctype
35int
36iswctype(wint_t wc, wctype_t charclass)
37{
38
39 return (__istype(wc, charclass));
40}
41
42wctype_t
43wctype(const char *property)
44{
29
30#include <ctype.h>
31#include <string.h>
32#include <wctype.h>
33
34#undef iswctype
35int
36iswctype(wint_t wc, wctype_t charclass)
37{
38
39 return (__istype(wc, charclass));
40}
41
42wctype_t
43wctype(const char *property)
44{
45 struct {
45 static const struct {
46 const char *name;
47 wctype_t mask;
48 } props[] = {
49 { "alnum", _CTYPE_A|_CTYPE_D },
50 { "alpha", _CTYPE_A },
51 { "blank", _CTYPE_B },
52 { "cntrl", _CTYPE_C },
53 { "digit", _CTYPE_D },

--- 21 unchanged lines hidden ---
46 const char *name;
47 wctype_t mask;
48 } props[] = {
49 { "alnum", _CTYPE_A|_CTYPE_D },
50 { "alpha", _CTYPE_A },
51 { "blank", _CTYPE_B },
52 { "cntrl", _CTYPE_C },
53 { "digit", _CTYPE_D },

--- 21 unchanged lines hidden ---