epoc32/include/stdapis/langinfo.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
parent 0 061f57f2323e
permissions -rw-r--r--
Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
     1 /*-
     2  * © Portions copyright (c) 2006 Nokia Corporation.  All rights reserved.
     3  *
     4  * Copyright (c) 2001 Alexey Zelkin <phantom@FreeBSD.org>
     5  * All rights reserved.
     6  *
     7  * Redistribution and use in source and binary forms, with or without
     8  * modification, are permitted provided that the following conditions
     9  * are met:
    10  * 1. Redistributions of source code must retain the above copyright
    11  *    notice, this list of conditions and the following disclaimer.
    12  * 2. Redistributions in binary form must reproduce the above copyright
    13  *    notice, this list of conditions and the following disclaimer in the
    14  *    documentation and/or other materials provided with the distribution.
    15  *
    16  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
    17  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    18  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    19  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
    20  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    21  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    22  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    23  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    24  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    25  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    26  * SUCH DAMAGE.
    27  *
    28  * $FreeBSD: src/include/langinfo.h,v 1.6 2002/09/18 05:54:25 mike Exp $
    29  */
    30  
    31   
    32 #ifndef _LANGINFO_H_
    33 #define	_LANGINFO_H_
    34 
    35 #include <sys/cdefs.h>
    36 #include <sys/_types.h>
    37 #ifdef __SYMBIAN32__
    38 #include <_ansi.h>
    39 #endif
    40 
    41 #ifndef _NL_ITEM_DECLARED
    42 typedef	__nl_item	nl_item;
    43 #define	_NL_ITEM_DECLARED
    44 #endif
    45 
    46 #define	CODESET		0	/* codeset name */
    47 #define	D_T_FMT		1	/* string for formatting date and time */
    48 #define	D_FMT		2	/* date format string */
    49 #define	T_FMT		3	/* time format string */
    50 #define	T_FMT_AMPM	4	/* a.m. or p.m. time formatting string */
    51 #define	AM_STR		5	/* Ante Meridian affix */
    52 #define	PM_STR		6	/* Post Meridian affix */
    53 
    54 /* week day names */
    55 #define	DAY_1		7
    56 #define	DAY_2		8
    57 #define	DAY_3		9
    58 #define	DAY_4		10
    59 #define	DAY_5		11
    60 #define	DAY_6		12
    61 #define	DAY_7		13
    62 
    63 /* abbreviated week day names */
    64 #define	ABDAY_1		14
    65 #define	ABDAY_2		15
    66 #define	ABDAY_3		16
    67 #define	ABDAY_4		17
    68 #define	ABDAY_5		18
    69 #define	ABDAY_6		19
    70 #define	ABDAY_7		20
    71 
    72 /* month names */
    73 #define	MON_1		21
    74 #define	MON_2		22
    75 #define	MON_3		23
    76 #define	MON_4		24
    77 #define	MON_5		25
    78 #define	MON_6		26
    79 #define	MON_7		27
    80 #define	MON_8		28
    81 #define	MON_9		29
    82 #define	MON_10		30
    83 #define	MON_11		31
    84 #define	MON_12		32
    85 
    86 /* abbreviated month names */
    87 #define	ABMON_1		33
    88 #define	ABMON_2		34
    89 #define	ABMON_3		35
    90 #define	ABMON_4		36
    91 #define	ABMON_5		37
    92 #define	ABMON_6		38
    93 #define	ABMON_7		39
    94 #define	ABMON_8		40
    95 #define	ABMON_9		41
    96 #define	ABMON_10	42
    97 #define	ABMON_11	43
    98 #define	ABMON_12	44
    99 
   100 #define	ERA		45	/* era description segments */
   101 #define	ERA_D_FMT	46	/* era date format string */
   102 #define	ERA_D_T_FMT	47	/* era date and time format string */
   103 #define	ERA_T_FMT	48	/* era time format string */
   104 #define	ALT_DIGITS	49	/* alternative symbols for digits */
   105 
   106 #define	RADIXCHAR	50	/* radix char */
   107 #define	THOUSEP		51	/* separator for thousands */
   108 
   109 #define	YESEXPR		52	/* affirmative response expression */
   110 #define	NOEXPR		53	/* negative response expression */
   111 
   112 #if __BSD_VISIBLE || __XSI_VISIBLE <= 500
   113 #define	YESSTR		54	/* affirmative response for yes/no queries */
   114 #define	NOSTR		55	/* negative response for yes/no queries */
   115 #endif
   116 
   117 #define	CRNCYSTR	56	/* currency symbol */
   118 
   119 #if __BSD_VISIBLE
   120 #define	D_MD_ORDER	57	/* month/day order (local extension) */
   121 #endif
   122 
   123 __BEGIN_DECLS
   124 IMPORT_C char	*nl_langinfo(nl_item);
   125 __END_DECLS
   126 
   127 #endif /* !_LANGINFO_H_ */