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