[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'System' (#rtl)

Reference for unit 'System': Procedures and functions

abs

  

Calculate absolute value

AbstractError

  

Generate an abstract error.

AcquireExceptionObject

  

Obtain a reference to the current exception object

AddExitProc

  

Add an exit procedure to the exit procedure chain.

Addr

  

Return address of a variable

Align

  

Return aligned version of an address

AllocMem

  

Alias for GetMem

AnsiToUtf8

Append

  

Open a file in append mode

arctan

  

Calculate inverse tangent

ArrayStringToPPchar

  

Concert an array of string to an array of null-terminated strings

Assert

  

Check validity of a given condition.

Assign

  

Assign a name to a file

Assigned

  

Check if a pointer is valid

BasicEventCreate

  

Obsolete. Don't use

basiceventdestroy

  

Obsolete. Don't use

basiceventResetEvent

  

Obsolete. Don't use

basiceventSetEvent

  

Obsolete. Don't use

basiceventWaitFor

  

Obsolete. Don't use

BeginThread

  

Start a new thread.

binStr

  

Convert integer to string with binary representation.

BlockRead

  

Read data from an untyped file into memory

BlockWrite

  

Write data from memory to an untyped file

Break

  

Exit current loop construct.

chdir

  

Change current working directory.

chr

  

Convert byte value to character value

Close

  

Close a file

CompareByte

  

Compare 2 memory buffers byte per byte

CompareChar

  

ompare 2 memory buffers character per character

CompareChar0

  

Compare two buffers character by character till a null-character is reached.

CompareDWord

  

Compare 2 memory buffers DWord per DWord

CompareWord

  

Compare 2 memory buffers word per word

Concat

  

Append one string to another.

Continue

  

Continue with next loop cycle.

cos

  

Calculate cosine of angle

Cseg

  

Return code segment

Dec

  

Decrease value of variable

DefaultAnsi2WideMove

DefaultWide2AnsiMove

Delete

  

Delete part of a string.

Dispose

  

Free dynamically allocated memory

DoneCriticalsection

  

Clean up a critical section.

Dseg

  

Return data segment

Dump_Stack

  

Dump stack to the given text file.

DynArraySetLength

EndThread

  

End the current thread.

EnterCriticalsection

  

Enter a critical section

EOF

  

Check for end of file

EOLn

  

Check for end of line

Erase

  

Delete a file from disk

Exclude

  

Exlude element from a set if it is present.

Exit

  

Exit current subroutine.

exp

  

Exponentiate

FilePos

  

Get position in file

FileSize

  

Size of file

FillByte

  

Fill memory region with 8-bit pattern

FillChar

  

Fill memory region with certain character

FillDWord

  

Fill memory region with 32-bit pattern

FillWord

  

Fill memory region with 16-bit pattern

FindResource

Flush

  

Write file buffers to disk

fpc_AbstractErrorIntern

fpc_abs_real

fpc_Addref

fpc_ansistr_append_ansistring

fpc_ansistr_append_char

fpc_ansistr_append_shortstring

fpc_AnsiStr_Assign

fpc_AnsiStr_CheckRange

fpc_AnsiStr_CheckZero

fpc_AnsiStr_Compare

fpc_AnsiStr_Concat

fpc_ansistr_Copy

fpc_AnsiStr_Decr_Ref

fpc_AnsiStr_Float

fpc_AnsiStr_Incr_Ref

fpc_ansistr_int64

fpc_ansistr_qword

fpc_AnsiStr_SetLength

fpc_AnsiStr_sint

fpc_ansistr_to_chararray

fpc_AnsiStr_To_ShortStr

fpc_ansistr_to_widechararray

fpc_AnsiStr_To_WideStr

fpc_AnsiStr_uint

fpc_ansistr_Unique

fpc_arctan_real

fpc_assert

fpc_Catches

fpc_chararray_Float

fpc_chararray_int64

fpc_chararray_qword

fpc_chararray_sint

fpc_CharArray_To_AnsiStr

fpc_chararray_to_shortstr

fpc_CharArray_To_WideStr

fpc_chararray_uint

fpc_char_copy

fpc_Char_To_AnsiStr

fpc_Char_To_WideStr

fpc_class_as_intf

fpc_cos_real

fpc_DecRef

fpc_divbyzero

fpc_div_int64

fpc_div_qword

fpc_do_as

fpc_do_is

fpc_dynarray_clear

fpc_dynarray_copy

fpc_dynarray_decr_ref

fpc_dynarray_high

fpc_dynarray_incr_ref

fpc_dynarray_length

fpc_dynarray_setlength

fpc_dynarray_to_variant

fpc_exp_real

fpc_finalize

fpc_finalize_array

fpc_frac_real

fpc_freemem

fpc_getmem

fpc_get_input

fpc_get_output

fpc_help_constructor

fpc_help_destructor

fpc_help_fail

fpc_Initialize

fpc_InitializeUnits

fpc_interface_to_variant

fpc_intf_as

fpc_intf_assign

fpc_intf_decr_ref

fpc_intf_incr_ref

fpc_int_real

fpc_iocheck

fpc_ln_real

fpc_mod_int64

fpc_mod_qword

fpc_mul_int64

fpc_mul_qword

fpc_overflow

fpc_pchar_length

fpc_PChar_To_AnsiStr

fpc_pchar_to_shortstr

fpc_PChar_To_WideStr

fpc_pi_real

fpc_PopAddrStack

fpc_PopObjectStack

fpc_PopSecondObjectStack

fpc_PushExceptAddr

fpc_PushExceptObj

fpc_pwidechar_length

fpc_PWideChar_To_AnsiStr

fpc_PWideChar_To_ShortStr

fpc_PWideChar_To_WideStr

fpc_Raiseexception

fpc_rangeerror

fpc_ReadLn_End

fpc_Read_End

fpc_Read_Text_AnsiStr

fpc_Read_Text_Char

fpc_Read_Text_Float

fpc_Read_Text_Int64

fpc_Read_Text_PChar_As_Array

fpc_Read_Text_PChar_As_Pointer

fpc_Read_Text_QWord

fpc_Read_Text_ShortStr

fpc_Read_Text_SInt

fpc_Read_Text_UInt

fpc_ReRaise

fpc_reset_typed

fpc_rewrite_typed

fpc_round_real

fpc_set_add_sets

fpc_set_comp_sets

fpc_set_contains_sets

fpc_set_create_element

fpc_set_in_byte

fpc_set_load_small

fpc_set_mul_sets

fpc_set_set_byte

fpc_set_set_range

fpc_set_sub_sets

fpc_set_symdif_sets

fpc_set_unset_byte

fpc_shortstr_append_shortstr

fpc_shortstr_compare

fpc_shortstr_concat

fpc_shortstr_Copy

fpc_ShortStr_Float

fpc_shortstr_int64

fpc_shortstr_qword

fpc_Shortstr_SetLength

fpc_ShortStr_sint

fpc_ShortStr_To_AnsiStr

fpc_shortstr_to_chararray

fpc_shortstr_to_shortstr

fpc_shortstr_to_widechararray

fpc_ShortStr_To_WideStr

fpc_shortstr_uint

fpc_sin_real

fpc_sqrt_real

fpc_sqr_real

fpc_trunc_real

fpc_typed_read

fpc_typed_write

fpc_Val_int64_AnsiStr

fpc_val_int64_shortstr

fpc_Val_int64_WideStr

fpc_Val_qword_AnsiStr

fpc_val_qword_shortstr

fpc_Val_qword_WideStr

fpc_Val_Real_AnsiStr

fpc_Val_Real_ShortStr

fpc_Val_Real_WideStr

fpc_Val_SInt_AnsiStr

fpc_Val_SInt_ShortStr

fpc_Val_SInt_WideStr

fpc_Val_UInt_AnsiStr

fpc_Val_UInt_Shortstr

fpc_Val_UInt_WideStr

fpc_vararray_get

fpc_vararray_put

fpc_variant_copy

fpc_variant_to_dynarray

fpc_variant_to_interface

fpc_WideCharArray_To_AnsiStr

fpc_WideCharArray_To_ShortStr

fpc_WideCharArray_To_WideStr

fpc_WideStr_Assign

fpc_WideStr_CheckRange

fpc_WideStr_CheckZero

fpc_WideStr_Compare

fpc_WideStr_Concat

fpc_widestr_Copy

fpc_WideStr_Decr_Ref

fpc_WideStr_Float

fpc_WideStr_Incr_Ref

fpc_widestr_int64

fpc_widestr_qword

fpc_WideStr_SetLength

fpc_WideStr_sint

fpc_WideStr_To_AnsiStr

fpc_widestr_to_chararray

fpc_WideStr_To_ShortStr

fpc_widestr_to_widechararray

fpc_WideStr_uint

fpc_widestr_Unique

fpc_Writeln_End

fpc_Write_End

fpc_Write_Text_AnsiStr

fpc_Write_Text_Boolean

fpc_Write_Text_Char

fpc_Write_Text_Float

fpc_write_text_int64

fpc_Write_Text_Pchar_as_Array

fpc_Write_Text_PChar_As_Pointer

fpc_write_text_qword

fpc_Write_Text_ShortStr

fpc_Write_Text_SInt

fpc_Write_Text_UInt

fpc_write_text_variant

fpc_Write_Text_WideChar

fpc_Write_Text_WideStr

frac

  

Return fractional part of floating point value.

Freemem

  

Release allocated memory

Freememory

  

Alias for FreeMem

FreeResource

GetCurrentThreadId

  

Return the id of the currently running thread.

getdir

  

Return the current directory

GetFPCHeapStatus

GetHeapStatus

  

Return the memory manager heap status.

GetMem

  

Allocate new memory on the heap

GetMemory

  

Alias for GetMem

GetMemoryManager

  

Return current memory manager

GetProcessID

  

Get the current process ID

GetThreadID

  

Get the current Thread ID.

GetThreadManager

  

Return the current thread manager

GetVariantManager

  

Return the current variant manager.

GetWideStringManager

get_caller_addr

  

Return the address of the caller.

get_caller_frame

  

Return the frame pointer of the caller

get_frame

  

Return the current frame

halt

  

Stop program execution.

hexStr

  

Convert integer value to string with hexadecimal representation.

hi

  

Return high byte/word of value.

High

  

Return highest index of open array or enumerated

HINSTANCE

Inc

  

Increase value of integer variable

Include

  

Include element in set if it was not yet present.

IndexByte

  

Search for a byte in a memory range.

IndexChar

  

Search for a character in a memory range.

IndexChar0

  

Return index of a character in null-terminated array of char.

IndexDWord

  

Search for a DWord value in a memory range.

Indexword

  

Search for a WORD value in a memory range.

InitCriticalSection

  

Initialize a critical section

InitThread

  

Initialize a thread

InitThreadVars

Insert

  

Insert one string in another.

int

  

Calculate integer part of floating point value.

IOResult

  

Return result of last file IO operation

IsMemoryManagerSet

  

Is the memory manager set

IsVariantManagerSet

  

Determine if variant manager is currently set.

KillThread

  

Kill a running thread

LeaveCriticalsection

  

Leave a critical section

ln

  

Calculate logarithm

lo

  

Return low byte/word of value.

LoadResource

LockResource

longjmp

  

Jump to address.

Low

  

Return lowest index of open array or enumerated

lowerCase

  

Return lowercase version of a string.

MemSize

  

Return the size of a memory block.

mkdir

  

Create a new directory.

Move

  

Move data from one location in memory to another

MoveChar0

  

Move data till first zero character

New

  

Dynamically allocate memory for variable

OctStr

  

Convert integer to a string with octal representation.

odd

  

Is a value odd or even ?

Ofs

  

Return offset of a variable.

operator *(variant, variant): variant

operator **(variant, variant): variant

operator +(variant, variant): variant

operator -(variant): variant

operator -(variant, variant): variant

operator /(variant, variant): variant

operator :=(ansistring): olevariant

operator :=(ansistring): variant

operator :=(Boolean): olevariant

operator :=(Boolean): variant

operator :=(Byte): olevariant

operator :=(Byte): variant

operator :=(Char): olevariant

operator :=(Char): variant

operator :=(currency): olevariant

operator :=(currency): variant

operator :=(double): olevariant

operator :=(double): variant

operator :=(DWord): olevariant

operator :=(DWord): variant

operator :=(Error): olevariant

operator :=(Error): variant

operator :=(Int64): olevariant

operator :=(Int64): variant

operator :=(longbool): olevariant

operator :=(longbool): variant

operator :=(LongInt): olevariant

operator :=(LongInt): variant

operator :=(olevariant): ansistring

operator :=(olevariant): Boolean

operator :=(olevariant): Byte

operator :=(olevariant): Char

operator :=(olevariant): currency

operator :=(olevariant): double

operator :=(olevariant): DWord

operator :=(olevariant): Error

operator :=(olevariant): Int64

operator :=(olevariant): longbool

operator :=(olevariant): LongInt

operator :=(olevariant): qword

operator :=(olevariant): ShortInt

operator :=(olevariant): shortstring

operator :=(olevariant): SmallInt

operator :=(olevariant): TDateTime

operator :=(olevariant): variant

operator :=(olevariant): widechar

operator :=(olevariant): widestring

operator :=(olevariant): Word

operator :=(olevariant): wordbool

operator :=(qword): olevariant

operator :=(qword): variant

operator :=(real48): double

operator :=(ShortInt): olevariant

operator :=(ShortInt): variant

operator :=(shortstring): olevariant

operator :=(shortstring): variant

operator :=(SmallInt): olevariant

operator :=(SmallInt): variant

operator :=(TDateTime): olevariant

operator :=(TDateTime): variant

operator :=(variant): ansistring

operator :=(variant): Boolean

operator :=(variant): Byte

operator :=(variant): Char

operator :=(variant): currency

operator :=(variant): double

operator :=(variant): DWord

operator :=(variant): Error

operator :=(variant): Int64

operator :=(variant): longbool

operator :=(variant): LongInt

operator :=(variant): olevariant

operator :=(variant): qword

operator :=(variant): ShortInt

operator :=(variant): shortstring

operator :=(variant): SmallInt

operator :=(variant): TDateTime

operator :=(variant): widechar

operator :=(variant): widestring

operator :=(variant): Word

operator :=(variant): wordbool

operator :=(widechar): olevariant

operator :=(widechar): variant

operator :=(widestring): olevariant

operator :=(widestring): variant

operator :=(Word): olevariant

operator :=(Word): variant

operator :=(wordbool): olevariant

operator :=(wordbool): variant

operator <(variant, variant): Boolean

operator <=(variant, variant): Boolean

operator =(variant, variant): Boolean

operator >(variant, variant): Boolean

operator >=(variant, variant): Boolean

operator and(variant, variant): variant

operator div(variant, variant): variant

operator mod(variant, variant): variant

operator not(variant): variant

operator or(variant, variant): variant

operator shl(variant, variant): variant

operator shr(variant, variant): variant

operator xor(variant, variant): variant

Ord

  

Return ordinal value of an ordinal type.

Paramcount

  

Return number of command-line parameters passed to the program.

ParamStr

  

Return value of a command-line argument.

pi

  

Return the value of PI.

Pos

  

Search for substring in a string.

Pred

  

Return previous element for an ordinal type.

prefetch

  

Prefetch a memory location

ptr

  

Combine segment and offset to pointer

RaiseList

  

List of currently raised exceptions.

Random

  

Generate random number

Randomize

  

Initialize random number generator

Read

  

Read from a text file into variable

ReadLn

  

Read from a text file into variable and goto next line

Real2Double

  

Convert Turbo Pascal style real to double.

ReAllocMem

  

Re-allocate memory on the heap

ReAllocMemory

  

Alias for ReAllocMem

ReleaseExceptionObject

  

Decrease the reference count of the current exception object.

Rename

  

Rename file on disk

Reset

  

Open file for reading

ResumeThread

  

Resume a suspended thread.

Rewrite

  

Open file for writing

rmdir

  

Remove directory when empty.

round

  

Round floating point value to nearest integer number.

RTLEventCreate

  

Create a new RTL event

RTLeventdestroy

  

Destroy a RTL Event

RTLeventResetEvent

  

Reset an event

RTLeventSetEvent

  

Notify threads of the event.

RTLeventStartWait

  

Prepare the event for waiting.

RTLeventsync

  

Obsolete. Don't use

RTLeventWaitFor

  

Wait for an event.

RunError

  

Generate a run-time error.

Seek

  

Set file position

SeekEOF

  

Set file position to end of file

SeekEOLn

  

Set file position to end of line

Seg

  

Return segment

Setjmp

  

Save current execution point.

SetMemoryManager

  

Set a memory manager

SetMemoryMutexManager

  

Procedure to set the mutex manager.

SetNoThreadManager

  

Clear the threadmanager

SetString

  

Set length of a string and copy buffer.

SetTextBuf

  

Set size of text file internal buffer

SetTextLineEnding

  

Set the end-of-line character for the given text file.

SetThreadManager

  

Set the thread manager, optionally return the current thread manager.

SetVariantManager

  

Set the current variant manager.

SetWideStringManager

sin

  

Calculate sine of angle

SizeOf

  

Return size of a variable or type.

SizeofResource

Space

  

Return a string of spaces

Sptr

  

Return current stack pointer

sqr

  

Calculate the square of a value.

sqrt

  

Calculate the square root of a value

Sseg

  

Return stack segment register value.

Str

  

Convert a numerical value to a string.

StringOfChar

  

Return a string consisting of 1 character repeated N times.

StringToPPChar

  

Split string in list of null-terminated strings

StringToWideChar

strlen

  

Length of a null-terminated string.

strpas

  

Convert a null-terminated string to a shortstring.

Succ

  

Return next element of ordinal type.

SuspendThread

  

Suspend a running thread.

Swap

  

Swap high and low bytes/words of a variable

SysAllocMem

  

System memory manager: Allocate memory

SysAssert

  

Standard Assert failure implementation

SysBackTraceStr

  

Format an address suitable for inclusion in a backtrace

SysFreemem

  

System memory manager free routine.

SysFreememSize

  

System memory manager free routine.

SysGetFPCHeapStatus

SysGetHeapStatus

  

System implementation of GetHeapStatus

SysGetmem

  

System memory manager memory allocator.

SysInitExceptions

  

Initialize exceptions.

SysInitStdIO

  

Initialize standard input and output.

SysMemSize

  

System memory manager: free size.

SysReAllocMem

  

System memory manager: Reallocate memory

SysResetFPU

  

Reset the floating point unit.

SysTryResizeMem

  

System memory manager: attempt to resize memory.

ThreadGetPriority

  

Return the priority of a thread.

ThreadSetPriority

  

Set the priority of a thread.

ThreadSwitch

  

Signal possibility of thread switch

trunc

  

Truncate a floating point value.

Truncate

  

Truncate the file at position

UCS4StringToWideString

UnicodeToUtf8

UniqueString

  

Make sure reference count of string is 1

UnlockResource

upCase

  

Convert a string to all uppercase.

UTF8Decode

UTF8Encode

Utf8ToAnsi

Utf8ToUnicode

Val

  

Calculate numerical value of a string.

VarArrayRedim

  

Redimension a variant array

VarCast

WaitForThreadTerminate

  

Wait for a thread to terminate.

WideCharLenToString

WideCharLenToStrVar

WideCharToString

WideCharToStrVar

WideStringToUCS4String

Write

  

Write variable to a text file

WriteLn

  

Write variable to a text file and append newline