名稱空間
變體
操作

標準庫標頭檔案 <clocale>

來自 cppreference.com
 
 
標準庫標頭檔案
演算法
<algorithm>
<numeric>
字串
<cctype>
<cstring>
<cuchar> (C++11)
<cwchar>
<cwctype>
<string_view> (C++17)
<string>
文字處理
<clocale>
<codecvt> (C++11/17/26*)
<locale>
<regex> (C++11)
<text_encoding> (C++26)   
數值
<cfenv> (C++11)
<cmath>
<complex>
<linalg> (C++26)
<numbers> (C++20)
<random> (C++11)
<simd> (C++26)
<valarray>
時間
<chrono> (C++11)
<ctime>
C 相容性
<ccomplex> (C++11/17/20*)
<ciso646> (直到 C++20)
<cstdalign> (C++11/17/20*)
<cstdbool> (C++11/17/20*)
<ctgmath> (C++11/17/20*)
 

此標頭檔案最初在 C 標準庫中為 <locale.h>

此標頭檔案是文字處理庫的一部分。

目錄

型別

格式化細節,由 std::localeconv 返回
(類) [編輯]

常量

實現定義的空指標常量
(宏常量) [編輯]
std::setlocale 的本地化類別
(宏常量) [編輯]

函式

獲取和設定當前 C 區域設定
(函式) [編輯]
查詢當前區域設定的數字和貨幣格式詳細資訊
(函式) [編輯]

[編輯] 概要

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 */

[編輯] 註釋