1+ <!doctype html>
2+ < html class ="cpprefjp " lang ="ja " itemscope ="" itemtype ="http://schema.org/WebPage ">
3+ < head >
4+
5+
6+ <!-- Google tag (gtag.js) -->
7+ < script async src ="https://www.googletagmanager.com/gtag/js?id=G-NXNBNVBTJS "> </ script >
8+ < script >
9+ window . dataLayer = window . dataLayer || [ ] ;
10+ function gtag ( ) { dataLayer . push ( arguments ) ; }
11+ gtag ( 'js' , new Date ( ) ) ;
12+
13+ gtag ( 'config' , 'G-NXNBNVBTJS' ) ;
14+ </ script >
15+
16+
17+ < meta charset ="UTF-8 ">
18+
19+ < title > clocale - cpprefjp C++日本語リファレンス</ title >
20+
21+ < meta name ="viewport " content ="width=device-width,initial-scale=1 ">
22+ < meta name ="keywords " content ="
23+ C++,標準ライブラリ,リファレンス,ドキュメント,STL,std,clocale
24+ ">
25+ < meta name ="title " content ="clocale - cpprefjp C++日本語リファレンス " />
26+ < meta itemprop ="name " content ="clocale - cpprefjp C++日本語リファレンス " />
27+ < meta property ="og:title " content ="clocale - cpprefjp C++日本語リファレンス " />
28+ < meta property ="og:url " content ="https://cpprefjp.github.io/reference/clocale.html " />
29+ < meta property ="og:site_name " content ="cpprefjp - C++日本語リファレンス " />
30+ < meta property ="og:type " content ="article " />
31+ < meta property ="og:description " content ="&lt;clocale&gt;clocale &lt;clocale&gt;ヘッダでは、ローカライゼーション(地域化)に関するクラス・関数を定義する。 これらの機能は基本的には、std名前空間に属することを除いてC言語の標準ライブラリ&lt;locale.h&gt;ヘッダと同じである。 マクロ 名前 説明 対応バージョン NULL ヌルポインタ定数に展開されるマクロ LC_AL " />
32+ < meta name ="twitter:card " content ="summary " />
33+ < meta name ="twitter:title " content ="clocale - cpprefjp C++日本語リファレンス " />
34+ < meta name ="twitter:url " content ="https://cpprefjp.github.io/reference/clocale.html " />
35+ < meta name ="twitter:description " content ="&lt;clocale&gt;clocale &lt;clocale&gt;ヘッダでは、ローカライゼーション(地域化)に関するクラス・関数を定義する。 これらの機能は基本的には、std名前空間に属することを除いてC言語の標準ライブラリ&lt;locale.h&gt;ヘッダと同じである。 マクロ 名前 説明 対応バージョン NULL ヌルポインタ定数に展開されるマクロ LC_AL " />
36+
37+
38+ < link rel ="alternate " type ="application/atom+xml " title ="Atom " href ="https://cpprefjp.github.io/rss.xml " />
39+
40+
41+ < link rel ="apple-touch-icon " sizes ="180x180 " href ="../static/favicons/apple-touch-icon.png?cachebust=759f03fc15b30d6368ce2e93b7017b1d9cee9a73 ">
42+ < link rel ="icon " type ="image/png " sizes ="32x32 " href ="../static/favicons/favicon-32x32.png?cachebust=759f03fc15b30d6368ce2e93b7017b1d9cee9a73 ">
43+ < link rel ="icon " type ="image/png " sizes ="16x16 " href ="../static/favicons/favicon-16x16.png?cachebust=759f03fc15b30d6368ce2e93b7017b1d9cee9a73 ">
44+ < link rel ="manifest " href ="../manifest.json?cachebust=759f03fc15b30d6368ce2e93b7017b1d9cee9a73 ">
45+ < meta name ="theme-color " content ="#f5f8fc ">
46+
47+ < link rel ="stylesheet " href ="../static/pygments/default.css?cachebust=759f03fc15b30d6368ce2e93b7017b1d9cee9a73 ">
48+ <!-- <link rel="stylesheet" href="../static/css/root.css"> -->
49+
50+
51+
52+
53+
54+ < link href ="../static/kunai/css/kunai-stage-0.css?cachebust=759f03fc15b30d6368ce2e93b7017b1d9cee9a73 " rel ="stylesheet ">
55+ < link href ="../static/kunai/css/kunai-stage-1.css?cachebust=759f03fc15b30d6368ce2e93b7017b1d9cee9a73 " rel ="stylesheet ">
56+ < link href ="../static/kunai/css/kunai-stage-2.css?cachebust=759f03fc15b30d6368ce2e93b7017b1d9cee9a73 " rel ="stylesheet ">
57+ < link href ="../static/kunai/css/kunai-stage-3.css?cachebust=759f03fc15b30d6368ce2e93b7017b1d9cee9a73 " rel ="stylesheet ">
58+
59+ < script type ="text/javascript " src ="../static/kunai/js/kunai-vendor.js?cachebust=759f03fc15b30d6368ce2e93b7017b1d9cee9a73 "> </ script >
60+ < script type ="text/javascript " src ="../static/kunai/js/kunai.js?cachebust=759f03fc15b30d6368ce2e93b7017b1d9cee9a73 "> </ script >
61+
62+ < script type ="text/javascript ">
63+ document . addEventListener ( 'DOMContentLoaded' , function ( ) {
64+ var kn = new Kunai ;
65+ kn . cpprefjp ( ) ;
66+ } ) ;
67+ </ script >
68+
69+ </ head >
70+ < body >
71+ < header data-kunai-mdinfo ="{"meta": {"header": ["clocale"]}, "sources": [], "page_id": ["reference", "clocale"]} ">
72+ < nav class ="navbar navbar-default " role ="navigation ">
73+ < div class ="container-fluid ">
74+ < div class ="navbar-header ">
75+ < button type ="button " class ="navbar-toggle collapsed " data-toggle ="collapse " data-target ="#navbar-collapse ">
76+ < span class ="sr-only "> Toggle navigation</ span >
77+ < span class ="icon-bar "> </ span >
78+ < span class ="icon-bar "> </ span >
79+ < span class ="icon-bar "> </ span >
80+ </ button >
81+ < a class ="navbar-brand " href ="../index.html ">
82+ < div class ="title-wrapper clearfix ">
83+ < div class ="title "> cpprefjp - C++日本語リファレンス</ div >
84+ </ div >
85+ </ a >
86+ </ div >
87+
88+ < div class ="collapse navbar-collapse " id ="navbar-collapse ">
89+ < ul class ="nav navbar-nav navbar-right ">
90+ < li >
91+ < div class ="google-search ">
92+
93+
94+ < script >
95+ ( function ( ) {
96+ var cx = '013316413321391058734:ji_u66hl7hq' ;
97+ var gcse = document . createElement ( 'script' ) ;
98+ gcse . type = 'text/javascript' ;
99+ gcse . async = true ;
100+ gcse . src = ( document . location . protocol == 'https:' ? 'https:' : 'http:' ) +
101+ '//www.google.com/cse/cse.js?cx=' + cx ;
102+ var s = document . getElementsByTagName ( 'script' ) [ 0 ] ;
103+ s . parentNode . insertBefore ( gcse , s ) ;
104+ } ) ( ) ;
105+ </ script >
106+ < div class ="gcse-search "> </ div >
107+
108+
109+ </ div >
110+ </ li >
111+ < li >
112+ < a href ="https://github.com/cpprefjp/site "> GitHub Project</ a >
113+ </ li >
114+ </ ul >
115+ </ div >
116+ </ div >
117+ </ nav >
118+ </ header >
119+
120+ < main id ="main " role ="main ">
121+ < div class ="container-fluid ">
122+ < div class ="row ">
123+ < div class ="col-sm-9 col-sm-push-3 " itemscope itemtype ="http://schema.org/Article ">
124+ < div class ="row ">
125+ < div class ="col-sm-12 google-search-result ">
126+ < gcse:searchresults > </ gcse:searchresults >
127+ </ div >
128+ </ div >
129+ < div class ="row ">
130+ < div class ="col-sm-12 content-header ">
131+
132+ < ol class ="breadcrumb ">
133+
134+ < li itemscope itemtype ="http://www.schema.org/SiteNavigationElement ">
135+ < span >
136+
137+ < a href ="../index.html " itemprop ="url ">
138+
139+ < i class ="fa fa-fw fa-home "> </ i >
140+
141+ </ a >
142+
143+ </ span >
144+ </ li >
145+
146+ < li itemscope itemtype ="http://www.schema.org/SiteNavigationElement ">
147+ < span >
148+
149+ < a href ="../reference.html " itemprop ="url ">
150+
151+ < span itemprop ="name "> リファレンス</ span >
152+
153+ </ a >
154+
155+ </ span >
156+ </ li >
157+
158+ < li class ="active " itemscope itemtype ="http://www.schema.org/SiteNavigationElement ">
159+ < span >
160+
161+
162+ < span itemprop ="name "> clocale</ span >
163+
164+
165+ </ span >
166+ </ li >
167+
168+ </ ol >
169+ < div class ="crsearch "> </ div >
170+
171+ </ div >
172+ </ div >
173+ < div class ="row ">
174+ < div class ="col-sm-12 edit-button ">
175+
176+
177+ < p class ="text-right "> < small >
178+ 最終更新日時(UTC):
179+ < span itemprop ="datePublished " content ="2025-12-03T13:42:25 ">
180+ 2025年12月03日 13時42分25秒
181+ </ span >
182+ < br />
183+ < span itemprop ="author " itemscope itemtype ="http://schema.org/Person ">
184+ < span itemprop ="name "> K10-K10</ span >
185+ </ span >
186+ が更新
187+ </ small > </ p >
188+
189+
190+ < p class ="text-right ">
191+ < a class ="history " target ="_blank " href ="https://github.com/cpprefjp/site/commits/master/reference/clocale.md ">
192+ < span class ="fa fa-fw fa-clock-o fa-flip-horizontal "> </ span > 履歴
193+ </ a >
194+ < a class ="edit " target ="_blank " href ="https://github.com/cpprefjp/site/edit/master/reference/clocale.md ">
195+ < span class ="fa fa-fw fa-pencil "> </ span > 編集
196+ </ a >
197+ </ p >
198+ </ div >
199+ </ div >
200+ < div class ="row ">
201+ < div class ="col-sm-12 content-body ">
202+
203+ < div class ="header "> <clocale></ div > < h1 itemprop ="name "> < span class ="token "> clocale</ span > </ h1 >
204+ < div itemprop ="articleBody "> < p > < code > <clocale></ code > ヘッダでは、ローカライゼーション(地域化)に関するクラス・関数を定義する。</ p >
205+ < p > これらの機能は基本的には、< code > std</ code > 名前空間に属することを除いてC言語の標準ライブラリ< code > <locale.h></ code > ヘッダと同じである。</ p >
206+ < h2 > マクロ</ h2 >
207+ < table border ="1 " bordercolor ="#888 " style ="border-collapse:collapse ">
208+ < thead >
209+ < tr >
210+ < th > 名前</ th >
211+ < th > 説明</ th >
212+ < th > 対応バージョン</ th >
213+ </ tr >
214+ </ thead >
215+ < tbody >
216+ < tr >
217+ < td > < code > < a href ="cstddef/null.html "> NULL</ a > </ code > </ td >
218+ < td > ヌルポインタ定数に展開されるマクロ</ td >
219+ < td > </ td >
220+ </ tr >
221+ < tr >
222+ < td > < code > LC_ALL</ code > </ td >
223+ < td > すべてのロケールカテゴリを一括指定するための定数</ td >
224+ < td > </ td >
225+ </ tr >
226+ < tr >
227+ < td > < code > LC_COLLATE</ code > </ td >
228+ < td > 文字列の照合(比較)規則に関するロケールカテゴリ</ td >
229+ < td > </ td >
230+ </ tr >
231+ < tr >
232+ < td > < code > LC_CTYPE</ code > </ td >
233+ < td > 文字分類(大文字/小文字、数字、空白など)やマルチバイト文字の扱いに関するカテゴリ</ td >
234+ < td > </ td >
235+ </ tr >
236+ < tr >
237+ < td > < code > LC_MONETARY</ code > </ td >
238+ < td > 通貨表記に関するロケールカテゴリ</ td >
239+ < td > </ td >
240+ </ tr >
241+ < tr >
242+ < td > < code > LC_NUMERIC</ code > </ td >
243+ < td > 数値表記に関するロケールカテゴリ(小数点記号など)</ td >
244+ < td > </ td >
245+ </ tr >
246+ < tr >
247+ < td > < code > LC_TIME</ code > </ td >
248+ < td > 日付および時刻表記に関するロケールカテゴリ</ td >
249+ < td > </ td >
250+ </ tr >
251+ </ tbody >
252+ </ table >
253+ < h2 > 構造体</ h2 >
254+ < table border ="1 " bordercolor ="#888 " style ="border-collapse:collapse ">
255+ < thead >
256+ < tr >
257+ < th > 名前</ th >
258+ < th > 説明</ th >
259+ < th > 対応バージョン</ th >
260+ </ tr >
261+ </ thead >
262+ < tbody >
263+ < tr >
264+ < td > < code > lconv</ code > </ td >
265+ < td > 数値・通貨表示の書式設定をまとめた型</ td >
266+ < td > </ td >
267+ </ tr >
268+ </ tbody >
269+ </ table >
270+ < h2 > 関数</ h2 >
271+ < table border ="1 " bordercolor ="#888 " style ="border-collapse:collapse ">
272+ < thead >
273+ < tr >
274+ < th > 名前</ th >
275+ < th > 説明</ th >
276+ < th > 対応バージョン</ th >
277+ </ tr >
278+ </ thead >
279+ < tbody >
280+ < tr >
281+ < td > < code > < a href ="clocale/setlocale.html "> setlocale</ a > </ code > </ td >
282+ < td > ロケールを変更、または現在のロケールを取得する。 </ td >
283+ < td > </ td >
284+ </ tr >
285+ < tr >
286+ < td > < code > localeconv</ code > </ td >
287+ < td > 現在のロケールに応じた数値・通貨表記情報を取得する。</ td >
288+ < td > </ td >
289+ </ tr >
290+ </ tbody >
291+ </ table >
292+ < h2 > 関連項目</ h2 >
293+ < ul >
294+ < li > < code > < a href ="locale.html "> locale</ a > </ code > </ li >
295+ </ ul >
296+ < h2 > 参照</ h2 >
297+ < p > < a href ="https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0175r1.html " target ="_blank "> Synopses for the C library</ a > </ p > </ div >
298+
299+ </ div >
300+ </ div >
301+ </ div >
302+
303+
304+ < div id ="sidebar " class ="col-sm-3 col-sm-pull-9 ">
305+ </ div >
306+
307+
308+ </ div >
309+ </ div >
310+ </ main >
311+ < footer class ="footer navbar navbar-default ">
312+ < div class ="container-fluid ">
313+ < p > < small >
314+ 本サイトの情報は、
315+ < a href ="https://creativecommons.org/licenses/by/3.0/deed.ja " rel ="nofollow "> クリエイティブ・コモンズ 表示 3.0 非移植 ライセンス(CC BY)</ a >
316+ の下に提供されています。
317+ </ small > </ p >
318+ </ div >
319+ </ footer >
320+ </ body >
321+ </ html >
0 commit comments