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