[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'tiUtils' (#tiopf)

Reference for unit 'tiUtils': Procedures and functions

Cr

  

Return a string with ACount #13 characters

CrLf

  

Return a string with ACount #13+#10 characters

Lf

  

Return a string with ACount #10 characters

Tab

  

Returns a string with ACount #9 characters

tiAddEllipsis

  

Truncate a string to piWidth length and add '...'

tiAddEXEPath

  

Add the EXE path to a file name

tiAddSeparators

tiAddTrailingAnd

  

If pStrValue is not '', add a trailing ' and '

tiAddTrailingComma

  

If pStrValue is not '', add a trailing ', '

tiAddTrailingOr

  

If pStrValue is not '', add a trailing ' or '

tiAddTrailingSlash

tiAddTrailingSpace

  

If pStr is not '', add a trailing ' '

tiAddTrailingValue

  

If ALine is not '', add the trailing value AValue

tiAppendStringToFile

tiAppendStringToStream

  

Append a string to a stream

tiApplicationName

tiAusFinancialYearDayCount

tiAusFinancialYearToString

tiBitToString

tiBooleanToStr

tiBoolToStr

tiCheckFileCanBeCreated

tiCheckSum

  

Returns the checksum of a string of numbers

tiCIStrTran

  

Scan the string pStrValue, and replace any characters pStrDel with pStrIns (Case insensitive)

tiCompareDateTimeToMilliSecond

tiConsoleAppPause

  

Writes "Press ENTER to continue" and waits for CrLf in a console application

tiConvertToValidFileName

tiCopyFile

  

Copy a file from AFileFrom to AFileTo

tiCopyStream

tiCreateGUIDString

tiDateAsIntlDateDisp

tiDateAsXMLString

tiDateTimeAsIntlDateDisp

tiDateTimeAsIntlDateStor

tiDateTimeAsXMLString

tiDateTimeToStr

tiDateToAusFinancialYear

tiDateToPreviousWeekDayDate

tiDateToStr

tiDateWithinRange

tiDecimalRoundDbl

tiDecimalRoundExt

tiDecimalRoundSgl

tiDecodeDateTimeToNearestMilliSecond

tiDecodeWordBase26

tiDeleteFile

  

Delete a file, but without BDS2006 function inlining warning

tiDeleteFiles

  

Delete all the files that match AWildCard found in ADirectory

tiDeleteOldFiles

tiDirectoryTreeToStringList

  

Copy all the directories, starting at AStartDir to the StringList ADirList

tiElapsedDHMS

tiEnclose

tiEncodeWordBase26

tiExpandURI

tiExtractDirToLevel

tiExtractExtension

  

Extract a file's extension. Similar to Delphi's ExtractFileExt except the '.' is not extracted.

tiExtractFileNameOnly

  

Extract the file name part of a file name (ie, remove the path and extension)

tiFilesToStringList

  

Copy file names starting at AStartDir to the StringList ADirList

tiFileToStream

tiFileToString

tiFixPathDelim

  

Fixes the path separator for the *Unix platform. See implementation for more details.

tiFloatToCommaStr

tiFloatToCurrency

tiFloatToCurrencyHide0

tiFloatToStr

tiForceDirectories

  

Similar to Delphi's ForceDirectory

tiForceDirectories1

tiForceRemoveDir

tiGetAppDataDirPrivate

tiGetAppDataDirPublic

tiGetCommonAppDataDir

tiGetComputerName

tiGetCurrentUserPersonalDir

tiGetEXEPath

  

What is the path of the current EXE?

tiGetFileSize

tiGetModuleFileName

tiGetTempDir

tiGetTempFile

tiGetTickCount

tiGetUserLocalAppDataDir

tiGetUserName

tiHasRTTI

  

Does AObject or AClass have RTTI enabled.

tiHasSubDirectory

  

Does a directory have any subdirectories?

tiHTMLEncode

tiIf

tiIncludesTime

tiInsertStringToStream

  

Insert a string to a stream

tiInt32ToBinString

tiIntlDateDispAsDateTime

tiIntlDateStorAsDateTime

tiIntToCommaStr

tiIntToStrHide0

tiIsBitSet

  

Is a particular bit set?

tiIsClassOfType

tiIsDateTimeNearEnough

tiIsEMailAddressValid

  

Returns true if the email address is valid

tiIsFileNameCharValid

tiIsFileNameValid

  

Returns true if the file name is valid

tiIsFileReadOnly

tiIsFileURI

  

Check for file based URI.

tiIsNearEnough

tiIsVariantOfType

tiJoinPath

tiLineEnd

tiLocateExtension

  

Find the position of the file extension.

tiMixedCase

  

Convert a string into mized case using a simple algorithm

tiMoveFile

  

Move a file from AFromFileName to AToFileName

tiNextInterval

tiNormalizeStr

  

Normalize the string by replacing all repeated Spaces, Tabs and NewLines chars with a single space.

tiNumToken

  

Count the number of blocks of text in AValue separated by AToken

tiOverlapsTime

tiPad0

  

Pad pStrValue with zeros on the LHS to make it pIntLen long

tiPadC

  

Pad pStrValue with spaces on both sides to make it pIntLen long

tiPadL

  

Pad pStrValue with spaces on the LHS to make it pIntLen long

tiPadR

  

Pad pStrValue with spaces on the RHS to make it pIntLen long

tiPosR

  

Return the first position of pStrValue in pStrTarget from the right

tiQuote

tiReadFileDate

  

Read a file's date with correction for the file's locale

tiReadFileDateSize

  

Read a file's date and size

tiReadFileSize

  

Read a file's size

tiRemoveCrLf

  

Remove Cr & LF characters

tiRemoveDirectory

tiRemoveDrive

tiRemoveExtension

  

Remove the extension from a filename. Similar to Delphi's ChangeFileExt() except the '.' is managed.

tiRemoveLeading0

  

Remove any leading zeros from a string

tiRemoveLeadingSlash

tiRemoveTrailingSlash

tiRemoveTrailingValue

  

If the last character of pStrLine is pStrValue, then remove it

tiReplaceFileNameReservedChars

tiReplicate

  

Replicate the string AValue to return a string ARepCount long

tiRound

tiRoundDateTimeToNearestMilliSecond

tiRoundDateToNextMinute

tiRoundDateToPreviousMinute

tiRunEXEAndWait

tiSafeDiv

tiSetFileDate

  

Set a files date and time

tiSetFileReadOnly

tiSetPrecision

tiSpace

  

Return a string of spaces pIntLen long

tiStreamToFile

tiStreamToString

  

Read the entire contents of a stream as a string

tiStringToFile

  

Write the string in AText to a file named AFileName

tiStringToStream

  

Write a string into a stream overwriting all contents

tiStripIntPrefix

tiStripNonAlphaCharacters

tiStrPos

  

Replacement for Delphi's StrPos, but much faster. Not for FPC though!

tiStrToBool

tiStrToFloat

tiStrToInt

tiStrToIntPrefix

tiStrTran

  

Scan the string pStrValue, and replace any characters pStrDel with pStrIns (Case sensitive)

tiStrTran1

  

Scan the string pStrValue, and replace any characters pStrDel with pStrIns (Case sensitive)

tiSubStr

  

Extract a sub string within defined delimiters

tiSwapExt

  

Change a file's extension.

tiTestFilesIdentical

tiTestStreamsIdentical

tiTimeToStr

tiToken

  

Extract the APos(th) block of text in AValue, separated by AToken

tiTrim

tiTrimL

  

Trim all characters before and including psTrim from psString

tiTrimR

  

Trim all characters after and including psTrim from psString

tiTrimTrailingWhiteSpace

  

Remove all the trailing white space characters (#32, #10, #13) from the end of a string

tiURIDecode

tiURIDecodeAll

tiURIEncode

tiVariantArrayToString

tiVariantAsStringDef

tiWeekNumber

tiWildcardMatch

  

Does the wildcard pPattern occur in the string pSource?

tiWrap

tiXCopy

  

Copy one directory tree to another

tiXMLStringToDateTime

tiYear

tiYearToEndAusFinancialYear

tiYearToStartAusFinancialYear

_tiFloatToStr


Documentation generated on: 2017-08-16