字节对齐说明

Each of these routines tests a specified byte of a multibyte character for satisfaction of a condition. Except where specified otherwise, the output value is affected by the setting of theLC_CTYPE category setting of the locale; see setlocale for more information. The versions of these functions without the_l suffix use the current locale for this locale-dependent behavior; the versions with the_l suffix are identical except that they use the locale parameter passed in instead.

NoteNote:

By definition, the ASCII characters between 0 and 127 are a subset of all multibyte-character sets. For example, the Japanese katakana character set includes ASCII as well as non-ASCII characters.

The predefined constants in the following table are defined in CTYPE.H.

Routine

Byte Test Condition

.NET Framework equivalent

isleadbyte, _isleadbyte_l

Lead byte; test result depends on LC_CTYPE category setting of current locale

Not applicable, but see System::Globalization::CultureInfo

_ismbbalnum, _ismbbalnum_l

isalnum || _ismbbkalnum

Not applicable, but see System::Globalization::CultureInfo

_ismbbalpha, _ismbbalpha_l

isalpha || _ismbbkalnum

Not applicable, but see System::Globalization::CultureInfo

_ismbbgraph, _ismbbgraph_l

Same as _ismbbprint, but _ismbbgraph does not include the space character (0x20)

Not applicable, but see System::Globalization::CultureInfo

_ismbbkalnum, _ismbbkalnum_l

Non-ASCII text symbol other than punctuation. For example, in code page 932 only,_ismbbkalnum tests for katakana alphanumeric

Not applicable, but see System::Globalization::CultureInfo

_ismbbkana, _ismbbkana_l

Katakana (0xA1 – 0xDF), code page 932 only

Not applicable, but see System::Globalization::CultureInfo

_ismbbkprint, _ismbbkprint_l

Non-ASCII text or non-ASCII punctuation symbol. For example, in code page 932 only,_ismbbkprint tests for katakana alphanumeric or katakana punctuation (range: 0xA1 – 0xDF).

Not applicable, but see System::Globalization::CultureInfo

_ismbbkpunct, _ismbbkpunct_l

Non-ASCII punctuation. For example, in code page 932 only, _ismbbkpunct tests for katakana punctuation.

Not applicable, but see System::Globalization::CultureInfo

_ismbblead, _ismbblead_l

First byte of multibyte character. For example, in code page 932 only, valid ranges are 0x81 – 0x9F, 0xE0 – 0xFC.

Not applicable, but see System::Globalization::CultureInfo

_ismbbprint, _ismbbprint_l

isprint || _ismbbkprint. ismbbprint includes the space character (0x20)

Not applicable, but see System::Globalization::CultureInfo

_ismbbpunct, _ismbbpunct_l

ispunct || _ismbbkpunct

Not applicable, but see System::Globalization::CultureInfo

_ismbbtrail, _ismbbtrail_l

Second byte of multibyte character. For example, in code page 932 only, valid ranges are 0x40 – 0x7E, 0x80 – 0xEC.

Not applicable, but see System::Globalization::CultureInfo

_ismbslead, _ismbslead_l

Lead byte (in string context)

Not applicable, but see System::Globalization::CultureInfo

ismbstrail, _ismbstrail_l

Trail byte (in string context)

Not applicable, but see System::Globalization::CultureInfo

_mbbtype, _mbbtype_l

Return byte type based on previous byte

Not applicable, but see System::Globalization::CultureInfo

_mbsbtype, _mbsbtype_l

Return type of byte within string

Not applicable, but see System::Globalization::CultureInfo

mbsinit

Tracks the state of a multibyte character conversion.

Not applicable, but see System::Globalization::CultureInfo

The MB_LEN_MAX macro, defined in LIMITS.H, expands to the maximum length in bytes that any multibyte character can have.MB_CUR_MAX, defined in STDLIB.H, expands to the maximum length in bytes of any multibyte character in the current locale.



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值