Difference between revisions of "cpp/header/clocale"
From cppreference.com
m (link to ja) |
(→Synopsis: +) |
||
Line 15: | Line 15: | ||
{{dsc inc | cpp/locale/dsc 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=== |
Latest revision as of 22:52, 19 July 2020
This header was originally in the C standard library as <locale.h>.
This header is part of the localization library
Types | ||
formatting details, returned by std::localeconv (class) | ||
Constants | ||
implementation-defined null pointer constant (macro constant) | ||
locale categories for std::setlocale (macro constant) | ||
Functions | ||
gets and sets the current C locale (function) | ||
queries numeric and monetary formatting details of the current locale (function) |
[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 */