Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      Standard library header <locale.h>

      From cppreference.com
      <c‎ |header
       
       
       

      This header is part of thelocalization library.

      Contents

      Types

      formatting details, returned bylocaleconv
      (struct)[edit]

      Constants

      implementation-defined null pointer constant
      (macro constant)[edit]
      locale categories forsetlocale
      (macro constant)[edit]

      Functions

      gets and sets the current C locale
      (function)[edit]
      queries numeric and monetary formatting details of the current locale
      (function)[edit]

      [edit]Synopsis

      // In the "C" locale, the members shall have the values specified in the comments:structlconv{char* decimal_point;// "."char* thousands_sep;// ""char* grouping;// ""char* mon_decimal_point;// ""char* mon_thousands_sep;// ""char* mon_grouping;// ""char* positive_sign;// ""char* negative_sign;// ""char* currency_symbol;// ""char  frac_digits;// CHAR_MAXchar  p_cs_precedes;// CHAR_MAXchar  n_cs_precedes;// CHAR_MAXchar  p_sep_by_space;// CHAR_MAXchar  n_sep_by_space;// CHAR_MAXchar  p_sign_posn;// CHAR_MAXchar  n_sign_posn;// CHAR_MAXchar* int_curr_symbol;// ""char  int_frac_digits;// CHAR_MAXchar  int_p_cs_precedes;// CHAR_MAXchar  int_n_cs_precedes;// CHAR_MAXchar  int_p_sep_by_space;// CHAR_MAXchar  int_n_sep_by_space;// CHAR_MAXchar  int_p_sign_posn;// CHAR_MAXchar  int_n_sign_posn;// CHAR_MAX}; char*setlocale(int category,constchar* locale);lconv*localeconv(); #define NULL        /* see description */#define LC_ALL      /* see description */#define LC_COLLATE  /* see description */#define LC_CTYPE    /* see description */#define LC_MONETARY /* see description */#define LC_NUMERIC  /* see description */#define LC_TIME     /* see description */

      [edit]Notes

      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=c/header/locale&oldid=180073"

      [8]ページ先頭

      ©2009-2025 Movatter.jp