JCL Help:CharType@AnsiChar

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns character type information.


Pascal

 function CharType(const C: Char): Word;
function CharType(const C: AnsiChar): Word;


Parameters

Parameters Description
const C: Char The character for which to retriev type information.


Return Value

The type of the character, this can be one of the following values.

Name Value Meaning
C1_UPPER 0x0001 Uppercase
C1_LOWER 0x0002 Lowercase
C1_DIGIT 0x0004 Decimal digits
C1_SPACE 0x0008 Space characters
C1_PUNCT 0x0010 Punctuation
C1_CNTRL 0x0020 Control characters
C1_BLANK 0x0040 Blank characters
C1_XDIGIT 0x0080 Hexadecimal digits
C1_ALPHA 0x0100 Any linguistic character: alphabetic, syllabary, or ideographic


Description

The CharType function returns character type information about the specified character. This routine returns the same information as routines such as IsCharControl. For further information about character type information see the documentation for the GetStringTypeEx routine in the Platform SDK.


About

Unit

JclAnsiStrings


Donator

Azret Botash


Notes

In a future Linux version the values may differ.


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page