Home   Index   About
Ultimate Pack


Custom Search
Character Type Information Values

The character-type bits are divided into several levels. The information for one level can be retrieved by a single call to this function. Each level is limited to 16 bits of information so that the other mapping routines limited to 16 bits of representation per character can return character-type information.

The character types supported by this function include the following.

Ctype 1: These types support ANSI C and POSIX (LC_CTYPE) character-typing functions. A combination of these values is returned in the array pointed to by the lpCharType parameter when the fdwInfoType parameter is set to CT_CTYPE1.

Name
Value
Meaning
C1_UPPER
  1. x0001
Uppercase
C1_LOWER
  1. x0002
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 letter

The following character types are either constant or computable from basic types and do not need to be supported by this function.

Type
Description
Alphanumeric
Alphabetic characters and digits
Printable
Graphic characters and blank

Ctype 2: These types support proper layout of Unicode™ text. The direction attributes are assigned so that the bidirectional layout algorithm standardized by Unicode produces accurate results. These types are mutually exclusive. For more information about the use of these attributes, see The Unicode Standard: Worldwide Character Encoding, Volumes 1 and 2, Addison Wesley Publishing Company: 1991, 1992, ISBN 0201567881.

Name
Value
Meaning
Strong:


C2_LEFTTORIGHT
  1. x1
Left to right
C2_RIGHTTOLEFT
  1. x2
Right to left
Weak:


C2_EUROPENUMBER
  1. x3
European number, European digit
C2_EUROPESEPARATOR
  1. x4
European numeric separator
C2_EUROPETERMINATOR
  1. x5
European numeric terminator
C2_ARABICNUMBER
  1. x6
Arabic number
C2_COMMONSEPARATOR
  1. x7
Common numeric separator
Neutral:


C2_BLOCKSEPARATOR
  1. x8
Block separator
C2_SEGMENTSEPARATOR
  1. x9
Segment separator
C2_WHITESPACE
  1. xA
White space
C2_OTHERNEUTRAL
  1. xB
Other neutrals
Not applicable:


C2_NOTAPPLICABLE
0x0
No implicit directionality (for example, control codes)

Ctype 3: These types are intended to be placeholders for extensions to the POSIX types required for general text processing or for the standard C library functions. These types are supported in the current version of Microsoft® Windows NT®. A combination of these values is returned when fdwInfoType is set to CT_CTYPE3.

Name
Value
Meaning
C3_NONSPACING
  1. x1
Nonspacing mark
C3_DIACRITIC
  1. x2
Diacritic nonspacing mark
C3_VOWELMARK
0x4
Vowel nonspacing mark
C3_SYMBOL
0x8
Symbol
C3_KATAKANA
0x10
Katakana character
C3_HIRAGANA
0x20
Hiragana character
C3_HALFWIDTH
0x40
Half Width character
C3_FULLWIDTH
0x80
Full Width character
C3_IDEOGRAPH
0x100
Ideographic character
C3_KASHIDA
0x200
Arabic Kashida character
C3_ALPHA
0x8000
All linguistic characters (alphabetic, syllabary and ideographic)
Not applicable:


C3_NOTAPPLICABLE
0x0
Not applicable


Last news from Greatis Software

Nostalgia .Net     Nostalgia .Net     .Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes.  More »

Recommended software for developers

Ultimate Pack for Delphi and C++ Builder     Ultimate Pack     Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price.  More »

Form Designer .Net     Form Designer .Net     Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro!  More »

Print Suite .Net     Print Suite .Net     Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available  More »

Gradient Controls .Net     Gradient Controls .Net     Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available  More »

iGrid     Greatis iGrid     iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors.  More »


All the contacts and projects

Dmitry Vasiliev (just.dmitry)

Related Links

Software for Visual Studio .NET developers
Software for Delphi and C++ Builder developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET

More Online Helps

Win32 Programmer's Reference
Win32 Multimedia Programmer's Reference
OLE Programmer's Reference
Microsoft Windows Pen API Programmer's Reference
Microsoft Windows Sockets 2 Reference
Microsoft Windows Telephony API (TAPI) Programmer's Reference
Unix Manual Pages

Free Tech Secrets ;) Copyright © 2008-2012 Free Tech Secrets ;) greatis just4fun network just4fun