?»??»?unit fr_AddinFunc; interface {$I fr.inc} uses SysUtils, Classes, fr_class, FR_Utils,fr_const; type TfrCharSet = set of Char; TfrAddinFunctionLibrary = class(TfrFunctionLibrary) public constructor Create; override; procedure DoFunction(FNo: Integer; p1, p2, p3: Variant; var val: Variant); override; end; var frFFofratDate: string; implementation const SfrWordPosition = 'WordPosition(,,)||Returns position of word number in the string . is the list of word delimiters.'; SfrExtractWord = 'ExtractWord(,,)|Returns word number from the string . is the list of word delimiters.'; SfrWordCount = 'WordCount(,)|Returns number of words in the string . is the list of word delimiters.'; SfrIsWordPresent = 'IsWordPresent(,,)|Detefrines is word present in the string . is the list of word delimiters.'; SfrNPos = 'NPos(,,)|Returns position of -th substring inclusion in the string .'; SfrReplaceStr = 'ReplaceStr(,,)|Replaces all inclusions of string to the string in the string and returns the result.'; SfrReplicate = 'Replicate(,)|Returns the string with length that consists of symbols .'; SfrPadRight = 'PadRight(,,)|Adds symbols to end of the string to make it as long as stated in the parameter and returns result string.'; SfrPadLeft = 'PadLeft(,,)|Adds symbols to begin of the string to make it as long as stated in the parameter and returns result string.'; SfrPadCenter = 'PadCenter(,,)|Adds symbols to begin and end of the string to make it as long as stated in the parameter and returns result string.'; SfrEndPos = 'EndPos(,)|Returns position of substring in the string starting at the end of the string.'; SfrCompareStr = 'CompareStr(,)|Compares two strings. Returns the position where begins the difference between the strings or 0 if strings are equivalent.'; SfrLeftCopy = 'LeftCopy(,)|Copies number of symbols from the string starting at the begin of the string.'; SfrRightCopy = 'RightCopy(,)|Copies number of symbols from the string starting at the end of the string.'; SfrDelete = 'Delete(,,)|Deletes symbols starting at position in the given string and returns the result.'; SfrInsert = 'Insert(,,)|Inserts substring into string starting at position and returns the result.'; SfrTrimRight = 'TrimRight()|Trims all right spaces from the string and returns the result.'; SfrTrimLeft = 'TrimLeft()|Trims all left spaces from the string and returns the result.'; SfrDateToStr = 'DATETOSTR()|Converts date to string and returns the result.'; SfrTimeToStr = 'TIMETOSTR(