Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/header/clocale"

From cppreference.com
< cpp‎ | header
m (Shorten template names. Use {{lc}} where appropriate.)
(Synopsis: +)
 
(3 intermediate revisions by 3 users not shown)
Line 7: Line 7:
 
{{dsc begin}}
 
{{dsc begin}}
 
{{dsc h1 | Types}}
 
{{dsc h1 | Types}}
{{dsc inc | cpp/locale/dcl list lconv}}
+
{{dsc inc | cpp/locale/dsc lconv}}
 
{{dsc h1 | Constants}}
 
{{dsc h1 | Constants}}
{{dsc inc | cpp/types/dcl list NULL}}
+
{{dsc inc | cpp/types/dsc NULL}}
{{dsc inc | cpp/locale/dcl list LC_categories}}
+
{{dsc inc | cpp/locale/dsc LC_categories}}
 
{{dsc h1 | Functions}}
 
{{dsc h1 | Functions}}
{{dsc inc | cpp/locale/dcl list setlocale}}
+
{{dsc inc | cpp/locale/dsc setlocale}}
{{dsc inc | cpp/locale/dcl list localeconv}}
+
{{dsc inc | cpp/locale/dsc localeconv}}
 
{{dsc end}}
 
{{dsc end}}
 +
 +
===Synopsis===
 +
{{source|
 +
namespace std {
 +
  struct lconv;
 +
 +
  char* setlocale(int category, const char* 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 */
 +
}}
  
 
===Notes===
 
===Notes===
Line 23: Line 41:
 
** {{header|cstdio}}
 
** {{header|cstdio}}
 
** {{header|cwchar}}
 
** {{header|cwchar}}
 +
 +
{{langlinks|ja|zh}}

Latest revision as of 22:52, 19 July 2020

 
 
Standard library headers
Algorithms
<algorithm>
<numeric>
Strings
<cctype>
<cstring>
<cuchar> (C++11)
<cwchar>
<cwctype>
<string_view> (C++17)
<string>
Text processing
<clocale>
<codecvt> (C++11/17/26*)
<locale>
<regex> (C++11)
<text_encoding> (C++26)   
Numerics
<cfenv> (C++11)
<cmath>
<complex>
<linalg> (C++26)
<numbers> (C++20)
<random> (C++11)
<valarray>
Time
<chrono> (C++11)
<ctime>
C compatibility
<ccomplex> (C++11/17/20*)
<ciso646> (until C++20)
<cstdalign> (C++11/17/20*)
<cstdbool> (C++11/17/20*)
<ctgmath> (C++11/17/20*)
 

This header was originally in the C standard library as <locale.h>.

This header is part of the localization library

Contents

Types

formatting details, returned by std::localeconv
(class) [edit]

Constants

implementation-defined null pointer constant
(macro constant) [edit]
locale categories for std::setlocale
(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

namespace std {
  struct lconv;
 
  char* setlocale(int category, const char* 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