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