Export (0) Print
Expand All
div
eof
Expand Minimize
This topic has not yet been rated - Rate this topic

_ismbblead, _ismbblead_l 

Tests a character to determine whether it is a lead byte of a multibyte character.


int _ismbblead(
   unsigned int c 
);
int _ismbblead_l(
   unsigned int c,
   _locale_t locale
);

Parameters

c

Integer to be tested.

locale

Locale to use.

Returns a nonzero value if the integer c is the first byte of a multibyte character.

Multibyte characters consist of a lead byte followed by a trailing byte. Lead bytes are distinguished by being in a particular range for a given character set. For example, in code page 932 only, lead bytes range from 0x81 – 0x9F and 0xE0 – 0xFC.

_ismbblead uses the current locale for locale-dependent behavior. _ismbblead_l is identical except that it uses the locale passed in instead.

Generic-Text Routine Mappings
Tchar.h routine _UNICODE and _MBCS not defined _MBCS defined _UNICODE defined

_istlead

Always returns false

_ismbblead

Always returns false

Routine Required header Optional header Compatibility

_ismbblead

<mbctype.h> or <mbstring.h>

<ctype.h>,* <limits.h>, <stdlib.h>

Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003

_ismbblead_l

<mbctype.h> or <mbstring.h>

<ctype.h>,* <limits.h>, <stdlib.h>

Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003

* For manifest constants for the test conditions.

For more compatibility information, see Compatibility in the Introduction.

Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.