|
Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
|
#include <rw_locale.h>#include <rw_environ.h>#include <rw_file.h>#include <rw_process.h>#include <rw_printf.h>#include <rw_fnmatch.h>#include <rw_braceexp.h>#include <rw_driver.h>#include <fcntl.h>#include <sys/stat.h>#include <unistd.h>#include <sys/wait.h>#include <ios>#include <limits>#include <locale>#include <assert.h>#include <limits.h>#include <locale.h>#include <stdarg.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <ctype.h>#include <wchar.h>#include <clocale>#include <langinfo.h>
Go to the source code of this file.
Data Structures | |
| struct | _rw_locale_entry |
| struct | _rw_locale_array |
| struct | _rw_lookup_entry_t |
| struct | _rw_lookup_table_t |
Macros | |
| #define | _RWSTD_TEST_SRC |
| #define | LC_MESSAGES _RWSTD_LC_MESSAGES |
| #define | EXE_SUFFIX "" |
| #define | PATH_MAX 1024 |
| #define | TOPDIR "TOPDIR" /* the TOPDIR environment variable */ |
| #define | BINDIR "BINDIR" /* the BINDIR environment variable */ |
| #define | SLASH "\\" |
| #define | IS_ABSOLUTE_PATHNAME(path) |
| #define | RELPATH "etc" SLASH "nls" |
| #define | TESTS_ETC_PATH "tests" SLASH "etc" |
| #define | RW_CAT_EXT ".cat" |
| #define | _QUIET_MALLOC(n) malloc(n) |
| #define | _QUIET_FREE(p) free(p) |
Functions | |
| _TEST_EXPORT int | rw_locale (const char *args, const char *fname) |
| _TEST_EXPORT const char * | rw_localedef (const char *args, const char *src, const char *charmap, const char *locname) |
| _TEST_EXPORT const char * | rw_set_locale_root () |
| _TEST_EXPORT char * | rw_locales (int loc_cat, const char *grep_exp, bool prepend_c_loc) |
| _TEST_EXPORT size_t | rw_get_mb_chars (rw_mbchar_array_t mb_chars) |
| _TEST_EXPORT size_t | rw_get_wchars (wchar_t *wbuf, size_t bufsize, int nbytes) |
| _TEST_EXPORT const char * | rw_find_mb_locale (size_t *mb_cur_max, rw_mbchar_array_t mb_chars) |
| _TEST_EXPORT const char * | rw_create_locale (const char *charmap, const char *locale) |
| _TEST_EXPORT int | rw_opt_setlocales (int argc, char *argv[]) |
| _TEST_EXPORT int | rw_create_catalog (const char *catname, const char *catalog) |
| bool | _rw_isspace (char ch) |
| char | _rw_toupper (char ch) |
| char | _rw_tolower (char ch) |
| _TEST_EXPORT char * | rw_locale_query (int loc_cat, const char *query, size_t wanted) |
Variables | |
| _TEST_EXPORT const char *const & | rw_opt_locales = _rw_locale_names |
| #define _RWSTD_TEST_SRC |
locale.cpp - definitions of locale helpers
$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-2008 Rogue Wave Software, Inc.
Definition at line 30 of file locale.cpp.
| #define BINDIR "BINDIR" /* the BINDIR environment variable */ |
Definition at line 103 of file locale.cpp.
| #define EXE_SUFFIX "" |
Definition at line 85 of file locale.cpp.
| #define IS_ABSOLUTE_PATHNAME | ( | path | ) |
Definition at line 111 of file locale.cpp.
| #define LC_MESSAGES _RWSTD_LC_MESSAGES |
Definition at line 83 of file locale.cpp.
| #define PATH_MAX 1024 |
Definition at line 98 of file locale.cpp.
| #define RELPATH "etc" SLASH "nls" |
Definition at line 119 of file locale.cpp.
| #define RW_CAT_EXT ".cat" |
Definition at line 124 of file locale.cpp.
| #define SLASH "\\" |
Definition at line 110 of file locale.cpp.
| #define TESTS_ETC_PATH "tests" SLASH "etc" |
Definition at line 120 of file locale.cpp.
| #define TOPDIR "TOPDIR" /* the TOPDIR environment variable */ |
Definition at line 102 of file locale.cpp.
|
inline |
Definition at line 968 of file locale.cpp.
|
inline |
Definition at line 980 of file locale.cpp.
|
inline |
Definition at line 974 of file locale.cpp.
| _TEST_EXPORT int rw_create_catalog | ( | const char * | catname, |
| const char * | catalog | ||
| ) |
Definition at line 920 of file locale.cpp.
| _TEST_EXPORT const char * rw_create_locale | ( | const char * | charmap, |
| const char * | locale | ||
| ) |
Definition at line 792 of file locale.cpp.
| _TEST_EXPORT const char * rw_find_mb_locale | ( | size_t * | mb_cur_max, |
| rw_mbchar_array_t | mb_chars | ||
| ) |
Definition at line 724 of file locale.cpp.
| _TEST_EXPORT size_t rw_get_mb_chars | ( | rw_mbchar_array_t | mb_chars | ) |
Definition at line 618 of file locale.cpp.
| _TEST_EXPORT size_t rw_get_wchars | ( | wchar_t * | wbuf, |
| size_t | bufsize, | ||
| int | nbytes | ||
| ) |
Definition at line 662 of file locale.cpp.
| _TEST_EXPORT int rw_locale | ( | const char * | args, |
| const char * | fname | ||
| ) |
Definition at line 132 of file locale.cpp.
| _TEST_EXPORT char * rw_locale_query | ( | int | loc_cat, |
| const char * | query, | ||
| size_t | wanted | ||
| ) |
Definition at line 1356 of file locale.cpp.
| _TEST_EXPORT const char * rw_localedef | ( | const char * | args, |
| const char * | src, | ||
| const char * | charmap, | ||
| const char * | locname | ||
| ) |
Definition at line 154 of file locale.cpp.
| _TEST_EXPORT char * rw_locales | ( | int | loc_cat, |
| const char * | grep_exp, | ||
| bool | prepend_c_loc | ||
| ) |
Definition at line 368 of file locale.cpp.
| _TEST_EXPORT int rw_opt_setlocales | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 866 of file locale.cpp.
| _TEST_EXPORT const char * rw_set_locale_root | ( | ) |
Definition at line 324 of file locale.cpp.
| _TEST_EXPORT const char* const& rw_opt_locales = _rw_locale_names |
Definition at line 862 of file locale.cpp.