First public contribution.
1 /************************************************************************
3 * localedef.h - declarations of locale testsuite helpers
5 * $Id: localedef.h 290022 2005-09-18 23:59:35Z sebor $
7 ************************************************************************
9 * Copyright (c) 1994-2005 Quovadx, Inc., acting through its Rogue Wave
10 * Software division. Licensed under the Apache License, Version 2.0 (the
11 * "License"); you may not use this file except in compliance with the
12 * License. You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0. Unless required by
14 * applicable law or agreed to in writing, software distributed under
15 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
16 * CONDITIONS OF ANY KIND, either express or implied. See the License
17 * for the specific language governing permissions and limitations under
20 **************************************************************************/
22 #ifndef RW_LOCALEDEF_H_INCLUDED
23 #define RW_LOCALEDEF_H_INCLUDED
29 #define _UNUSED_CAT 69
33 rw_locales (int loc_cat, const char* grep_exp);
37 rw_locale (const char *args, const char *fname);
40 // creates a temporary directory and defines the RWSTD_LOCALE_ROOT
41 // environment variable to the name of the directory; if the environment
42 // variable RW_PUTENV is defined, defines any additional environment
43 // variable specified by it (by calling rw_putenv(0))
44 // returns the absolute pathname of the directory
45 #define LOCALE_ROOT_ENVAR "RWSTD_LOCALE_ROOT"
47 _TEST_EXPORT const char*
48 rw_set_locale_root ();
50 // invokes localedef to create a locale database named by the last argument,
51 // if non-0, or in a directory specified by the RWSTD_LOCALE_ROOT environment
52 // variable otherwise, if it is defined, otherwise in the current working
54 // returns the name of the locale; successive calls to the function may
55 // change the contents of the character array pointed to by the pointer
56 // returned from prior calls
57 _TEST_EXPORT const char*
58 rw_localedef (const char*, const char*, const char*, const char*);
61 #endif // RW_LOCALEDEF_H_INCLUDED