命名空間
變體
動作

標準函式庫標頭檔 <clocale>

出自 cppreference.com
< cpp‎ | header
 
 
標準函式庫標頭檔
演算法
<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 的地區設定類別 (locale categories)
(巨集常數) [編輯]

函式

取得並設定當前的 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 */

[編輯] 備註

English Deutsch 日本語 中文(简体) 中文(繁體)