langinfo.h(3head) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

langinfo.h(3head)

langinfo.h(3HEAD)                   Headers                  langinfo.h(3HEAD)

NAME
       langinfo.h, langinfo - language information constants

SYNOPSIS
       #include <langinfo.h>

DESCRIPTION
       The  <langinfo.h>  header contains the constants used to identify items
       of langinfo data (see  nl_langinfo(3C)).  The  type  of  the  constant,
       nl_item, is defined as described in nl_types.h(3HEAD).


       The  <langinfo.h> header defines the locale_t type as described in <lo‐
       cale.h>.


       The following constants are defined. The entries under  Category  indi‐
       cate in which setlocale(3C) category each item is defined.

       tab();  lw(1.4i)  lw(1.44i) lw(2.66i) lw(1.4i) lw(1.44i) lw(2.66i) Con‐
       stantCategoryMeaning     _      CODESETLC_CTYPEcodeset      name      _
       D_T_FMTLC_TIMEstring  for  formatting  date and time _ D_FMTLC_TIMEdate
       format string _ T_FMTLC_TIMEtime format string _  T_FMT_AMPMLC_TIMEa.m.
       or  p.m.  time  format  string  _  AM_STRLC_TIMEante-meridiem  affix  _
       PM_STRLC_TIMEpost-meridiem affix _ DAY_1LC_TIMET{ name of the first day
       of the week (for example, Sunday) T} _ DAY_2LC_TIMET{ name of the  sec‐
       ond  day  of the week (for example, Monday) T} _ DAY_3LC_TIMET{ name of
       the third day of the week (for example, Tuesday)  T}  _  DAY_4LC_TIMET{
       name  of  the  fourth  day  of  the  week (for example, Wednesday) T} _
       DAY_5LC_TIMET{ name of the fifth day of the week (for  example,  Thurs‐
       day)  T}  _ DAY_6LC_TIMET{ name of the sixth day of the week (for exam‐
       ple, Friday) T} _ DAY_7LC_TIMET{ name of the seventh day  of  the  week
       (for  example,  Saturday) T} _ ABDAY_1LC_TIMET{ abbreviated name of the
       first day of the week T} _ ABDAY_2LC_TIMET{  abbreviated  name  of  the
       second  day  of  the week T} _ ABDAY_3LC_TIMET{ abbreviated name of the
       third day of the week T} _ ABDAY_4LC_TIMET{  abbreviated  name  of  the
       fourth  day  of  the week T} _ ABDAY_5LC_TIMET{ abbreviated name of the
       fifth day of the week T} _ ABDAY_6LC_TIMET{  abbreviated  name  of  the
       seventh  day  of the week T} _ ABDAY_7LC_TIMET{ abbreviated name of the
       seventh day of the week T} _ MON_1LC_TIMEname of the first month of the
       year _ MON_2LC_TIMEname of the second month _ MON_3LC_TIMEname  of  the
       third  month  _ MON_4LC_TIMEname of the fourth month _ MON_5LC_TIMEname
       of  the  fifth  month  _  MON_6LC_TIMEname  of  the   sixth   month   _
       MON_7LC_TIMEname  of the seventh month _ MON_8LC_TIMEname of the eighth
       month _ MON_9LC_TIMEname of the ninth month _ MON_10LC_TIMEname of  the
       tenth  month _ MON_11LC_TIMEname of the eleventh month _ MON_12LC_TIME‐
       name of the twelfth month _ ABMON_1LC_TIMEabbreviated name of the first
       month _ ABMON_2LC_TIMEabbreviated  name  of  the  second  month  _  AB‐
       MON_3LC_TIMEabbreviated  name of the third month _ ABMON_4LC_TIMEabbre‐
       viated name of the fourth month _ ABMON_5LC_TIMEabbreviated name of the
       fifth month _ ABMON_6LC_TIMEabbreviated name of the sixth month  _  AB‐
       MON_7LC_TIMEabbreviated  name  of the seventh month _ ABMON_8LC_TIMEab‐
       breviated name of the eighth month _ ABMON_9LC_TIMEabbreviated name  of
       the  ninth month _ ABMON_10LC_TIMEabbreviated name of the tenth month _
       ABMON_11LC_TIMEabbreviated  name  of   the   eleventh   month   _   AB‐
       MON_12LC_TIMEabbreviated  name of the twelfth month _ ERALC_TIMEera de‐
       scription  segments  _  ERA_D_FMTLC_TIMEera  date   format   string   _
       ERA_D_T_FMTLC_TIMEera date and time format string _ ERA_T_FMTLC_TIMEera
       time  format string _ ALT_DIGITSLC_TIMEalternative symbols for digits _
       RADIXCHARLC_NUMERICradix  character  _  THOUSEPLC_NUMERICseparator  for
       thousands  _  YESEXPRLC_MESSAGESaffirmative response expression _ NOEX‐
       PRLC_MESSAGESnegative response expression  _  YESSTRLC_MESSAGESaffirma‐
       tive  response  for  yes/no queries _ NOSTRLC_MESSAGESnegative response
       for yes/no queries _ CRNCYSTRLC_MONETARYT{ local currency symbol,  pre‐
       ceded  by  '-' if the symbol should appear before the value, '+' if the
       symbol should appear after the value, or '.' if the symbol  should  re‐
       place the radix character. May be an empty string.  T}



       The  constants YESSTR and NOSTR were marked LEGACY in the XPG5 standard
       and removed in the XPG6 standard. They are not defined  for  standards-
       conforming applications for the XPG6 and later standards.


       If  the  locale's  values  for  p_cs_precedes  and n_cs_precedes do not
       match, the value of nl_langinfo(CRNCYSTR) is unspecified.


       The <langinfo.h> header declares the following as a function:


         char *nl_langinfo(nl_item);
         char *nl_langinfo_l(nl_item, locale_t);



       Inclusion of <langinfo.h> header may also make visible all symbols from
       <nl_types.h>.

USAGE
       Wherever possible, users are advised to use functions  compatible  with
       those  in  the ISO C standard to access items of langinfo data. In par‐
       ticular, the strftime(3C) function should be used to  access  date  and
       time  information defined in category LC_TIME. The localeconv(3C) func‐
       tion should be used to access information corresponding  to  RADIXCHAR,
       THOUSEP, and CRNCYSTR.

ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:

       tab()  box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
       TRIBUTE  VALUE  _  Interface  StabilityCommitted  _  StandardSee  stan‐
       dards(7).


SEE ALSO
       mkmsgs(1),   localeconv(3C),   nl_langinfo(3C),   setlocale(3C),  strf‐
       time(3C),  locale.h(3HEAD),  nl_types.h(3HEAD),  attributes(7),   stan‐
       dards(7)

Oracle Solaris 11.4               30 Aug 2024                langinfo.h(3HEAD)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3