Main Page | File List | Globals

src/include/langinfo.h

Go to the documentation of this file.
00001 /*
00002      This file is part of PlibC.
00003      (C) 2005 Nils Durner (and other contributing authors)
00004 
00005            This library is free software; you can redistribute it and/or
00006            modify it under the terms of the GNU Lesser General Public
00007            License as published by the Free Software Foundation; either
00008            version 2.1 of the License, or (at your option) any later version.
00009         
00010            This library is distributed in the hope that it will be useful,
00011            but WITHOUT ANY WARRANTY; without even the implied warranty of
00012            MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013            Lesser General Public License for more details.
00014         
00015            You should have received a copy of the GNU Lesser General Public
00016            License along with this library; if not, write to the Free Software
00017            Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 */
00019 
00025 #ifndef _LANGINFO_H_
00026 #define _LANGINFO_H_
00027 
00028 /* Enumeration of locale items that can be queried with `nl_langinfo'. */
00029 enum
00030 {
00031   /* LC_TIME category: date and time formatting.  */
00032 
00033   /* Abbreviated days of the week. */
00034   ABDAY_1, /* Sun */
00035 #define ABDAY_1     ABDAY_1
00036   ABDAY_2,
00037 #define ABDAY_2     ABDAY_2
00038   ABDAY_3,
00039 #define ABDAY_3     ABDAY_3
00040   ABDAY_4,
00041 #define ABDAY_4     ABDAY_4
00042   ABDAY_5,
00043 #define ABDAY_5     ABDAY_5
00044   ABDAY_6,
00045 #define ABDAY_6     ABDAY_6
00046   ABDAY_7,
00047 #define ABDAY_7     ABDAY_7
00048 
00049   /* Long-named days of the week. */
00050   DAY_1,      /* Sunday */
00051 #define DAY_1     DAY_1
00052   DAY_2,      /* Monday */
00053 #define DAY_2     DAY_2
00054   DAY_3,      /* Tuesday */
00055 #define DAY_3     DAY_3
00056   DAY_4,      /* Wednesday */
00057 #define DAY_4     DAY_4
00058   DAY_5,      /* Thursday */
00059 #define DAY_5     DAY_5
00060   DAY_6,      /* Friday */
00061 #define DAY_6     DAY_6
00062   DAY_7,      /* Saturday */
00063 #define DAY_7     DAY_7
00064 
00065   /* Abbreviated month names.  */
00066   ABMON_1,      /* Jan */
00067 #define ABMON_1     ABMON_1
00068   ABMON_2,
00069 #define ABMON_2     ABMON_2
00070   ABMON_3,
00071 #define ABMON_3     ABMON_3
00072   ABMON_4,
00073 #define ABMON_4     ABMON_4
00074   ABMON_5,
00075 #define ABMON_5     ABMON_5
00076   ABMON_6,
00077 #define ABMON_6     ABMON_6
00078   ABMON_7,
00079 #define ABMON_7     ABMON_7
00080   ABMON_8,
00081 #define ABMON_8     ABMON_8
00082   ABMON_9,
00083 #define ABMON_9     ABMON_9
00084   ABMON_10,
00085 #define ABMON_10    ABMON_10
00086   ABMON_11,
00087 #define ABMON_11    ABMON_11
00088   ABMON_12,
00089 #define ABMON_12    ABMON_12
00090 
00091   /* Long month names.  */
00092   MON_1,      /* January */
00093 #define MON_1     MON_1
00094   MON_2,
00095 #define MON_2     MON_2
00096   MON_3,
00097 #define MON_3     MON_3
00098   MON_4,
00099 #define MON_4     MON_4
00100   MON_5,
00101 #define MON_5     MON_5
00102   MON_6,
00103 #define MON_6     MON_6
00104   MON_7,
00105 #define MON_7     MON_7
00106   MON_8,
00107 #define MON_8     MON_8
00108   MON_9,
00109 #define MON_9     MON_9
00110   MON_10,
00111 #define MON_10      MON_10
00112   MON_11,
00113 #define MON_11      MON_11
00114   MON_12,
00115 #define MON_12      MON_12
00116 
00117   AM_STR,     /* Ante meridian string.  */
00118 #define AM_STR      AM_STR
00119   PM_STR,     /* Post meridian string.  */
00120 #define PM_STR      PM_STR
00121 
00122   D_T_FMT,      /* Date and time format for strftime.  */
00123 #define D_T_FMT     D_T_FMT
00124   D_FMT,      /* Date format for strftime.  */
00125 #define D_FMT     D_FMT
00126   T_FMT,      /* Time format for strftime.  */
00127 #define T_FMT     T_FMT
00128   T_FMT_AMPM,     /* 12-hour time format for strftime.  */
00129 #define T_FMT_AMPM    T_FMT_AMPM
00130 
00131   ERA,        /* Alternate era.  */
00132 #define ERA     ERA
00133   ERA_D_FMT,      /* Date in alternate era format.  */
00134 #define ERA_D_FMT   ERA_D_FMT
00135   ALT_DIGITS,     /* Alternate symbols for digits.  */
00136 #define ALT_DIGITS    ALT_DIGITS
00137   ERA_D_T_FMT,      /* Date and time in alternate era format.  */
00138 #define ERA_D_T_FMT   ERA_D_T_FMT
00139   ERA_T_FMT,      /* Time in alternate era format.  */
00140 #define ERA_T_FMT   ERA_T_FMT
00141   _DATE_FMT,    /* strftime format for date.  */
00142 #define _DATE_FMT _DATE_FMT
00143   CODESET,
00144 #define CODESET     CODESET
00145   CRNCYSTR,
00146 #define CRNCYSTR     CRNCYSTR
00147   RADIXCHAR,
00148 #define RADIXCHAR   RADIXCHAR
00149   THOUSEP,
00150 #define THOUSEP     THOUSEP
00151   YESEXPR,
00152 #define YESEXPR     YESEXPR
00153   NOEXPR,     /* Regex matching ``no'' input.  */
00154 #define NOEXPR      NOEXPR
00155   /* This marks the highest value used.  */
00156   _NL_NUM
00157 };
00158 
00159 char *nl_langinfo(int item);
00160 
00161 #endif //_LANGINFO_H_

Generated on Sun Sep 4 11:16:47 2005 for PlibC by  doxygen 1.4.2