Namespaces
Variants

std::text_encoding:: id

From cppreference.net
定义于头文件 <text_encoding>
enum class text_encoding :: id : std:: int_least32_t ;
(C++26 起)

作用域枚举 std::text_encoding​::​id 包含每个已知注册字符编码的枚举项及其对应的 MIBenum 值。

成员常量

名称 MIBenum 值
other 1
unknown 2
ASCII 3
ISOLatin1 4
ISOLatin2 5
ISOLatin3 6
ISOLatin4 7
ISOLatinCyrillic 8
ISOLatinArabic 9
ISOLatinGreek 10
ISOLatinHebrew 11
ISOLatin5 12
ISOLatin6 13
ISOTextComm 14
HalfWidthKatakana 15
JISEncoding 16
ShiftJIS 17
EUCPkdFmtJapanese 18
EUCFixWidJapanese 19
ISO4UnitedKingdom 20
ISO11SwedishForNames 21
ISO15Italian 22
ISO17Spanish 23
ISO21German 24
ISO60DanishNorwegian 25
ISO69French 26
ISO10646UTF1 27
ISO646basic1983 28
INVARIANT 29
ISO2IntlRefVersion 30
NATSSEFI 31
NATSSEFIADD 32
ISO10Swedish 35
KSC56011987 36
ISO2022KR 37
EUCKR 38
ISO2022JP 39
ISO2022JP2 40
ISO13JISC6220jp 41
ISO14JISC6220ro 42
ISO16Portuguese 43
ISO18Greek7Old 44
ISO19LatinGreek 45
ISO25French 46
ISO27LatinGreek1 47
ISO5427Cyrillic 48
ISO42JISC62261978 49
ISO47BSViewdata 50
ISO49INIS 51
ISO50INIS8 52
ISO51INISCyrillic 53
ISO54271981 54
ISO5428Greek 55
ISO57GB1988 56
ISO58GB231280 57
ISO61Norwegian2 58
ISO70VideotexSupp1 59
ISO84Portuguese2 60
ISO85Spanish2 61
ISO86Hungarian 62
ISO87JISX0208 63
ISO88Greek7 64
ISO89ASMO449 65
ISO90 66
ISO91JISC62291984a 67
ISO92JISC62991984b 68
ISO93JIS62291984badd 69
ISO94JIS62291984hand 70
ISO95JIS62291984handadd 71
ISO96JISC62291984kana 72
ISO2033 73
ISO99NAPLPS 74
ISO102T617bit <span class="

注释

对于每种编码,对应的枚举值均从以“cs”开头的别名派生,具体如下:

  • csUnicode 被映射到 ​id​ :: ​UCS2
  • csIBBM904 被映射到 ​id​ :: ​IBM904
  • 其他名称中的 "cs" 前缀会被移除。

参见

刻面索引类型:每个刻面类必须声明或继承此类型的公共静态成员
(类)
(C++11)
std::error_condition 枚举,列出所有标准 <cerrno> 宏常量
(类)