unicase

Returns the casing mode of the specified character.

Library:LibC
Service:Characters and Strings

Syntax

  #include <unilib.h> 
   
  UniCase_t unicase (
     unicode_t   ch);
  

Parameters

ch

(IN) Specifies the character to check.

Return Values

Returns one of the following values:

Value

Flag

Description

(-3)

UNI_CASE_DEFAULT

Default monocase as implemented.

(-2)

UNI_CASE_NONE

Character is not an alphabetic character.

(-1)

UNI_CASE_AMBIGUOUS

Character has no case.

0

UNI_CASE_UPPER

Character is uppercase.

1

UNI_CASE_LOWER

Character is lowercase.

If you are using the Watcom compiler, check the unilib.h file for the values.

See Also