Export (0) Print
Expand All

_ismbslead, _ismbstrail

Visual Studio 6.0

int _ismbslead( const unsigned char *string, const unsigned char *current );

int _ismbstrail( const unsigned char *string, const unsigned char *current );

Routine Required Header Optional Headers Compatibility
_ismbslead <mbctype.h> or <mbstring.h> <ctype.h>,1 <limits.h>, <stdlib.h> Win 95, Win NT
_ismbstrail <mbctype.h> or <mbstring.h> <ctype.h>,1 <limits.h>, <stdlib.h> Win 95, Win NT

1 For manifest constants for the test conditions.

For additional compatibility information, see Compatibility in the Introduction.

Libraries

LIBC.LIB Single thread static library, retail version
LIBCMT.LIB Multithread static library, retail version
MSVCRT.LIB Import library for MSVCRT.DLL, retail version

Return Value

_ismbslead and _ismbstrail return –1 if the character is a lead or trail byte, respectively. Otherwise they return zero.

Parameters

string

Pointer to start of string or previous known lead byte

current

Pointer to position in string to be tested

Remarks

The _ismbslead and _ismbstrail routines perform context-sensitive tests for multibyte-character string lead and trail bytes; they determine whether a given substring pointer points to a lead byte or a trail byte. _ismbslead and _ismbstrail are slower than their _ismbblead and _ismbbtrail counterparts because they take the string context into account.

Character Classification Routines_ismbc Function Overview

See Also   is, isw Function Overview, _ismbb Function Overview

Show:
© 2015 Microsoft