diff options
author | Loren J. Rittle <ljrittle@acm.org> | 2005-01-25 23:44:03 +0000 |
---|---|---|
committer | Loren J. Rittle <ljrittle@gcc.gnu.org> | 2005-01-25 23:44:03 +0000 |
commit | a7f7b3348c3abeddc55d218e7b555751b26f7957 (patch) | |
tree | a8dceaa530cb6ef6a79e4ea805107074c2babcc0 /libstdc++-v3/config | |
parent | ef8614d733ee5496b834d5f483cc49907fdba2ba (diff) | |
download | gcc-a7f7b3348c3abeddc55d218e7b555751b26f7957.zip gcc-a7f7b3348c3abeddc55d218e7b555751b26f7957.tar.gz gcc-a7f7b3348c3abeddc55d218e7b555751b26f7957.tar.bz2 |
acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Map FreeBSD to darwin instead of generic.
* acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Map FreeBSD to darwin
instead of generic. Change autoconf report to "darwin or freebsd".
* configure: Regenerate.
* config/os/bsd/freebsd/ctype_inline.h (ctype<wchar_t>::do_is): Add.
(ctype<wchar_t>::do_scan_is): Likewise.
(ctype<wchar_t>::do_scan_not): Likewise.
From-SVN: r94236
Diffstat (limited to 'libstdc++-v3/config')
-rw-r--r-- | libstdc++-v3/config/os/bsd/freebsd/ctype_inline.h | 39 |
1 files changed, 38 insertions, 1 deletions
diff --git a/libstdc++-v3/config/os/bsd/freebsd/ctype_inline.h b/libstdc++-v3/config/os/bsd/freebsd/ctype_inline.h index d69324a..37425b6 100644 --- a/libstdc++-v3/config/os/bsd/freebsd/ctype_inline.h +++ b/libstdc++-v3/config/os/bsd/freebsd/ctype_inline.h @@ -1,6 +1,6 @@ // Locale support -*- C++ -*- -// Copyright (C) 2000, 2003 Free Software Foundation, Inc. +// Copyright (C) 2000, 2003, 2004, 2005 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -104,3 +104,40 @@ ++__low; return __low; } + +#ifdef _GLIBCXX_USE_WCHAR_T + inline bool + ctype<wchar_t>:: + do_is(mask __m, wchar_t __c) const + { + return __istype (__c, __m); + } + + inline const wchar_t* + ctype<wchar_t>:: + do_is(const wchar_t* __lo, const wchar_t* __hi, mask* __vec) const + { + for (; __lo < __hi; ++__vec, ++__lo) + *__vec = __maskrune (*__lo, upper | lower | alpha | digit | xdigit + | space | print | graph | cntrl | punct | alnum); + return __hi; + } + + inline const wchar_t* + ctype<wchar_t>:: + do_scan_is(mask __m, const wchar_t* __lo, const wchar_t* __hi) const + { + while (__lo < __hi && ! __istype (*__lo, __m)) + ++__lo; + return __lo; + } + + inline const wchar_t* + ctype<wchar_t>:: + do_scan_not(mask __m, const char_type* __lo, const char_type* __hi) const + { + while (__lo < __hi && __istype (*__lo, __m)) + ++__lo; + return __lo; + } +#endif |