os/ossrv/stdcpp/tsrc/Stdcpp_test/stdcxx/include/localedef.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 /************************************************************************
     2  *
     3  * localedef.h - declarations of locale testsuite helpers
     4  *
     5  * $Id: localedef.h 290022 2005-09-18 23:59:35Z sebor $
     6  *
     7  ************************************************************************
     8  *
     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
    18  * the License.
    19  *
    20  **************************************************************************/
    21 
    22 #ifndef RW_LOCALEDEF_H_INCLUDED
    23 #define RW_LOCALEDEF_H_INCLUDED
    24 
    25 
    26 #include <testdefs.h>
    27 
    28 
    29 #define _UNUSED_CAT 69
    30 
    31 
    32 _TEST_EXPORT char*
    33 rw_locales (int loc_cat, const char* grep_exp);
    34 
    35 
    36 _TEST_EXPORT int
    37 rw_locale (const char *args, const char *fname);
    38 
    39 
    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"
    46 
    47 _TEST_EXPORT const char*
    48 rw_set_locale_root ();
    49 
    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
    53 // directory
    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*);
    59 
    60 
    61 #endif   // RW_LOCALEDEF_H_INCLUDED