|
Previous Top Next |
The string class has some very powerful string methods, including methods to read an entire file into a string buffer and write a string buffer to a file. It can also parse a string into lines or into words.
ITStringClass Class(ITUtilityClass),TYPE,Module('ITStringClass.clw'),Link('ITStringClass',_ITUtilLinkMode_),DLL(_ITUtilDllMode_)
BufferSize Long
FileString &String
Lines &ITLinesQ
ResStr &String,PRIVATE
TempS &String,PRIVATE
Words &ITWordQ
WordCounter Long
HTMLString &String
SplitStringProgressFEQ Long !! Optional FEQ for a progress control to show progress when splitting large strings
DepunctuationString String(255)
AddIntoParentheses Procedure(String pOriginal, String pAddition, <*CString pSeparator>),String
AddLine Procedure(String pLine, Byte pNew=False)
AllocateFileString Procedure(Long pBytesToAllocate)
AppendToLine Procedure(String pLine)
CombineFieldName Procedure(String pFieldName, String pPrefix,<String pTableName>),String
CompactString Procedure(String pOriginal, Byte pUpperCase=False),String
CompareAndExtract Procedure(String pOriginal, String pSearchFor),String
DebugLines Procedure
DepunctuateString Procedure(*String pS, Byte pAllowDigits=False)
DisposeFileString Procedure
DumpLinesInQ Procedure(Queue pQ, *? pLineField, <*? pLineLenField>)
FileToString Procedure(String pFileName),String
FreeString Procedure(Byte pWords=0)
GetFieldPrefix Procedure(String pFieldName),String
GetLine Procedure(Long pIndex),String
GetWord Procedure(Long pIndex),String
MatchParenthesis Procedure(String pS),Short
PadString Procedure(String pStr, String pPad, Short pLen, Byte pStart=0),String
ReadFileToString Procedure(String pFileName),Long,PROC
SetDepunctuationString Procedure(String pDepunct)
SetLineValue Procedure(String pLine)
SetSplitStringProgress Procedure(Long pProgressFEQ)
SplitFieldName Procedure(String pFieldName, <*String pPrefix>),String
SplitString Procedure(String pStr,String pDelimiter),Long,PROC
StringToLines Procedure(String pS),Long,PROC
StringToWords Procedure(String pS, Byte pCount=True, Byte pCaseSensitive=False),Long,PROC
StripParenthesis Procedure(String pTxt, <String pParLeft>,<String pParRight>),String
UseEither Procedure(String pS1, String pS2, Byte pFavourite=1),String
WriteQToFile Procedure(String pFileName)
WriteStringToFile Procedure(String pFileName, String pContent),Long,PROC
Construct Procedure
Destruct Procedure
End