Skip to content

Commit f18708d

Browse files
Preview PR 1542: cef2a2c0b61755
1 parent 6190bb8 commit f18708d

4 files changed

Lines changed: 46 additions & 115 deletions

File tree

gen/pull/1542/PREVIEW.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# PR [\#1542](https://github.com/cpprefjp/site/pull/1542) プレビュー
2-
- ⌚ 更新時刻: 2025-12-04 00:31:47 JST
2+
- ⌚ 更新時刻: 2025-12-04 01:17:13 JST
33
- 🔍 [プレビュー (HTML)](https://cpprefjp.github.io/site/gen/pull/1542)
44
- 📈 [プレビュー生成記録](https://github.com/cpprefjp/site/actions?query=event%3Apull_request_target+branch%3Aclocale)
5-
- **⫯** ソースの変更: [`0b61755..1cf31ac`](https://github.com/cpprefjp/site/compare/0b61755bd12efe68418cb790b84cf00cd8667ea5..1cf31acb644fd3585d103572247dc2f8bbb36ef9)
5+
- **⫯** ソースの変更: [`0b61755..cef2a2c`](https://github.com/cpprefjp/site/compare/0b61755bd12efe68418cb790b84cf00cd8667ea5..cef2a2cc234b9556b2645a3688ea1ed78812bac6)
66

77
## 変更記事一覧 (12件)
88

gen/pull/1542/reference/clocale/setlocale.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@
188188

189189
<p class="text-right"><small>
190190
最終更新日時(UTC):
191-
<span itemprop="datePublished" content="2025-12-03T15:13:16">
192-
2025年12月03日 15時13分16秒
191+
<span itemprop="datePublished" content="2025-12-03T16:11:56">
192+
2025年12月03日 16時11分56秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -221,13 +221,16 @@
221221
<h2>概要</h2>
222222
<p>指定したカテゴリのロケールを設定、または現在のロケールを取得する。</p>
223223
<p>指定できる<a class="cpprefjp-defined-word" data-desc="処理系定義の動作。処理系によって事前に定めた動作をする" href="../../implementation-compliance.html#dfn-implementation-defined-behavior">処理系定義</a>のロケール文字列は<a href="../../article/platform/locales.html">使用できるロケール文字列</a>を参照のこと。</p>
224+
<p>この関数の呼び出しは他スレッドにおける <code>setlocale()</code> または現在のロケールを使用する他の関数の呼び出しとデータ競合の可能性がある。</p>
225+
<p>プログラム開始時の現在のロケールは <code>std::setlocale(LC_ALL, "C");</code> が呼び出されたのと同じ状態に初期化される。</p>
224226
<h2>引数</h2>
225227
<ul>
226228
<li><code>category</code>:設定対象のカテゴリ。<code>LC_ALL</code>,<code>LC_CTYPE</code>などのマクロを使用。</li>
227229
<li><code>locale</code><ul>
228230
<li><code>"C"</code>:標準のCロケール</li>
229231
<li><code>""</code>:環境依存のデフォルトロケール</li>
230232
<li><code>NULL</code>:現在のロケールを取得するだけ</li>
233+
<li>処置系定義の文字列</li>
231234
</ul>
232235
</li>
233236
</ul>

gen/pull/1542/rss.xml

Lines changed: 38 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,46 @@
22
<feed xmlns="http://www.w3.org/2005/Atom">
33
<title>cpprefjp - C++日本語リファレンス</title>
44
<link href="https://cpprefjp.github.io" />
5-
<updated>2025-12-03T15:31:46.489385</updated>
6-
<id>852af33b-46ed-4038-942b-c88e558e41e1</id>
5+
<updated>2025-12-03T16:17:12.576811</updated>
6+
<id>31d840d2-493b-4d0f-832b-ff556277e4cd</id>
77

88

9+
<entry>
10+
<title>setlocale -- Update setlocale.md</title>
11+
<link href="https://cpprefjp.github.io/reference/clocale/setlocale.html"/>
12+
<id>cef2a2cc234b9556b2645a3688ea1ed78812bac6:reference/clocale/setlocale.md</id>
13+
<updated>2025-12-03T16:11:56+00:00</updated>
14+
15+
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/clocale/setlocale.md b/reference/clocale/setlocale.md
16+
index 2fe7636c1..724ec4420 100644
17+
--- a/reference/clocale/setlocale.md
18+
+++ b/reference/clocale/setlocale.md
19+
@@ -14,12 +14,17 @@ namespace std {
20+
21+
指定できる処理系定義のロケール文字列は[使用できるロケール文字列](/article/platform/locales.md)を参照のこと。
22+
23+
+この関数の呼び出しは他スレッドにおける `setlocale()` または現在のロケールを使用する他の関数の呼び出しとデータ競合の可能性がある。
24+
+
25+
+プログラム開始時の現在のロケールは `std::setlocale(LC_ALL, &amp;#34;C&amp;#34;);` が呼び出されたのと同じ状態に初期化される。
26+
+
27+
## 引数
28+
- `category`:設定対象のカテゴリ。`LC_ALL`,`LC_CTYPE`などのマクロを使用。
29+
- `locale`:
30+
* `&amp;#34;C&amp;#34;`:標準のCロケール
31+
* `&amp;#34;&amp;#34;`:環境依存のデフォルトロケール
32+
* `NULL`:現在のロケールを取得するだけ
33+
+ * 処置系定義の文字列
34+
35+
## 戻り値
36+
成功時は設定されたロケール名(文字列)、失敗時は`NULL`。
37+
&lt;/code&gt;&lt;/pre&gt;</summary>
38+
39+
<author>
40+
<name>K10-K10</name>
41+
<email>keito.tottori@gmail.com</email>
42+
</author>
43+
</entry>
44+
945
<entry>
1046
<title>setlocale -- 指摘された点を変更</title>
1147
<link href="https://cpprefjp.github.io/reference/clocale/setlocale.html"/>
@@ -1375,112 +1411,4 @@ index 000000000..e2934913f
13751411
</author>
13761412
</entry>
13771413

1378-
<entry>
1379-
<title>clocale -- clocale ライブラリページの追加</title>
1380-
<link href="https://cpprefjp.github.io/reference/clocale.html"/>
1381-
<id>34aa9cdb170052977aed3c9671c4e4ea21436636:reference/clocale.md</id>
1382-
<updated>2025-12-03T21:38:13+09:00</updated>
1383-
1384-
<content type="html">&lt;div class=&#34;header&#34;&gt;&amp;lt;clocale&amp;gt;&lt;/div&gt;&lt;h1 itemprop=&#34;name&#34;&gt;&lt;span class=&#34;token&#34;&gt;clocale&lt;/span&gt;&lt;/h1&gt;
1385-
&lt;div itemprop=&#34;articleBody&#34;&gt;&lt;p&gt;&lt;code&gt;&amp;lt;clocale&amp;gt;&lt;/code&gt;ヘッダでは、ローカライゼーション(地域化)に関するクラス・関数を定義する。&lt;/p&gt;
1386-
&lt;p&gt;これらの機能は基本的には、&lt;code&gt;std&lt;/code&gt;名前空間に属することを除いてC言語の標準ライブラリ&lt;code&gt;&amp;lt;locale.h&amp;gt;&lt;/code&gt;ヘッダと同じである。&lt;/p&gt;
1387-
&lt;h2&gt;マクロ&lt;/h2&gt;
1388-
&lt;table border=&#34;1&#34; bordercolor=&#34;#888&#34; style=&#34;border-collapse:collapse&#34;&gt;
1389-
&lt;thead&gt;
1390-
&lt;tr&gt;
1391-
&lt;th&gt;名前&lt;/th&gt;
1392-
&lt;th&gt;説明&lt;/th&gt;
1393-
&lt;th&gt;対応バージョン&lt;/th&gt;
1394-
&lt;/tr&gt;
1395-
&lt;/thead&gt;
1396-
&lt;tbody&gt;
1397-
&lt;tr&gt;
1398-
&lt;td&gt;&lt;code&gt;&lt;a href=&#34;cstddef/null.html&#34;&gt;NULL&lt;/a&gt;&lt;/code&gt;&lt;/td&gt;
1399-
&lt;td&gt;ヌルポインタ定数に展開されるマクロ&lt;/td&gt;
1400-
&lt;td&gt;&lt;/td&gt;
1401-
&lt;/tr&gt;
1402-
&lt;tr&gt;
1403-
&lt;td&gt;&lt;code&gt;LC_ALL&lt;/code&gt;&lt;/td&gt;
1404-
&lt;td&gt;すべてのロケールカテゴリを一括指定するための定数&lt;/td&gt;
1405-
&lt;td&gt;&lt;/td&gt;
1406-
&lt;/tr&gt;
1407-
&lt;tr&gt;
1408-
&lt;td&gt;&lt;code&gt;LC_COLLATE&lt;/code&gt;&lt;/td&gt;
1409-
&lt;td&gt;文字列の照合(比較)規則に関するロケールカテゴリ&lt;/td&gt;
1410-
&lt;td&gt;&lt;/td&gt;
1411-
&lt;/tr&gt;
1412-
&lt;tr&gt;
1413-
&lt;td&gt;&lt;code&gt;LC_CTYPE&lt;/code&gt;&lt;/td&gt;
1414-
&lt;td&gt;文字分類(大文字/小文字、数字、空白など)やマルチバイト文字の扱いに関するカテゴリ&lt;/td&gt;
1415-
&lt;td&gt;&lt;/td&gt;
1416-
&lt;/tr&gt;
1417-
&lt;tr&gt;
1418-
&lt;td&gt;&lt;code&gt;LC_MONETARY&lt;/code&gt;&lt;/td&gt;
1419-
&lt;td&gt;通貨表記に関するロケールカテゴリ&lt;/td&gt;
1420-
&lt;td&gt;&lt;/td&gt;
1421-
&lt;/tr&gt;
1422-
&lt;tr&gt;
1423-
&lt;td&gt;&lt;code&gt;LC_NUMERIC&lt;/code&gt;&lt;/td&gt;
1424-
&lt;td&gt;数値表記に関するロケールカテゴリ(小数点記号など)&lt;/td&gt;
1425-
&lt;td&gt;&lt;/td&gt;
1426-
&lt;/tr&gt;
1427-
&lt;tr&gt;
1428-
&lt;td&gt;&lt;code&gt;LC_TIME&lt;/code&gt;&lt;/td&gt;
1429-
&lt;td&gt;日付および時刻表記に関するロケールカテゴリ&lt;/td&gt;
1430-
&lt;td&gt;&lt;/td&gt;
1431-
&lt;/tr&gt;
1432-
&lt;/tbody&gt;
1433-
&lt;/table&gt;
1434-
&lt;h2&gt;構造体&lt;/h2&gt;
1435-
&lt;table border=&#34;1&#34; bordercolor=&#34;#888&#34; style=&#34;border-collapse:collapse&#34;&gt;
1436-
&lt;thead&gt;
1437-
&lt;tr&gt;
1438-
&lt;th&gt;名前&lt;/th&gt;
1439-
&lt;th&gt;説明&lt;/th&gt;
1440-
&lt;th&gt;対応バージョン&lt;/th&gt;
1441-
&lt;/tr&gt;
1442-
&lt;/thead&gt;
1443-
&lt;tbody&gt;
1444-
&lt;tr&gt;
1445-
&lt;td&gt;&lt;code&gt;lconv&lt;/code&gt;&lt;/td&gt;
1446-
&lt;td&gt;数値・通貨表示の書式設定をまとめた型&lt;/td&gt;
1447-
&lt;td&gt;&lt;/td&gt;
1448-
&lt;/tr&gt;
1449-
&lt;/tbody&gt;
1450-
&lt;/table&gt;
1451-
&lt;h2&gt;関数&lt;/h2&gt;
1452-
&lt;table border=&#34;1&#34; bordercolor=&#34;#888&#34; style=&#34;border-collapse:collapse&#34;&gt;
1453-
&lt;thead&gt;
1454-
&lt;tr&gt;
1455-
&lt;th&gt;名前&lt;/th&gt;
1456-
&lt;th&gt;説明&lt;/th&gt;
1457-
&lt;th&gt;対応バージョン&lt;/th&gt;
1458-
&lt;/tr&gt;
1459-
&lt;/thead&gt;
1460-
&lt;tbody&gt;
1461-
&lt;tr&gt;
1462-
&lt;td&gt;&lt;code&gt;setlocale&lt;/code&gt;&lt;/td&gt;
1463-
&lt;td&gt;ロケールを変更、または現在のロケールを取得する。 &lt;/td&gt;
1464-
&lt;td&gt;&lt;/td&gt;
1465-
&lt;/tr&gt;
1466-
&lt;tr&gt;
1467-
&lt;td&gt;&lt;code&gt;localeconv&lt;/code&gt;&lt;/td&gt;
1468-
&lt;td&gt;現在のロケールに応じた数値・通貨表記情報を取得する。&lt;/td&gt;
1469-
&lt;td&gt;&lt;/td&gt;
1470-
&lt;/tr&gt;
1471-
&lt;/tbody&gt;
1472-
&lt;/table&gt;
1473-
&lt;h2&gt;関連項目&lt;/h2&gt;
1474-
&lt;ul&gt;
1475-
&lt;li&gt;&lt;code&gt;&lt;a href=&#34;locale.html&#34;&gt;locale&lt;/a&gt;&lt;/code&gt;&lt;/li&gt;
1476-
&lt;/ul&gt;
1477-
&lt;h2&gt;参照&lt;/h2&gt;
1478-
&lt;p&gt;&lt;a href=&#34;https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0175r1.html&#34; target=&#34;_blank&#34;&gt;Synopses for the C library&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</content>
1479-
1480-
<author>
1481-
<name>K10-K10</name>
1482-
<email>keito.tottori@gmail.com</email>
1483-
</author>
1484-
</entry>
1485-
14861414
</feed>

gen/pull/1542/sitemap.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20226,7 +20226,7 @@
2022620226

2022720227
<url>
2022820228
<loc>https://cpprefjp.github.io/reference/clocale/setlocale.html</loc>
20229-
<lastmod>2025-12-04T00:13:16+09:00</lastmod>
20229+
<lastmod>2025-12-03T16:11:56+00:00</lastmod>
2023020230
<changefreq>daily</changefreq>
2023120231
<priority>0.7</priority>
2023220232
</url>

0 commit comments

Comments
 (0)