Skip to content

NLS isleadbyte

Function : Character Manipulation
NLS_isleadbyte - Tests if a byte is the leading byte in a multibyte character.

#include <nls.h>
NLS_STATUS LNPUBLIC NLS_isleadbyte(

    BYTE  Character,
    NLS_PINFO  pInfo);
Description :

This function tests if a byte is the leading byte in a multibyte character.

Parameters : Input : Character - The character to be tested.

pInfo - A pointer to an NLS_INFO struct, which contains all of the tables and attributes of the current character set. The NLS_INFO struct should have been initialized by a previous call to OSGetLMBCSCLS().

Output : (routine) - NLS_SUCCESS - The specified character is the lead byte in a multibyte character. NLS_PROPNOTFOUND - The specified character is NOT the lead byte in a multibyte character or Info->LeadByteTable is NULL. NLS_INVALIDTABLE - pInfo->PropertyTable is NULL. or pInfo->LeadByteTable is NULL.

See Also : NLS_INFO NLS_isalnum NLS_isalpha NLS_isarith NLS_iscntrl NLS_isdigit NLS_islower NLS_ispunct NLS_isspace NLS_isupper NLS_PINFO OSGetLMBCSCLS