Class Module 39 Members

Character Types Class

Entisoft Tools 2.0 Object Library · CharacterTypes · 29 Functions · 8 Properties · 1 Subroutines

Showing 39 of 39
Declarations
Declarations
These functions classify characters according to various types such as alphanumeric, alphabetical, numeric, hexadecimal numeric, etc. Some of them perform simple conversions based upon character classification. Copyright 1998 Entisoft
Section
CharacterTableAlphanumeric
Character Table Alphanumeric
Return a string containing a table of the ASCII values of the alphanumeric characters.
Property
CharacterTableDecimal
Character Table Decimal
Return a string containing the character table with decimal number headings.
Property
CharacterTableHexadecimal
Character Table Hexadecimal
Return a string containing the character table with hexadecimal number headings.
Property
CType
C Type
Return the current character classification (CType) string.
Property
CTypeANSI
C Type ANSI
"ANSI Character Types" Property whose string value defines the classification of characters within the ANSI C character set. The character at position X represents the classification of the character with ASCII value X - 1.
Property
CTypeUSASCII
C Type USASCII
"US ASCII Character Types" Property whose string value defines the classification of characters within the US ASCII character set. The character at position X represents the classification of the character with ASCII value X - 1.
Property
EveryCharacter
Every Character
Return a string that contains every character in the character set whose ASCII value is between 0 (zero) and 255. First character has ASCII value 0 (zero), second character has ASCII value 1 (one), etc.
Property
NonExtendedCharacters
Non Extended Characters
Property whose string value contains the "non-extended" version of each of the characters in the ANSI Windows character set. The character at position X represents the non-extended version of the character with ASCII value X - 1.
Property
CapitalizeLike
Capitalize Like
Capitalize vString according to how corresponding characters in vPattern are capitalized.
Function
ComposeCharacter
Compose Character
Take a two-character string like "a." or ".a" and return the corresponding accented character like A-umlaut, etc. Compose an accented alphabetic or other extended character from a two-character sequence usually consisting of one alphabetic and one punctuation character.
Function
EveryCharacterOfType
Every Character Of Type
Accepts one of the Char.. constants and returns all of the characters of that type according to the currently-loaded character classification. The character classification definitions for the ANSI Windows character set are loaded by default.
Function
EveryCharacterWithinRange
Every Character Within Range
"Every Character Within ASCII Range " Create a string containing every character whose ASCII value is within the specified range.
Function
IsAlNum
Is Al Num
"Is Character Alphanumeric" Return True if the character with ASCII value vCharCode is alphanumeric (either alphabetic like "A".."Z", "a".."z", or numeric like "0".."9"). Return False otherwise.
Function
IsAlpha
Is Alpha
"Is Character Alphabetic" Return True if the character with ASCII value vCharCode is alphabetic ("A".."Z", "a".."z"; includes accented characters such as C-circumflex within the definitions for the ANSI Windows character set). Function returns False otherwise.
Function
IsCarriage
Is Carriage
"Is Character Carriage Control" Return True if the character with ASCII value vCharCode is a carriage control character (like carriage return, line feed, form feed, etc.). Function returns False otherwise.
Function
IsCntrl
Is Cntrl
"Is Character Control" Return True if the character with ASCII value vCharCode is a control character (like Ctrl+A..Ctrl+Z). Return False otherwise.
Function
IsConsonant
Is Consonant
Return True if the character with ASCII value vCharCode is a consonant. The pre-programmed definitions for the ANSI Windows character set consider consonants to be those alphabetic characters which are not considered vowels.
Function
IsDigit
Is Digit
"Is Character Numeric Digit" Return True if the character with ASCII value vCharCode is a numeric digit ("0", "1", .. "9"). Return False otherwise.
Function
IsGraph
Is Graph
"Is Character Graphical" Return True if the character with ASCII value vCharCode is a "graphical" character; return False otherwise. The "graph" classification includes alphanumeric (alphabetical and numeric) and punctuation characters.
Function
IsLower
Is Lower
"Is Character Lower Case Alphabetic" Return True if the character with ASCII value vCharCode is a lower-case alphabetic character ("a"..."z", accented lower-case characters like c-circumflex, etc.). Return False otherwise.
Function
IsNotLowerCase
Is Not Lower Case
Return True if string vValue does NOT contain Lower Case characters; return False otherwise.
Function
IsNotUpperCase
Is Not Upper Case
Return True if string vValue does NOT contain Upper Case characters; return False otherwise.
Function
IsPrint
Is Print
"Is Character Printable" Return True if the character with ASCII value vCharCode is a "printable" character; return False otherwise. The "print" classification includes alphanumeric (alphabetical and numeric), punctuation, and whitespace characters. Combination of characters from the "graph" and "whitespace" classifications.
Function
IsPunct
Is Punct
"Is Character Punctuation" Return True if the character with ASCII value vCharCode is a punctuation character; return False otherwise. Punctuation characters include comma, period, quote mark, etc.
Function
IsSpace
Is Space
"Is Character Space" Return True if the character with ASCII value vCharCode is a "space" character; return False otherwise. The "space" classification include whitespace characters (Chr$(32) and Chr$(160)) and carriage control characters (carriage return, line feed, form feed, etc.).
Function
IsUpper
Is Upper
"Is Character Upper Case Alphabetic" Return True if the character with ASCII value vCharCode is an upper-case alphabetic character ("A"..."Z", accented upper-case characters like C-circumflex, etc.). Return False otherwise.
Function
IsVowel
Is Vowel
Return True if the character with ASCII value vCharCode is a vowel. Within the pre-programmed definitions for the ANSI Windows character set, the characters A, E, I, O, U, a, e, i, o, u, and their accented foreign-language equivalents to be vowels.
Function
IsXDigit
Is X Digit
"Is Character Hexadecimal Digit" Return True if the character with ASCII value vCharCode is a hexadecimal digit ("0".."9", "A".."F", "a".."f"). Return False otherwise.
Function
LCaseInPlace
L Case In Place
"Lower Case In Place" Convert the string argument rValue to lower-case and also return that value.
Function
LTrimInPlace
L Trim In Place
"Left Trim In Place" Remove the leading spaces from the string argument rValue and also return that value.
Function
RTrimInPlace
R Trim In Place
"Right Trim In Place" Remove the trailing spaces from the string argument rValue and also return that value.
Function
SwapUpperAndLowerCase
Swap Upper And Lower Case
Replace all lower-case alphabetic characters with their upper-case equivalent, and replace all upper-case characters with their lower-case equivalent.
Function
ToLower
To Lower
"To Lower Case" Convert a character or a string to its lower-case equivalent; non-alphabetic characters remain unchanged.
Function
ToNonExtended
To Non Extended
"To Non Extended Characters" Convert the "extended" characters within a string to their "non-extended" counterpart.
Function
ToUpper
To Upper
"To Upper Case" Convert a character or a string to its upper-case equivalent; non-alphabetic characters remain unchanged.
Function
TrimInPlace
Trim In Place
Remove both the leading and trailing spaces from the string argument rValue and also return that value.
Function
UCaseInPlace
U Case In Place
"Upper Case In Place" Convert the string argument rValue to upper-case and also return that value.
Function
ComposeCharacterSample
Compose Character Sample
View VB6 signature, parameters, and usage notes.
Sub