HPUX langinfo[5]



langinfo in anderen Kapiteln des hpux Handbuch: langinfo.3c




 langinfo(5)                                                     langinfo(5)





 NAME
      langinfo - language information constants

 SYNOPSIS
      #include <langinfo.h>

 DESCRIPTION
      This header file contains the constants used to identify items of
      langinfo data (see nl_langinfo(3C)).  The mode of items is given in
      <nl_types.h>.  The following constants are defined (CATEGORY indicates
      in which setlocale(3C) category each item is defined):

      center; lB   lB   lB w(3.5i) lf4  lf4  l.
      Constant  Category  Description _ D_T_FMT   LC_TIME   T{ String for
      formatting the %c (date and time) directive of date(1), getdate(3C),
      and strftime(3C).  T}

      D_FMT     LC_TIME   T{ String for formatting the %x (date) directive
      of date(1), getdate(3C), and strftime(3C).  T}

      T_FMT     LC_TIME   T{ String for formatting the %X (time) directive
      of date(1), getdate(3C), and strftime(3C).  T}

      DAY_1     LC_TIME   T{ Name of the first day of the week (``Sunday''
      in English).  T}    :    :    : DAY_7     LC_TIME   T{ Name of the
      seventh day of the week.  T}

      ABDAY_1   LC_TIME   T{ Abbreviated name of the first day of the week
      (``Sun'' in English).  T}

      ABDAY_7   LC_TIME   T{ Abbreviated name of the seventh day of the
      week.  T}

      MON_1     LC_TIME   T{ Name of the first month in the Gregorian year.
      T}    :    :    : MON_12    LC_TIME   T{ Name of the twelfth month.
      T}

      ABMON_1   LC_TIME   T{ Abbreviated name of the first month.  T}
         :    :    : ABMON_12  LC_TIME   T{ Abbreviated name of the twelfth
      month.  T}

      RADIXCHAR LC_NUMERIC     T{ Radix character (``decimal point'' in
      English).  The string returned is the same as the decimal_point
      element in the structure returned by localeconv(3C).  T}

      THOUSEP   LC_NUMERIC     T{ Separator for thousands.  The string
      returned is the same as the thousands_sep element in the structure
      returned by localeconv(3C).  T}

      YESEXPR   LC_MESSAGES    T{ Affirmative response for expression.  T}




 Hewlett-Packard Company            - 1 -     HP-UX Release 9.0: August 1992






 langinfo(5)                                                     langinfo(5)





      NOEXPR    LC_MESSAGES    T{ Negative response for expression.  T}

      YESSTR    LC_MESSAGES    T{ Affirmative response for yes/no questions.
      (Obsolete: use YESEXPR) T}

      NOSTR     LC_MESSAGES    T{ Negative response for yes/no questions.
      (Obsolete: use NOEXPR) T}

      CRNCYSTR  LC_MONETARY    T{ Symbol for currency preceded by ``-'' if
      it precedes the number, ``+'' if it follows the number, and ``.'' if
      it replaces the radix.  For example, ``-DM'' would be used for German
      (DM1234,56), ``+ Kr'' for Danish (1234,56 Kr), and ``.$'' for
      Portuguese (1234$56).  See localeconv(3C) for alternative currency
      formatting information.  T}

      BYTES_CHAR     LC_CTYPE  T{ Maximum number of bytes per character for
      the character set used for the specified language.  For example, ``1''
      for English and most European languages, and ``2'' for Japanese and
      several other Asian languages.  This constant is an HP proprietary
      item and may not be portable to other platforms.  T}

      DIRECTION LC_ALL    T{ Value to indicate text direction.  Values
      currently defined include ``null'', ``0'' and ``1''.  Values of
      ``null'' or ``0'' indicate that characters are arranged from left-to-
      right within a line and lines are arranged from top-to-bottom.  A
      value of ``1'' indicates that characters are arranged from right-to-
      left within a line and lines are arranged from top-to-bottom.  This
      constant is an HP proprietary item and may not be portable to other
      platforms.  T}

      ALT_DIGIT LC_NUMERIC     T{ A string of the characters that are mapped
      into the ASCII equivalent string ``0123456789b+-.,eE'' (where b is a
      blank).  This is also the reverse mapping for output.  It is not
      assumed that the character code values of digits are contiguous or
      that they are one byte values.  A null value for the string indicates
      that the language has no alternative digits.  This constant is an HP
      proprietary item and may not be portable to other platforms.  T}

      ALT_PUNCT LC_CTYPE  T{ A string of the characters that are mapped into
      the ASCII equivalent string ``b!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~''
      (where b is a blank) in American usage.  This is also the reverse
      mapping for output.  It is not assumed that the character code values
      of punctuation characters are contiguous or that they are one byte
      values.  If any punctuation characters do not have equivalent
      alternatives, ASCII codes are used in the alternative punctuation
      string.  A null value for the string indicates that the language has
      no alternative punctuation characters.  This constant is an HP
      proprietary item and may not be portable to other platforms.  T}

      AM_STR    LC_TIME   T{ Ante meridiem string used with 12-hour time
      formats ("AM" in English) T}



 Hewlett-Packard Company            - 2 -     HP-UX Release 9.0: August 1992






 langinfo(5)                                                     langinfo(5)





      PM_STR    LC_TIME   T{ Post meridiem string used with 12-hour time
      formats ("PM" in English) T}

      YEAR_UNIT LC_TIME   T{ Symbol for year.  This is usually required to
      specify date for Asian languages.  T}

      MON_UNIT  LC_TIME   T{ Symbol for month.  T}

      DAY_UNIT  LC_TIME   T{ Symbol for day.  T}

      HOUR_UNIT LC_TIME   T{ Symbol for hour.  This is usually required to
      specify time for Asian languages.  T}

      MIN_UNIT  LC_TIME   T{ Symbol for minute.  T}

      SEC_UNIT  LC_TIME   T{ Symbol for second.  T}

      ERA_D_FMT LC_TIME   T{ Default string for formatting the %E
      (Emperor/Era name and year) directive of date(1) and strftime(3C) if
      an individual era format is not specified for an era (see
      localedef(1M)).  T}

      T_FMT_AMPM     LC_TIME   T{ Time representation in the 12-hour clock
      format with AM_STR and PM_STR.  T}

 WARNINGS
      It is recommended to use strftime() to access date and time
      information defined in category (see strftime(3C)), LC_TIME and
      localeconv(3C) to access information corresponding to RADIXCHAR,
      THOUSEP, and CRNCYSTR (see localeconv(3C)).

 AUTHOR
      langinfo was developed by HP.

 SEE ALSO
      date(1), getdate(3C), langinfo(3C), localeconv(3C), nl_langinfo(3C),
      setlocale(3C), strftime(3C), hpnls(5), lang(5).

















 Hewlett-Packard Company            - 3 -     HP-UX Release 9.0: August 1992