www.icetips.com  Icetips Utilities Documentation 1/25/2016    

String Class Overview

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. 

 

Check out the short tutorial at the end of this chapter.

 

ITStringClass            Class(ITUtilityClass),TYPE,Module('ITStringClass.clw'),Link('ITStringClass',_ITUtilLinkMode_),DLL(_ITUtilDllMode_)

BufferSize                 Long

FileString                 &String

Lines                      &ITLinesQ

CSVFields                  &ITLinesQ

ResStr                     &String,PRIVATE

TempS                      &String,PRIVATE

Words                      &ITWordQ

Found                      &tITFoundQ

WordCounter                Long

HTMLString                 &String

SplitStringProgressFEQ     Long

DepunctuationString        String(255)

TreatEmptyLastItemAsLine   Byte

SkipEOLOnLastLine          BYTE

StringBetween              &STRING,PROTECTED

SetStringEnd               LONG

SetStringFound             LONG

 

AddIntoParentheses         PROCEDURE (String pOriginal, String pAddition, <*CString pSeparator>),String

AddLine                    PROCEDURE (String pLine, Byte pNew=False)

AllocateFileString         PROCEDURE (Long pBytesToAllocate)  ! PRIVATE

AllocateLineString         PROCEDURE (Long pBytesToAllocate) ! PRIVATE

AllocateStringBetween      PROCEDURE (Long pBytesToAllocate) ! PRIVATE

AllocateXMLString          PROCEDURE (LONG pBytesToAllocate) ! PRIVATE

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

DisposeLineString          PROCEDURE

DumpLinesInQ               PROCEDURE (Queue pQ, *? pLineField, <*? pLineLenField>)

FileToLines                PROCEDURE (String pFileName, <String pDel>),Long,PROC

FileToString               PROCEDURE (String pFileName),String

FindInString               PROCEDURE (String pNeedle, String pHaystack, Byte pCaseSensitive=False, Byte pSave=True),Long

FreeLines                  PROCEDURE

FreeString                 PROCEDURE (Byte pWords=0)

GetFieldPrefix             PROCEDURE (String pFieldName),String

GetLine                    PROCEDURE (Long pIndex),String

GetStringBetween           PROCEDURE (STRING pBegin, STRING pEnd, STRING pSearchString,<Long pBeginPos>, <Long pEndBeginPos>, BYTE pCaseSensitive=FALSE),STRING

GetWord                    PROCEDURE (Long pIndex),String

InsertString              PROCEDURE (STRING pStringToAdd, STRING pStringToAddTo, LONG pPosition),STRING

LinesToFile                PROCEDURE (String pFileName, <String pEOL>),LONG,PROC

LinesToString              PROCEDURE (String pEOL),LONG

MatchParenthesis           PROCEDURE (String pS),Short

PadString                  PROCEDURE (String pStr, String pPad, Short pLen, Byte pStart=0),String

ParseDelimtedLine          PROCEDURE (String pLine, String pDelimiter, Byte pRemoveQuotes=True,<String pQuote>),Long,PROC

ParseCSVLine               PROCEDURE (STRING pLine, Byte pStringsAreQuoted=TRUE,<String pDelimiter>, <STRING pQuoteChar>),LONG

ReadFileToQ                PROCEDURE (String pFileName),Long,PROC

ReadFileToString           PROCEDURE (String pFileName),Long,PROC

RemoveHTML                 PROCEDURE (String pHTMLString, Byte pForceSpace=True),String

SetDepunctuationString     PROCEDURE (String pDepunct)

SetLineValue               PROCEDURE (String pLine)

SetSplitStringProgress     PROCEDURE (Long pProgressFEQ)

SetStringBetween           PROCEDURE (STRING pBegin, STRING pEnd, STRING pSearchString, STRING pInsertString, BYTE pHandling, <Long pBeginPos>, <Long pEndBeginPos>, BYTE pCaseSensitive=FALSE),STRING

SplitFieldName             PROCEDURE (String pFieldName, <*String pPrefix>),String

SplitString                PROCEDURE (String pStr,String pDelimiter),Long,PROC

StringFromLines            PROCEDURE (),STRING

StringToFile               PROCEDURE (String pFileName, String pContent, Byte pAppend=False),Long,PROC

StringToLines              PROCEDURE (String pS, <String pDel>),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, Byte pAppend=False),Long,PROC

 

Construct                  PROCEDURE

Destruct                   PROCEDURE

                        End



Direct link to this page: http://www.icetips.com/manuals/utilities/stringclass_overview.htm