|
Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
|
#include <rw/_defs.h>#include <locale>#include <climits>#include <clocale>#include <cstring>#include <cctype>#include <cstdio>#include <cstdlib>#include <cwchar>#include <cwctype>#include <langinfo.h>#include <rw_driver.h>#include <rw_file.h>#include <rw_locale.h>
Go to the source code of this file.
Macros | |
| #define | LC_MESSAGES _RWSTD_LC_MESSAGES |
| #define | NLOOPS 25 |
| #define | MAX_STR_SIZE 16 |
| #define | LOCALES |
| #define | BEGIN_LOCALE_LOOP(num, locname, loop_cntrl) |
| #define | END_LOCALE_LOOP(locname) |
| #define | ALPHA std::ctype_base::alpha |
| #define | UPPER std::ctype_base::upper |
| #define | LOWER std::ctype_base::lower |
| #define | DIGIT std::ctype_base::digit |
| #define | SPACE std::ctype_base::space |
| #define | CNTRL std::ctype_base::cntrl |
| #define | PUNCT std::ctype_base::punct |
| #define | XDIGIT std::ctype_base::xdigit |
| #define | GRAPH std::ctype_base::graph |
| #define | PRINT std::ctype_base::print |
| #define | TEST(lower, upper) |
Typedefs | |
| typedef unsigned char | UChar |
Functions | |
| char | libc_tolower (char ch) |
| char | libc_toupper (char ch) |
| const char * | widen (char *dst, const char *src) |
| char | widen (char, char ch, const char *) |
| wchar_t | libc_tolower (wchar_t ch) |
| wchar_t | libc_toupper (wchar_t ch) |
| const wchar_t * | widen (wchar_t *dst, const char *src) |
| wchar_t | widen (wchar_t, char ch, const char *locname) |
| template<class charT > | |
| void | test_toupper (charT, const char *cname) |
| template<class charT > | |
| void | test_libc (charT, const char *cname) |
| template<class charT > | |
| void | test_libstd_toupper (charT, const char *cname, const std::ctype< charT > &ct, const char *locname) |
| template<class charT > | |
| void | test_libstd (charT, const char *cname) |
| template<class charT > | |
| void | run_test (charT, const char *cname) |
| int | main (int argc, char *argv[]) |
Variables | |
| const char * | locale_root |
| const char * | locale_list = 0 |
| #define ALPHA std::ctype_base::alpha |
Definition at line 113 of file 22.locale.ctype.toupper.cpp.
| #define BEGIN_LOCALE_LOOP | ( | num, | |
| locname, | |||
| loop_cntrl | |||
| ) |
Definition at line 88 of file 22.locale.ctype.toupper.cpp.
| #define CNTRL std::ctype_base::cntrl |
Definition at line 118 of file 22.locale.ctype.toupper.cpp.
| #define DIGIT std::ctype_base::digit |
Definition at line 116 of file 22.locale.ctype.toupper.cpp.
| #define END_LOCALE_LOOP | ( | locname | ) |
Definition at line 101 of file 22.locale.ctype.toupper.cpp.
| #define GRAPH std::ctype_base::graph |
Definition at line 121 of file 22.locale.ctype.toupper.cpp.
| #define LC_MESSAGES _RWSTD_LC_MESSAGES |
22.locale.ctype.toupper.cpp - Tests exercising the toupper() of ctype facet
$Id$
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2001-2006 Rogue Wave Software.
Definition at line 63 of file 22.locale.ctype.toupper.cpp.
| #define LOCALES |
Definition at line 81 of file 22.locale.ctype.toupper.cpp.
| #define LOWER std::ctype_base::lower |
Definition at line 115 of file 22.locale.ctype.toupper.cpp.
| #define MAX_STR_SIZE 16 |
Definition at line 79 of file 22.locale.ctype.toupper.cpp.
| #define NLOOPS 25 |
Definition at line 78 of file 22.locale.ctype.toupper.cpp.
| #define PRINT std::ctype_base::print |
Definition at line 122 of file 22.locale.ctype.toupper.cpp.
| #define PUNCT std::ctype_base::punct |
Definition at line 119 of file 22.locale.ctype.toupper.cpp.
| #define SPACE std::ctype_base::space |
Definition at line 117 of file 22.locale.ctype.toupper.cpp.
| #define UPPER std::ctype_base::upper |
Definition at line 114 of file 22.locale.ctype.toupper.cpp.
| #define XDIGIT std::ctype_base::xdigit |
Definition at line 120 of file 22.locale.ctype.toupper.cpp.
| typedef unsigned char UChar |
Definition at line 111 of file 22.locale.ctype.toupper.cpp.
| char libc_tolower | ( | char | ch | ) |
Definition at line 126 of file 22.locale.ctype.toupper.cpp.
Definition at line 153 of file 22.locale.ctype.toupper.cpp.
| char libc_toupper | ( | char | ch | ) |
Definition at line 131 of file 22.locale.ctype.toupper.cpp.
Definition at line 158 of file 22.locale.ctype.toupper.cpp.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 489 of file 22.locale.ctype.toupper.cpp.
Definition at line 464 of file 22.locale.ctype.toupper.cpp.
Definition at line 254 of file 22.locale.ctype.toupper.cpp.
Definition at line 292 of file 22.locale.ctype.toupper.cpp.
| void test_libstd_toupper | ( | charT | , |
| const char * | cname, | ||
| const std::ctype< charT > & | ct, | ||
| const char * | locname | ||
| ) |
Definition at line 262 of file 22.locale.ctype.toupper.cpp.
Definition at line 221 of file 22.locale.ctype.toupper.cpp.
| const char * widen | ( | char * | dst, |
| const char * | src | ||
| ) |
Definition at line 136 of file 22.locale.ctype.toupper.cpp.
| char widen | ( | char | , |
| char | ch, | ||
| const char * | |||
| ) |
Definition at line 146 of file 22.locale.ctype.toupper.cpp.
Definition at line 163 of file 22.locale.ctype.toupper.cpp.
Definition at line 185 of file 22.locale.ctype.toupper.cpp.
| const char* locale_list = 0 |
Definition at line 86 of file 22.locale.ctype.toupper.cpp.
| const char* locale_root |
Definition at line 76 of file 22.locale.ctype.toupper.cpp.