|
Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
|
#include <locale>#include <cassert>#include <climits>#include <clocale>#include <csetjmp>#include <csignal>#include <cstdlib>#include <cstring>#include <cstdio>#include <cwchar>#include <sys/types.h>#include <sys/stat.h>#include <iconv.h>#include <langinfo.h>#include <unistd.h>#include <rw_driver.h>#include <rw_file.h>#include <rw_locale.h>
Go to the source code of this file.
Data Structures | |
| struct | TypeName< T > |
| struct | CodecvtDerived< Base > |
Macros | |
| #define | DEFINE_REPLACEMENT_NEW_AND_DELETE |
| #define | PATH_MAX 1024 |
| #define | min(a, b) ((a) < (b) ? (a) : (b)) |
| #define | CCVT_MAX_LOCALE 5 |
| #define | CCVT_MB_CUR_MIN 1 |
| #define | CCVT_MB_CUR_MAX 6 |
| #define | TEST(resultT, result, fname, args) |
| #define | TEST(resultT, result, fname, args) |
| #define | DO_TEST(io, src, ext_len, ext_num, dst, int_len, int_num, res) |
| #define | TEST_IN(src, ext_len, ext_num, dst, int_len, int_num, res) DO_TEST ('I', src, ext_len, ext_num, dst, int_len, int_num, res) |
| #define | TEST_OUT(src, ext_len, ext_num, dst, int_len, int_num, res) DO_TEST ('O', src, ext_len, ext_num, dst, int_len, int_num, res) |
| #define | TEST_IN_OUT(src, ext_len, ext_num, dst, int_len, int_num, res) DO_TEST ('i', src, ext_len, ext_num, dst, int_len, int_num, res) |
| #define | TEST_OUT_IN(src, ext_len, ext_num, dst, int_len, int_num, res) DO_TEST ('o', src, ext_len, ext_num, dst, int_len, int_num, res) |
| #define | TEST_UCS_MODIFIER(T, mod, enc, locname, f, i, is) |
| #define | TEST_LIBSTD(L, T, C, c, f, s, i, is, o, os, ur, ar, er, lr, mr) |
| #define | TEST_CONVERSION(T, L, C, f, s, i, is, o, os, ur, er, ar, lr, mr) |
| #define | TESTS_ETC_PATH "tests" SLASH "etc" |
Typedefs | |
| typedef std::codecvt_base::result | CodecvtResult |
| typedef std::codecvt< char, char, std::mbstate_t > | Codecvt |
| typedef std::codecvt_byname< char, char, std::mbstate_t > | CodecvtBn |
| typedef std::codecvt< wchar_t, char, std::mbstate_t > | CodecvtW |
| typedef std::codecvt_byname< wchar_t, char, std::mbstate_t > | CodecvtBnW |
Enumerations | |
| enum | { dtor = 1 << 0 , do_out = 1 << 1 , do_in = 1 << 2 , do_unshift = 1 << 3 , do_encoding = 1 << 4 , do_always_noconv = 1 << 5 , do_length = 1 << 6 , do_max_length = 1 << 7 } |
| enum | InternalEncoding { use_libc , use_UCS4 , use_UCS2 } |
Functions | |
| template<class T > | |
| std::size_t | rwtest_mbstowcs (std::mbstate_t &state, T *pi, const char *pe, std::size_t srclen) |
| _RWSTD_SPECIALIZED_FUNCTION std::size_t | rwtest_mbstowcs< char > (std::mbstate_t &, char *, const char *, std::size_t) |
| template<class charT > | |
| std::size_t | rwtest_wcstombs (std::mbstate_t &state, const charT *pi, char *pe, std::size_t srclen) |
| _RWSTD_SPECIALIZED_FUNCTION std::size_t | rwtest_wcstombs< char > (std::mbstate_t &, const char *, char *, std::size_t) |
| const Codecvt & | create_Codecvt (const std::locale &) |
| const CodecvtBn & | create_CodecvtBn (const std::locale &loc) |
| const CodecvtW & | create_CodecvtW (const std::locale &) |
| const CodecvtBnW & | create_CodecvtBnW (const std::locale &loc) |
| void | SIGABRT_handler (int) |
| int | main (int argc, char *argv[]) |
Variables | |
| int | call = 0 |
| std::jmp_buf | jmp_env |
| const char * | locale_root |
| const char | ext_ascii [] |
| #define CCVT_MAX_LOCALE 5 |
Definition at line 511 of file 22.locale.codecvt.cpp.
| #define CCVT_MB_CUR_MAX 6 |
Definition at line 513 of file 22.locale.codecvt.cpp.
| #define CCVT_MB_CUR_MIN 1 |
Definition at line 512 of file 22.locale.codecvt.cpp.
| #define DEFINE_REPLACEMENT_NEW_AND_DELETE |
22.locale.codecvt.cpp - test exercising the std::codecvt<> facets
$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 1994-2008 Rogue Wave Software.
Definition at line 57 of file 22.locale.codecvt.cpp.
| #define DO_TEST | ( | io, | |
| src, | |||
| ext_len, | |||
| ext_num, | |||
| dst, | |||
| int_len, | |||
| int_num, | |||
| res | |||
| ) |
| #define PATH_MAX 1024 |
Definition at line 63 of file 22.locale.codecvt.cpp.
| #define TEST | ( | resultT, | |
| result, | |||
| fname, | |||
| args | |||
| ) |
| #define TEST | ( | resultT, | |
| result, | |||
| fname, | |||
| args | |||
| ) |
| #define TEST_IN | ( | src, | |
| ext_len, | |||
| ext_num, | |||
| dst, | |||
| int_len, | |||
| int_num, | |||
| res | |||
| ) | DO_TEST ('I', src, ext_len, ext_num, dst, int_len, int_num, res) |
| #define TEST_IN_OUT | ( | src, | |
| ext_len, | |||
| ext_num, | |||
| dst, | |||
| int_len, | |||
| int_num, | |||
| res | |||
| ) | DO_TEST ('i', src, ext_len, ext_num, dst, int_len, int_num, res) |
| #define TEST_OUT | ( | src, | |
| ext_len, | |||
| ext_num, | |||
| dst, | |||
| int_len, | |||
| int_num, | |||
| res | |||
| ) | DO_TEST ('O', src, ext_len, ext_num, dst, int_len, int_num, res) |
| #define TEST_OUT_IN | ( | src, | |
| ext_len, | |||
| ext_num, | |||
| dst, | |||
| int_len, | |||
| int_num, | |||
| res | |||
| ) | DO_TEST ('o', src, ext_len, ext_num, dst, int_len, int_num, res) |
| #define TESTS_ETC_PATH "tests" SLASH "etc" |
| typedef std::codecvt<char,char,std::mbstate_t> Codecvt |
Definition at line 165 of file 22.locale.codecvt.cpp.
| typedef std::codecvt_byname<char,char,std::mbstate_t> CodecvtBn |
Definition at line 166 of file 22.locale.codecvt.cpp.
| typedef std::codecvt_byname<wchar_t,char,std::mbstate_t> CodecvtBnW |
Definition at line 170 of file 22.locale.codecvt.cpp.
Definition at line 164 of file 22.locale.codecvt.cpp.
Definition at line 169 of file 22.locale.codecvt.cpp.
| anonymous enum |
| Enumerator | |
|---|---|
| dtor | |
| do_out | |
| do_in | |
| do_unshift | |
| do_encoding | |
| do_always_noconv | |
| do_length | |
| do_max_length | |
Definition at line 207 of file 22.locale.codecvt.cpp.
| enum InternalEncoding |
| Enumerator | |
|---|---|
| use_libc | |
| use_UCS4 | |
| use_UCS2 | |
Definition at line 914 of file 22.locale.codecvt.cpp.
| const Codecvt & create_Codecvt | ( | const std::locale & | ) |
Definition at line 361 of file 22.locale.codecvt.cpp.
| const CodecvtBn & create_CodecvtBn | ( | const std::locale & | loc | ) |
Definition at line 367 of file 22.locale.codecvt.cpp.
| const CodecvtBnW & create_CodecvtBnW | ( | const std::locale & | loc | ) |
Definition at line 380 of file 22.locale.codecvt.cpp.
| const CodecvtW & create_CodecvtW | ( | const std::locale & | ) |
Definition at line 374 of file 22.locale.codecvt.cpp.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 2603 of file 22.locale.codecvt.cpp.
| std::size_t rwtest_mbstowcs | ( | std::mbstate_t & | state, |
| T * | pi, | ||
| const char * | pe, | ||
| std::size_t | srclen | ||
| ) |
Definition at line 77 of file 22.locale.codecvt.cpp.
| _RWSTD_SPECIALIZED_FUNCTION std::size_t rwtest_mbstowcs< char > | ( | std::mbstate_t & | , |
| char * | , | ||
| const char * | , | ||
| std::size_t | |||
| ) |
Definition at line 94 of file 22.locale.codecvt.cpp.
|
inline |
Definition at line 103 of file 22.locale.codecvt.cpp.
|
inline |
Definition at line 119 of file 22.locale.codecvt.cpp.
| void SIGABRT_handler | ( | int | ) |
Definition at line 1161 of file 22.locale.codecvt.cpp.
| int call = 0 |
Definition at line 219 of file 22.locale.codecvt.cpp.
| const char ext_ascii[] |
Definition at line 1849 of file 22.locale.codecvt.cpp.
| std::jmp_buf jmp_env |
Definition at line 1157 of file 22.locale.codecvt.cpp.
| const char* locale_root |
Definition at line 1648 of file 22.locale.codecvt.cpp.