Class Module
40 Members
★ 1 Top 20
String Replacements Class
Entisoft Tools 2.0 Object Library · StringReplacements · 19 Functions · 0 Properties · 20 Subroutines
Declarations
Declarations
The function and subroutines within this group perform character and string replacement operations. Copyright 1998 Entisoft
Section
ReplaceCharacter
Replace Character
Replaces all occurrences of one character within a string with another character.
Function
ReplaceLikeString
Replace Like String
Perform string replacement. Replace all non-overlapping occurrences of LIKE pattern vLike in vLine with vReplace.
Function
ReplaceString
Replace String
Perform string replacement. Replace all non-overlapping occurrences of vFind in vLine with vReplace.
★ Top 20
Function
ReplaceStringFast
Replace String Fast
Perform string replacement. Replace all non-overlapping occurrences of vFind in vLine with vReplace. Faster version of the ReplaceString function which uses restrictive argument types to avoid argument fix-up code.
Function
ReplaceStringMultiple
Replace String Multiple
"Replace String Multiple Times" Performs multiple string replacements within a string.
Function
ReplaceStringNTimes
Replace String N Times
Replace up to vNTimes non-overlapping occurrences of vFind in vLine with vReplace.
Function
ReplaceStringOnce
Replace String Once
Replace at most one occurrence of vFind in vLine with vReplace.
Function
ReplaceStringRecursively
Replace String Recursively
Perform string replacement. Replace all possibly-overlapping occurrences of vFind in vLine with vReplace. Continue replacing string vFind in vLine with vReplace until vFind no longer appears (Behavior #9).
Function
StripFirstMatch
Strip First Match
Find and remove the first occurrence of one string within another.
Function
StripLastMatch
Strip Last Match
Find and remove the last occurrence of one string within another. Like the StripFirstMatch function excepts that it searches backwards from the end of the string.
Function
StripMatchingBeginLine
Strip Matching Begin Line
Strip vFind from vLine only if it appears at the beginning of vLine, otherwise return the string vLine unchanged.
Function
StripMatchingBeginLineFast
Strip Matching Begin Line Fast
Strip vFind from vLine only if it appears at the beginning of vLine, otherwise return the string vLine unchanged. Faster version of the StripMatchingBeginLine function which uses restrictive argument types to avoid argument fix-up code.
Function
StripMatchingEndLine
Strip Matching End Line
Strip vFind from vLine only if it appears at the end of vLine, otherwise return the string vLine unchanged.
Function
StripMatchingEndLineFast
Strip Matching End Line Fast
Strip vFind from vLine only if it appears at the end of vLine, otherwise return the string vLine unchanged. Faster version of the StripMatchingEndLine function which uses restrictive argument types to avoid argument fix-up code.
Function
StripNilCharacterForward
Strip Nil Character Forward
Strips the first Nil character (Chr$(0); the character whose ASCII value is 0 (zero)) and all following characters from a string.
Function
StripString
Strip String
Remove all occurrences of the string vFind from string vLine.
Function
TranslateString
Translate String
Translate characters in vLine. Characters in vLine also appearing in vFrom are replaced with the corresponding character from vTo.
Function
TranslateStringUsingCharacterPairs
Translate String Using Character Pairs
Translate characters in vLine. Characters in vLine also appearing in odd-numbered positions in string vFromToChars are replaced with the following character from vFromToChars.
Function
TranslateStringUsingTable
Translate String Using Table
Translate characters in vLine. Like the TranslateString function except that this function requires a string containing the translation for every character between Chr$(0) and Chr$(255).
Function
ReplaceCharacterVerify
Replace Character Verify
View VB6 signature, parameters, and usage notes.
Sub
ReplaceStringFastVerify
Replace String Fast Verify
View VB6 signature, parameters, and usage notes.
Sub
ReplaceStringMultipleVerify
Replace String Multiple Verify
View VB6 signature, parameters, and usage notes.
Sub
ReplaceStringNTimesVerify
Replace String N Times Verify
View VB6 signature, parameters, and usage notes.
Sub
ReplaceStringOnceVerify
Replace String Once Verify
View VB6 signature, parameters, and usage notes.
Sub
ReplaceStringRecursivelyVerify
Replace String Recursively Verify
View VB6 signature, parameters, and usage notes.
Sub
ReplaceStringVerify
Replace String Verify
View VB6 signature, parameters, and usage notes.
Sub
StringReplacements_Verify
String Replacements _ Verify
View VB6 signature, parameters, and usage notes.
Sub
StripFirstMatchVerify
Strip First Match Verify
View VB6 signature, parameters, and usage notes.
Sub
StripLastMatchVerify
Strip Last Match Verify
View VB6 signature, parameters, and usage notes.
Sub
StripMatchingBeginLineFastVerify
Strip Matching Begin Line Fast Verify
View VB6 signature, parameters, and usage notes.
Sub
StripMatchingBeginLineVerify
Strip Matching Begin Line Verify
View VB6 signature, parameters, and usage notes.
Sub
StripMatchingEndLineFastVerify
Strip Matching End Line Fast Verify
View VB6 signature, parameters, and usage notes.
Sub
StripMatchingEndLineVerify
Strip Matching End Line Verify
View VB6 signature, parameters, and usage notes.
Sub
StripNilCharacterForwardVerify
Strip Nil Character Forward Verify
View VB6 signature, parameters, and usage notes.
Sub
StripStringVerify
Strip String Verify
View VB6 signature, parameters, and usage notes.
Sub
StrRep
Str Rep
"String Replace" Replace all non-overlapping occurrences of the vFind in vLine with vReplace. Similar to the ReplaceString function except that this subroutine modifies its argument instead of returning a result.
Sub
TranslateStringUsingCharacterPairsVerify
Translate String Using Character Pairs Verify
View VB6 signature, parameters, and usage notes.
Sub
TranslateStringUsingTableVerify
Translate String Using Table Verify
View VB6 signature, parameters, and usage notes.
Sub
TranslateStringVerify
Translate String Verify
View VB6 signature, parameters, and usage notes.
Sub