1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/stdcpp/tsrc/Stdcpp_test/stdcxx/include/localedef.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,61 @@
1.4 +/************************************************************************
1.5 + *
1.6 + * localedef.h - declarations of locale testsuite helpers
1.7 + *
1.8 + * $Id: localedef.h 290022 2005-09-18 23:59:35Z sebor $
1.9 + *
1.10 + ************************************************************************
1.11 + *
1.12 + * Copyright (c) 1994-2005 Quovadx, Inc., acting through its Rogue Wave
1.13 + * Software division. Licensed under the Apache License, Version 2.0 (the
1.14 + * "License"); you may not use this file except in compliance with the
1.15 + * License. You may obtain a copy of the License at
1.16 + * http://www.apache.org/licenses/LICENSE-2.0. Unless required by
1.17 + * applicable law or agreed to in writing, software distributed under
1.18 + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
1.19 + * CONDITIONS OF ANY KIND, either express or implied. See the License
1.20 + * for the specific language governing permissions and limitations under
1.21 + * the License.
1.22 + *
1.23 + **************************************************************************/
1.24 +
1.25 +#ifndef RW_LOCALEDEF_H_INCLUDED
1.26 +#define RW_LOCALEDEF_H_INCLUDED
1.27 +
1.28 +
1.29 +#include <testdefs.h>
1.30 +
1.31 +
1.32 +#define _UNUSED_CAT 69
1.33 +
1.34 +
1.35 +_TEST_EXPORT char*
1.36 +rw_locales (int loc_cat, const char* grep_exp);
1.37 +
1.38 +
1.39 +_TEST_EXPORT int
1.40 +rw_locale (const char *args, const char *fname);
1.41 +
1.42 +
1.43 +// creates a temporary directory and defines the RWSTD_LOCALE_ROOT
1.44 +// environment variable to the name of the directory; if the environment
1.45 +// variable RW_PUTENV is defined, defines any additional environment
1.46 +// variable specified by it (by calling rw_putenv(0))
1.47 +// returns the absolute pathname of the directory
1.48 +#define LOCALE_ROOT_ENVAR "RWSTD_LOCALE_ROOT"
1.49 +
1.50 +_TEST_EXPORT const char*
1.51 +rw_set_locale_root ();
1.52 +
1.53 +// invokes localedef to create a locale database named by the last argument,
1.54 +// if non-0, or in a directory specified by the RWSTD_LOCALE_ROOT environment
1.55 +// variable otherwise, if it is defined, otherwise in the current working
1.56 +// directory
1.57 +// returns the name of the locale; successive calls to the function may
1.58 +// change the contents of the character array pointed to by the pointer
1.59 +// returned from prior calls
1.60 +_TEST_EXPORT const char*
1.61 +rw_localedef (const char*, const char*, const char*, const char*);
1.62 +
1.63 +
1.64 +#endif // RW_LOCALEDEF_H_INCLUDED