Class Module 23 Members

Character Arrays Class

Entisoft Tools 2.0 Object Library · CharacterArrays · 21 Functions · 0 Properties · 1 Subroutines

Showing 23 of 23
Declarations
Declarations
The functions in this group operate upon the characters within Strings. They generally consider the Strings to be arrays of characters, as opposed to interpreting the Strings as containing words or phrases from some language. Copyright 1998 Entisoft
Section
CharacterCountsToVariantVector
Character Counts To Variant Vector
Fill the elements of an Integer array so that they each represent the number of occurrences of the character with that ASCII value in string vString.
Function
CharactersNotInString
Characters Not In String
Return a string containing the characters with ASCII values from 0 (zero) through 255 that do not appear in string vValue.
Function
DifferenceCharacters
Difference Characters
Return a string containing all of the unique characters in vStringOne which are not in vStringTwo. Each unique character in string vStringOne will appear at most once within the result string. Relational difference operation on characters in a string.
Function
IntegerVectorToStringAsc
Integer Vector To String Asc
"Integer Vector To String ASCII" Turns a one-dimensional array of Integers representing characters into a character string.
Function
IntersectCharacters
Intersect Characters
Return a string containing the characters that two strings have in common. Each unique character which appears in both vStringOne and vStringTwo will appear once within the result string. Relational intersect operation on the characters in a string.
Function
InversePermutation
Inverse Permutation
Create the inverse permutation of the characters within a string.
Function
JoinStringCharacters
Join String Characters
Form a string whose character pairs represent the Cartesian product of the characters from two string. Relational Cartesian product operation except that duplicates are not eliminated. A pair of characters is formed by joining each character in string vOne with each character in vTwo.
Function
KeepCharacters
Keep Characters
Return a string containing all of the characters in vLine that also appear in vKeepChars. This is the opposite of the StripCharacters function.
Function
KeepRangeOfCharacters
Keep Range Of Characters
Returns the characters in string vValue whose ASCII values fall within the specific range.
Function
MaxAsc
Max Asc
" Maximum ASCII" Return the maximum ASCII value of the characters within a string.
Function
MinAsc
Min Asc
" Minimum ASCII" Return the minimum ASCII value of the characters within a string.
Function
ShuffleString
Shuffle String
Shuffle the characters within a string. Randomly rearranges the characters within the string.
Function
SortCharacters
Sort Characters
Sorts the characters in a string using some specific collating sequence. Result string will contain all of the characters from string vValue, NOT just the unique ones. Usually slower than the SortCharactersBinary function which sorts based on the ASCII value of each character.
Function
SortCharactersBinary
Sort Characters Binary
Sort the characters in a string according to their ASCII values. Result string will contain all of the characters from string vValue, NOT just the unique ones.
Function
SortCharactersByFrequency
Sort Characters By Frequency
Sorts the characters in a string based upon the descending frequency of those characters. Result string will contain all of the characters from string vValue, NOT just the unique ones. The sort is stable so that if characters have the same frequency, then they are listed in the same order in which they appeared within the input string.
Function
SortUsedCharacters
Sort Used Characters
Return a string containing each of the unique characters present in the input string. Characters are returned in sorted order, and each character will appear at most once. This function uses Binary sorting order, because of the algorithm.
Function
StringAscToIntegerVector
String Asc To Integer Vector
"String ASCII To Integer Vector" Place the Asc value of the characters of a string into the elements of an integer array. This is the opposite of the IntegerVectorToStringAsc function.
Function
StripCharacters
Strip Characters
Strip characters out of a string wherever they occur. This is similar to the KeepCharacters function, except that KeepCharacters requires the list of characters to be kept instead of the ones to be removed.
Function
StripRangeOfCharacters
Strip Range Of Characters
Returns the string vValue except for the characters whose ASCII values fall within a specific range.
Function
UniqueCharacters
Unique Characters
Quashes all repeated runs of a character to a single character.
Function
UsedCharacters
Used Characters
Return a string containing the uniquely-occurring characters within a string. Characters are returned in the order in which they appear in string vValue; they are NOT returned in sorted order.
Function
SortCharactersBenchmark
Sort Characters Benchmark
View VB6 signature, parameters, and usage notes.
Sub