Oracle® Call Interface Programmer's Guide, 10g Release 2 (10.2) Part Number B14250-02 |
|
|
View PDF |
Table 21-6 lists the OCI character classification functions.
Table 21-6 OCI Character Classification Functions
Function/Page | Purpose |
---|---|
Tests whether the wide character is a letter or a decimal digit. |
|
Tests whether the wide character is an alphabetic letter. |
|
Tests whether the wide character is a control character. |
|
Tests whether the wide character is a decimal digital character. |
|
Tests whether the wide character is a graph character. |
|
Tests whether the wide character is a lowercase character. |
|
Tests whether the wide character is a printable character. |
|
Tests whether the wide character is a punctuation character. |
|
Tests whether the wide character is a single-byte character when converted to multibyte. |
|
Tests whether the wide character is a space character. |
|
Tests whether the wide character is an uppercase character. |
|
Tests whether the wide character is a hexadecimal digit. |
Purpose
Tests whether a wide character is a letter or decimal digit.
Syntax
boolean OCIWideCharIsAlnum ( dvoid *hndl, OCIWchar wc );
Parameters
OCI environment or user session handle to determine the character set.
wchar
for testing.
Returns
TRUE
or FALSE.
Purpose
Tests whether a wide character is an alphabetic letter.
Syntax
boolean OCIWideCharIsAlpha ( dvoid *hndl, OCIWchar wc );
Parameters
OCI environment or user session handle to determine the character set.
wchar
for testing.
Returns
TRUE
or FALSE.
Purpose
Tests whether a wide character is a control character.
Syntax
boolean OCIWideCharIsCntrl ( dvoid *hndl, OCIWchar wc );
Parameters
OCI environment or user session handle to determine the character set.
wchar
for testing.
Returns
TRUE
or FALSE.
Purpose
Tests whether a wide character is a decimal digit character.
Syntax
boolean OCIWideCharIsDigit ( dvoid *hndl, OCIWchar wc );
Parameters
OCI environment or user session handle to determine the character set.
wchar
for testing.
Returns
TRUE
or FALSE.
Purpose
Tests whether a wide character is a graph character. A graph character is a character with a visible representation and normally includes alphabetic letters, decimal digits, and punctuation.
Syntax
boolean OCIWideCharIsGraph ( dvoid *hndl, OCIWchar wc );
Parameters
OCI environment or user session handle to determine the character set.
wchar
for testing.
Returns
TRUE
or FALSE.
Purpose
Tests whether a wide character is a lowercase letter.
Syntax
boolean OCIWideCharIsLower ( dvoid *hndl, OCIWchar wc );
Parameters
OCI environment or user session handle to determine the character set.
wchar
for testing.
Returns
TRUE
or FALSE.
Purpose
Tests whether a wide character is a printable character.
Syntax
boolean OCIWideCharIsPrint ( dvoid *hndl, OCIWchar wc );
Parameters
OCI environment or user session handle to determine the character set.
wchar
for testing.
Returns
TRUE
or FALSE.
Purpose
Tests whether a wide character is a punctuation character.
Syntax
boolean OCIWideCharIsPunct ( dvoid *hndl, OCIWchar wc );
Parameters
OCI environment or user session handle to determine the character set.
wchar
for testing.
Returns
TRUE
or FALSE.
Purpose
Tests whether a wide character is a single-byte character when converted into multibyte.
Syntax
boolean OCIWideCharIsSingleByte ( dvoid *hndl, OCIWchar wc );
Parameters
OCI environment or user session handle to determine the character set.
wchar
for testing.
Returns
TRUE
or FALSE.
Purpose
Tests whether a wide character is a space character. A space character causes white space only in displayed text (for example, space, tab, carriage return, new line, vertical tab or form feed).
Syntax
boolean OCIWideCharIsSpace ( dvoid *hndl, OCIWchar wc );
Parameters
OCI environment or user session handle to determine the character set.
wchar
for testing.
Returns
TRUE
or FALSE.
Purpose
Tests whether a wide character is an uppercase letter
Syntax
boolean OCIWideCharIsUpper ( dvoid *hndl, OCIWchar wc );
Parameters
OCI environment or user session handle to determine the character set.
wchar
for testing.
Returns
TRUE
or FALSE.
Purpose
Tests whether a wide character is a hexadecimal digit (0-9, A-F, a-f)
Syntax
boolean OCIWideCharIsXdigit ( dvoid *hndl, OCIWchar wc );
Parameters
OCI environment or user session handle to determine the character set.
wchar
for testing.
Returns
TRUE
or FALSE.