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

_ismbslead, _ismbstrail

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

Parameters

string
Pointer to start of string or previous known lead byte.
current
Pointer to position in string to be tested.

Return Value

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

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.

Requirements

Routine Required header Optional headers Compatibility
_ismbslead <mbctype.h> or <mbstring.h> <ctype.h>,* <limits.h>, <stdlib.h> Win 98, Win Me, Win NT, Win 2000, Win XP
_ismbstrail <mbctype.h> or <mbstring.h> <ctype.h>,* <limits.h>, <stdlib.h> Win 98, Win Me, Win NT, Win 2000, Win XP

* For manifest constants for the test conditions.

For additional compatibility information, see Compatibility in the Introduction.

Libraries

All versions of the C run-time libraries.

See Also

Character Classification Routines | _ismbc Function Overview | is, isw Function Overview | _ismbb Routines | Run-Time Routines and .NET Framework Equivalents

Show:
© 2014 Microsoft. All rights reserved.