[next] [prev] [prev-tail] [tail] [up]

## Chapter 22
The SYSUTILS unit.

This chapter describes the sysutils unit. The sysutils unit was largely written by Gertjan Schouten, and completed by Michaël Van Canneyt. It aims to be compatible to the Delphi sysutils unit, but in contrast with the latter, it is designed to work on multiple platforms. It is implemented on all supported platforms.

This chapter starts out with a definition of all types and constants that are defined, followed by an overview of functions grouped by functionality, and lastly the complete explanation of each function.

22.1 Constants and types
22.2 Function list by category
String functions
Formatting strings
File input/output routines
File handling routines
Date/time routines
22.3 Miscellaneous conversion routines
22.4 Date and time functions
Date and time formatting characters
TDateTime
Date
DateTimeToFileDate
DateTimeToStr
DateTimeToString
DateTimeToSystemTime
DateTimeToTimeStamp
DateToStr
DayOfWeek
DecodeDate
DecodeTime
EncodeDate
EncodeTime
FileDateToDateTime
FormatDateTime
IncMonth
IsLeapYear
MSecsToTimeStamp
Now
StrToDate
StrToDateTime
StrToTime
SystemTimeToDateTime
Time
TimeStampToDateTime
TimeStampToMSecs
TimeToStr
22.5 Disk functions
AddDisk (Linux only)
CreateDir
DiskFree
DiskSize
GetCurrentDir
RemoveDir
SetCurrentDir
22.6 File handling functions
ChangeFileExt
DeleteFile
DoDirSeparators
ExpandFileName
ExpandUNCFileName
ExtractFileDir
ExtractFileDrive
ExtractFileExt
ExtractFileName
ExtractFilePath
ExtractRelativePath
FileAge
FileClose
FileCreate
FileExists
FileGetAttr
FileGetDate
FileOpen
FileRead
FileSearch
FileSeek
FileSetAttr (Not on Linux)
FileSetDate (Not on Linux)
FileTruncate
FileWrite
FindClose
FindFirst
FindNext
GetDirs
RenameFile
SetDirSeparators
22.7 PChar functions
Introduction
StrAlloc
StrBufSize
StrDispose
StrPCopy
StrPLCopy
StrPas
22.8 String handling functions
AdjustLineBreaks
AnsiCompareStr
AnsiCompareText
AnsiExtractQuotedStr
AnsiLastChar
AnsiLowerCase
AnsiQuotedStr
AnsiStrComp
AnsiStrIComp
AnsiStrLastChar
AnsiStrLComp
AnsiStrLIComp
AnsiStrLower
AnsiStrUpper
AnsiUpperCase
AppendStr
AssignStr
BCDToInt
CompareMem
CompareStr
CompareText
DisposeStr
FloatToStr
FloatToStrF
FloatToText
FmtStr
Format
FormatBuf
FormatFloat
IntToHex
IntToStr
IsValidIdent
LastDelimiter
LeftStr
LoadStr
LowerCase
NewStr
QuotedStr
RightStr
StrFmt
StrLFmt
StrToFloat
StrToInt
StrToIntDef
TextToFloat
Trim
TrimLeft
TrimRight
UpperCase

[next] [prev] [prev-tail] [front] [up]