Skip Headers
Oracle® Call Interface Programmer's Guide
11g Release 1 (11.1)

B28395-12
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

OCI Character Classification Functions

Table 22-6 lists the OCI character classification functions.

Table 22-6 OCI Character Classification Functions

Function/Page Purpose

OCIWideCharIsAlnum()

Tests whether the wide character is a letter or a decimal digit.

OCIWideCharIsAlpha()

Tests whether the wide character is an alphabetic letter.

OCIWideCharIsCntrl()

Tests whether the wide character is a control character.

OCIWideCharIsDigit()

Tests whether the wide character is a decimal digital character.

OCIWideCharIsGraph()

Tests whether the wide character is a graph character.

OCIWideCharIsLower()

Tests whether the wide character is a lowercase character.

OCIWideCharIsPrint()

Tests whether the wide character is a printable character.

OCIWideCharIsPunct()

Tests whether the wide character is a punctuation character.

OCIWideCharIsSingleByte()

Tests whether the wide character is a single-byte character when converted to multibyte.

OCIWideCharIsSpace()

Tests whether the wide character is a space character.

OCIWideCharIsUpper()

Tests whether the wide character is an uppercase character.

OCIWideCharIsXdigit()

Tests whether the wide character is a hexadecimal digit.


OCIWideCharIsAlnum()

Purpose

Tests whether a wide character is a letter or decimal digit.

Syntax

boolean OCIWideCharIsAlnum ( void       *hndl,
                             OCIWchar   wc );

Parameters

hndl (IN/OUT)

OCI environment or user session handle to determine the character set.

wc (IN)

wchar for testing.

Returns

TRUE or FALSE.

OCIWideCharIsAlpha()

Purpose

Tests whether a wide character is an alphabetic letter.

Syntax

boolean OCIWideCharIsAlpha ( void      *hndl, 
                             OCIWchar  wc );

Parameters

hndl (IN/OUT)

OCI environment or user session handle to determine the character set.

wc (IN)

wchar for testing.

Returns

TRUE or FALSE.

OCIWideCharIsCntrl()

Purpose

Tests whether a wide character is a control character.

Syntax

boolean OCIWideCharIsCntrl ( void        *hndl, 
                             OCIWchar    wc );

Parameters

hndl (IN/OUT)

OCI environment or user session handle to determine the character set.

wc (IN)

wchar for testing.

Returns

TRUE or FALSE.

OCIWideCharIsDigit()

Purpose

Tests whether a wide character is a decimal digit character.

Syntax

boolean OCIWideCharIsDigit ( void       *hndl, 
                             OCIWchar   wc );

Parameters

hndl (IN/OUT)

OCI environment or user session handle to determine the character set.

wc (IN)

wchar for testing.

Returns

TRUE or FALSE.

OCIWideCharIsGraph()

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 ( void      *hndl, 
                             OCIWchar   wc );

Parameters

hndl (IN/OUT)

OCI environment or user session handle to determine the character set.

wc (IN)

wchar for testing.

Returns

TRUE or FALSE.

OCIWideCharIsLower()

Purpose

Tests whether a wide character is a lowercase letter.

Syntax

boolean OCIWideCharIsLower ( void       *hndl, 
                             OCIWchar    wc );

Parameters

hndl (IN/OUT)

OCI environment or user session handle to determine the character set.

wc (IN)

wchar for testing.

Returns

TRUE or FALSE.

OCIWideCharIsPrint()

Purpose

Tests whether a wide character is a printable character.

Syntax

boolean OCIWideCharIsPrint ( void      *hndl, 
                             OCIWchar  wc );

Parameters

hndl (IN/OUT)

OCI environment or user session handle to determine the character set.

wc (IN)

wchar for testing.

Returns

TRUE or FALSE.

OCIWideCharIsPunct()

Purpose

Tests whether a wide character is a punctuation character.

Syntax

boolean OCIWideCharIsPunct ( void       *hndl, 
                             OCIWchar   wc );

Parameters

hndl (IN/OUT)

OCI environment or user session handle to determine the character set.

wc (IN)

wchar for testing.

Returns

TRUE or FALSE.

OCIWideCharIsSingleByte()

Purpose

Tests whether a wide character is a single-byte character when converted into multibyte.

Syntax

boolean OCIWideCharIsSingleByte ( void      *hndl, 
                                  OCIWchar  wc );

Parameters

hndl (IN/OUT)

OCI environment or user session handle to determine the character set.

wc (IN)

wchar for testing.

Returns

TRUE or FALSE.

OCIWideCharIsSpace()

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 ( void     *hndl, 
                             OCIWchar wc );

Parameters

hndl (IN/OUT)

OCI environment or user session handle to determine the character set.

wc (IN)

wchar for testing.

Returns

TRUE or FALSE.

OCIWideCharIsUpper()

Purpose

Tests whether a wide character is an uppercase letter

Syntax

boolean OCIWideCharIsUpper ( void      *hndl, 
                             OCIWchar  wc );

Parameters

hndl (IN/OUT)

OCI environment or user session handle to determine the character set.

wc (IN)

wchar for testing.

Returns

TRUE or FALSE.

OCIWideCharIsXdigit()

Purpose

Tests whether a wide character is a hexadecimal digit (0-9, A-F, a-f)

Syntax

boolean OCIWideCharIsXdigit ( void      *hndl, 
                              OCIWchar  wc );

Parameters

hndl (IN/OUT)

OCI environment or user session handle to determine the character set.

wc (IN)

wchar for testing.

Returns

TRUE or FALSE.