[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit '_crw_crwapi' (#crwlib)

# ISysApi

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

## Declaration

Source position: _crw_crwapi.pas line 1516

`type ISysApi = interface(IPluginApi)`
`function RedirectStdIn();`
`function RedirectStdOut();`
`function IncPtr();`
`function DecPtr();`
`procedure SafeMove();`
`procedure SafeFillChar();`
`function AdjustBufferSize();`
`function Allocate();`
`procedure Deallocate();`
`function AllocSize();`
`function Reallocate();`
`function isNAN();`
`function isINF();`
`function _NaN;`
`function _PlusInf;`
`function _MinusInf;`
`function FindZero();`
`function FindMin();`
`function Quanc8();`
`function MachEps;`
`function NativeTimeNow;`
`function MSecNow;`
`function AssignNativeTime();`
`function MSecToNativeTime();`
`function NativeTimeToMSec();`
`function DateTimeToMSec();`
`procedure MSecToDateTime();`
`function GetDateStr();`
`function GetTimeStr();`
`function StrLen();`
`function StrLLen();`
`function StrEnd();`
`function StrCopy();`
`function StrECopy();`
`function StrLCopy();`
`function StrPCopy();`
`function StrCat();`
`function StrPCat();`
`function StrLCat();`
`function StrComp();`
`function StrIComp();`
`function StrLComp();`
`function StrLIComp();`
`function StrScan();`
`function StrRScan();`
`function StrUpper();`
`function StrLower();`
`function StrPos();`
`function StrPas();`
`function StrPass();`
`function StrMove();`
`function GetTextNumLines();`
`function UpCase();`
`function LoCase();`
`function LoCaseStr();`
`function UpCaseStr();`
`function WinToDos();`
`function DosToWin();`
`function WinToDosStr();`
`function DosToWinStr();`
`function WinToDosLongStr();`
`function DosToWinLongStr();`
`function WinToKoi();`
`function KoiToWin();`
`function WinToKoiStr();`
`function KoiToWinStr();`
`function WinToKoiLongStr();`
`function KoiToWinLongStr();`
`function Format();`
`function Str2CharSet();`
`function CharSet2Str();`
`function RightStr();`
`function LeftStr();`
`function CharStr();`
`function Pad();`
`function LeftPad();`
`function CenterStr();`
`function TrimLeadChars();`
`function TrimTrailChars();`
`function TrimChars();`
`function TrimLead();`
`function TrimTrail();`
`function Trim();`
`function UnifyAlias();`
`function UnifyFileAlias();`
`function UnifySection();`
`procedure WordWrap();`
`function ReplaceString();`
`function ReplaceAlignStr();`
`function WordCount();`
`function ExtractWord();`
`function WordIndex();`
`function ExtractInt();`
`function ExtractReal();`
`function BinB();`
`function BinW();`
`function BinL();`
`function OctB();`
`function OctW();`
`function OctL();`
`function HexB();`
`function HexW();`
`function HexL();`
`function Long2Str();`
`function Real2Str();`
`function d2s();`
`function f2s();`
`procedure f2sFormat();`
`procedure f2sFormatOld;`
`function FormatG();`
`function atoi();`
`function atof();`
`function Str2Int();`
`function Str2Word();`
`function Str2Long();`
`function Str2Real();`
`function SmartStr2Real();`
`function StrBin2Long();`
`function StrOct2Long();`
`function StrHex2Long();`
`function ScanVar();`
`function IsEmptyStr();`
`function LastDelimiter();`
`function AddBackSlash();`
`function DropBackSlash();`
`function IsWildCard();`
`function IsRelativePath();`
`function HasExtension();`
`function DefaultExtension();`
`function DefaultPath();`
`function ForceExtension();`
`function ForcePath();`
`function ExtractFileNameExt();`
`function ExtractFileName();`
`function ExtractFileExt();`
`function ExtractFilePath();`
`function ExtractFileDrive();`
`function ExtractFilterExt();`
`function FExpand();`
`function MakeRelativePath();`
`function RusEng();`
`function SysErrorMessage();`
`function GetFileAttr();`
`function SetFileAttr();`
`function GetFileSize();`
`function GetFileDate();`
`function FileExists();`
`function DirExists();`
`function FileErase();`
`function FileCopy();`
`function FileRename();`
`function GetCurrDir;`
`function SetCurrDir();`
`function MkDir();`
`function RmDir();`
`function ReadFileToBuffer();`
`function WriteBufferToFile();`
`procedure ForEachFile();`
`function ForEachTextLine();`
`procedure DebugOut();`
`function DebugOutGetFile();`
`function DebugOutGetErrors();`
`procedure DebugOutOpenFile();`
`function ExtractTextSection();`
`function ExtractWordList();`
`function ExtractEnumWordList();`
`function ReadIniFileVariable();`
`function ReadIniFilePath();`
`function ProgName;`
`function HomeDir;`
`function StartupPath;`
`function StartAtDir;`
`function SysIniFile;`
`procedure GoHome;`
`function WindowsDir;`
`function WindowsSystemDir;`
`function WindowsTempDir;`
`function TempDir;`
`function CreateTempFile();`
`function ReadRegistryString();`
`function GetWindowsShellFolder();`
`function GetWindowsShellDesktop;`
`function GetWindowsShellPrograms;`
`function GetWindowsShellStartup;`
`function GetWindowsShellStartMenu;`
`function GetWindowsShellFavorites;`
`function GetWindowsShellFonts;`
`function GetWindowsShellHistory;`
`function GetWindowsShellPersonal;`
`function GetWindowsShellSendTo;`
`procedure CreateFileLink();`
`function Point2I();`
`function Point2D();`
`function Point3D();`
`function Rect2I();`
`function Rect2D();`
`function IsEqualPoint2I();`
`function IsEqualPoint2D();`
`function IsEqualRect2I();`
`function IsEqualRect2D();`
`function IsEmptyRect2I();`
`function IsEmptyRect2D();`
`function Rect2IContainsPoint();`
`function Rect2DContainsPoint();`
`function Rect2IIntersection();`
`function Rect2DIntersection();`
`function Rect2IUnion();`
`function Rect2DUnion();`
`function Rect2IValidate();`
`function Rect2DValidate();`
`procedure Point2IMove();`
`procedure Point2DMove();`
`procedure Rect2IMove();`
`procedure Rect2DMove();`
`procedure Point2IMult();`
`procedure Point2DMult();`
`procedure Rect2IMult();`
`procedure Rect2DMult();`
`procedure Rect2IGrow();`
`procedure Rect2DGrow();`
`function Rect2ISize();`
`function Rect2DSize();`
`function Rect2ICenter();`
`function Rect2DCenter();`
`function CreateScriptInterpreter;`
`function GetBitMask();`
`function Precision();`
`function MaxIntSingle;`
`function MaxIntDouble;`
`function MaxIntExtended;`
`function fscale();`
`procedure fxtract();`
`function fbitcompress();`
`function frelcompress();`
`function fabscompress();`
`function Gamma();`
`function GammaLn();`
`function GammaInc();`
`function GammaDistr();`
`function GammaCumDistr();`
`function GammaCumDistrInv();`
`function Chi2Distr();`
`function Chi2CumDistr();`
`function Chi2CumDistrInv();`
`function Trapezium();`
`function BesselN();`
`function GaussSolverWithPartialPivoting();`
`function CreatePolynom();`
`function GenMin();`
`function GenMinFix();`
`function GenMinScaled();`
`function GenMinFixScaled();`
`function LSQFit();`
`function LSQFitSumOfSquares();`
`function Rfa;`
`function Sort();`
`function QuickFind();`
`function QuickSearch();`
`function FindDoubleIndex();`
`function LinearInterpolation();`
`function EvaluatePolynomAt();`
`function FindLeastSquaresPolynom();`
`function EvaluateSplineAt();`
`function FindSmoothingSpline();`
`function WindowedKernelSmoothing();`
`function WindowedIntegrationSmoothing();`
`procedure Solve3DiagonalSetByProgonka();`
`procedure Solve3DiagonalSetByGauss();`
`procedure Solve5DiagonalSetByGauss();`
`function CreateLongIntVector();`
`function CreateDoubleVector();`
`function CreateLongIntMatrix();`
`function CreateDoubleMatrix();`
`function LinearProgrammingBySimplex();`
`function CreateSingularDecomposition();`
`function CreateFifo();`
`function MkSecNow;`
`function LockedAdd();`
`function LockedCompareExchange();`
`function LockedDec();`
`function LockedExchange();`
`function LockedExchangeAdd();`
`function LockedExchangeDec();`
`function LockedExchangeInc();`
`function LockedExchangeSub();`
`function LockedInc();`
`function LockedSub();`
`function RemoveBrackets();`
`function Mime_Encode();`
`function Mime_Decode();`
`function IsSameText();`
`function IsUnix;`
`function IsLinux;`
`function IsWindows;`
`function IsWin32;`
`function IsWin64;`
`function IsCpu16;`
`function IsCpu32;`
`function IsCpu64;`
`function IsCpuBE;`
`function IsCpuLE;`
`function IsSysUtf8;`
`function IsFileNameCaseSensitive;`
`function OsName();`
`function GetFpcVersion;`
`function GetFpcTargetOS;`
`function GetFpcTargetCPU;`
`function GetFpcTargetPlatform;`
`function IsMainThread;`
`function GetCurrentProcessId;`
`function GetAllocMemCount;`
`function GetAllocMemSize;`
`procedure ResetFpu;`
`function StrToWide();`
`function WideToStr();`
`function ConvertCP();`
`function AdaptFileName();`
`function AdaptExeFileName();`
`function AdaptDllFileName();`
`function AdaptLnkFileName();`
`function GetTickCount;`
`function GetTickCount64;`
`function ExtractBaseName();`
`function ExtractDllBaseName();`
`function ExtractFileDir();`
`function IsLexeme();`
`function ExtractNameValuePair();`
`function PosI();`
`function PosEx();`
`function LastPos();`
`function CountPos();`
`function NthPos();`
`function PosEol();`
`function TailStr();`
`function StrAheadOf();`
`function StrAfterOf();`
`function CenterPad();`
`function TrimDef();`
`function SortTextLines();`
`function EnsureEndingEol();`
`function EnsureHeapString();`
`function CookieScan();`
`function SkipWords();`
`function PhraseCount();`
`function ExtractPhrase();`
`function SkipPhrases();`
`function PhraseListToTextLines();`
`function ScanVarRecord();`
`function ScanVarBoolean();`
`function ScanVarWord();`
`function ScanVarInteger();`
`function ScanVarDouble();`
`function ScanVarAlpha();`
`function ScanVarString();`
`function AddPathDelim();`
`function DropPathDelim();`
`function ValidatePathDelim();`
`function StrFetch();`
`function AnsiDeQuotedStr();`
`function AnsiSkipQuotedStr();`
`function ExtractFirstParam();`
`function SkipFirstParam();`
`function AnsiQuotedIfNeed();`
`function QArg();`
`function ExtractFirstParamUrl();`
`function Dequote_or_URL_Decode();`
`function IsOption();`
`function GetOptionValue();`
`function HasOptionValue();`
`function StringToSetOfChars();`
`function SetOfCharsToString();`
`function HasChars();`
`function CountChars();`
`function GetRealFilePathName();`
`function IsSameChar();`
`function IsSameStr();`
`function IsSameFileName();`
`function IsSectionName();`
`function HTTP_StatusMessage();`
`function URL_Packed();`
`function URL_Encode();`
`function URL_Decode();`
`function StrIScan();`
`function StrRIScan();`
`function StrIPos();`
`function StrPLCopy();`
`function ValidateEOL();`
`function RunCommand();`
`function RunCommandInDir();`
`function cpu_count;`
`function cpu_mhz();`
`function ReadProcCpuInfo();`
`function IsATTY();`
`function GetProcessAffinityMask();`
`function GetThreadAffinityMask();`
`function SetThreadAffinityMask();`
`function GetListOfProcesses();`
`function GetProcessName();`
`function GetParentProcessID;`
`function GetParentProcessName;`
`function GetProcessTimesAsFileTime();`
`function GetThreadTimesAsFileTime();`
`function ProgBaseName;`
`function UserHomeDir();`
`function SystemRootDir;`
`function GlobalTempDir();`
`function LocalTempDir();`
`function GetCrwKitExe;`
`function GetShell;`
`function GetCommandLine;`
`function UserName;`
`function ComputerName;`
`function HostName();`
`function UserDomain();`
`function GetIPAddress();`
`function GetIfMacAddresses();`
`function GetIfIpAddresses();`
`function GetIPAddresses();`
`function GetMacAddresses();`
`function GetLocalUserList();`
`function GetEnv();`
`function SetEnv();`
`function ExpEnv();`
`function MaybeEnvStr();`
`function MaybeTildeStr();`
`function FileIsExecutable();`
`function FileIsSymlink();`
`function FileIsHardLink();`
`function FileIsReadable();`
`function FileIsWritable();`
`function StringFromFile();`
`function GetRootKeyByName();`
`function ReadRegistryMultiStrings();`
`function ReadShellLinkAsText();`
`function AnyFileMask;`
`function FindAllFilesAsText();`
`function ReadIniFileRecord();`
`function ReadIniFileBoolean();`
`function ReadIniFileDouble();`
`function ReadIniFileWord();`
`function ReadIniFileInteger();`
`function ReadIniFileAlpha();`
`function ReadIniFileString();`
`function GetFileType();`
`function GetFileSize64();`
`function FileHasNonBlockFlag();`
`function FileSetNonBlockFlag();`
`function FileSetCloseOnExec();`
`function ePendingFileOperation();`
`function eBrokenPipe();`
`function eOperationAborted();`
`function SmartFileRef();`
`function SmartFileRel();`
`function file_which();`
`function GetFileVersionInfoAsText();`
`function StdOutPrint();`
`function StdErrPrint();`
`function StdOutPrintLn();`
`function StdErrPrintLn();`
`function isFileClosed();`
`function isTextClosed();`
`procedure SmartFileClose();`
`procedure SmartTextClose();`
`function FileTypeToString();`
`function IoResultToString();`
`function StdDateTimeStr();`
`function StdDateTimePrompt();`
`function WriteRegistryString();`
`procedure DebugOutText();`
`function ValidatePathList();`
`function ValidateEnvPathList();`
`function SmartFileSearch();`
`function ReadSymLink();`
`function GetSystemParamStr();`
`function base64_encode();`
`function base64_decode();`
`function base32_encode();`
`function base32_decode();`
`function backslash_encode();`
`function backslash_decode();`
`function StringOfCharRange();`
`function task_init();`
`function task_free();`
`function task_ref();`
`function task_pid();`
`function task_run();`
`function task_wait();`
`function task_send();`
`function task_recv();`
`function task_txcount();`
`function task_rxcount();`
`function task_txspace();`
`function task_rxspace();`
`function task_result();`
`function task_kill();`
`function task_ctrl();`
`function SmartExecute();`
`function PidAffinity();`
`function KillProcess();`
`function HashList_Init();`
`function HashList_Free();`
`function HashList_Ref();`
`function HashList_Count();`
`function HashList_GetKey();`
`function HashList_Delete();`
`function HashList_IndexOf();`
`function HashList_GetData();`
`function HashList_SetData();`
`function HashList_GetLink();`
`function HashList_SetLink();`
`function HashList_GetPara();`
`function HashList_SetPara();`
`function regexp_init();`
`function regexp_free();`
`function regexp_ref();`
`function regexp_ctrl();`
`function regexp_test();`
`function regexp_exec();`
`function regexp_replace();`
`function regexp_matchnum();`
`function regexp_matchpos();`
`function regexp_matchlen();`
`function regexp_matchstr();`
`function regexp_escape();`
`function pipe_init();`
`function pipe_free();`
`function pipe_ref();`
`function pipe_pid();`
`function pipe_run();`
`function pipe_wait();`
`function pipe_send();`
`function pipe_recv();`
`function pipe_txcount();`
`function pipe_rxcount();`
`function pipe_txspace();`
`function pipe_rxspace();`
`function pipe_result();`
`function pipe_kill();`
`function pipe_ctrl();`
`function pipe_txclear();`
`function pipe_rxclear();`
`function pipe_count();`
`function pipe_stream();`
`function pipe_connected();`
`function CSIDL_FolderByName();`
`function CSIDL_ListAllAsText();`
`function GetSystemAssoc();`
`function GetSystemFType();`
`function GetSystemAssocExe();`
`function GetSystemFTypeExe();`
`function HasSystemAssocExe();`
`function HasSystemFTypeExe();`
`function GetExeByExtension();`
`function GetAppPath();`
`function GetExeByFile();`
`function WScriptShellRun();`
`function ShellExecuteOpen();`
`function wmctrl_query();`
`function shm_init();`
`function shm_ref();`
`function shm_free();`
`function shm_delink();`
`function shm_iop();`
`function shm_rop();`
`function shm_fop();`
`function shm_sop();`
`function shm_ctrl();`
`function shm_ioresult();`
`function fsm_new;`
`function fsm_free();`
`function fsm_ref();`
`function fsm_root();`
`function fsm_type();`
`function fsm_parent();`
`function fsm_name();`
`function fsm_path();`
`function fsm_ctrl();`
`function fsm_count();`
`function fsm_items();`
`function fsm_get_iparam();`
`function fsm_set_iparam();`
`function fsm_get_fparam();`
`function fsm_set_fparam();`
`function fsm_get_sparam();`
`function fsm_set_sparam();`
`function fsm_add();`
`function fsm_find();`
`function fsm_get_state();`
`function fsm_set_state();`
`function fsm_put_state();`
`function fsm_link();`
`function fsm_modified();`
`function fsm_name_rule();`
`function fsm_valid_childtype();`
`function Hex_Encode();`
`function Hex_Decode();`
`function ColorToString();`
`function StringToColor();`
`function StringToSigCode();`
`function SigCodeToString();`
`function text_new;`
`function text_ref();`
`function text_free();`
`function text_getln();`
`function text_putln();`
`function text_insln();`
`function text_addln();`
`function text_delln();`
`function text_numln();`
`function text_tostring();`
`function text_fromstring();`
`function db_create();`
`function db_connection();`
`function db_recordset();`
`function db_command();`
`function db_free();`
`function db_ref();`
`function db_root();`
`function db_type();`
`function db_parent();`
`function db_state();`
`function db_close();`
`function db_open();`
`function db_ctrl();`
`function db_bugscount();`
`function db_bugsclear();`
`function db_errors();`
`function db_errorscount();`
`function db_errorsclear();`
`function db_execute();`
`function db_cancel();`
`function db_update();`
`function db_cancelupdate();`
`function db_begintrans();`
`function db_committrans();`
`function db_rollbacktrans();`
`function db_bof();`
`function db_eof();`
`function db_movefirst();`
`function db_movelast();`
`function db_movenext();`
`function db_moveprevious();`
`function db_fieldscount();`
`function db_fieldsnames();`
`function db_fieldstypes();`
`function db_fieldsasint();`
`function db_fieldsasfloat();`
`function db_fieldsasstring();`
`function db_addnew();`
`function db_delete();`
`function db_requery();`
`function db_resync();`
`function db_supports();`
`function db_save();`
`function HasFlags();`
`function utf8_valid();`
`function utf8_errpos();`
`function utf8_length();`
`function utf8_encode_wide();`
`function utf8_decode_wide();`
`function utf8_encode_ansi();`
`function utf8_decode_ansi();`
`function utf8_copy();`
`function utf8_chrpos();`
`function utf8_ord();`
`function utf8_chr();`
`function utf8_uppercase();`
`function utf8_lowercase();`
`function utf8_fixbroken();`
`function utf8_sametext();`
`function utf8_fix_cp();`
`function IntToStrBase();`
`function StrToIntBase();`
`function htonl();`
`function ntohl();`
`function htons();`
`function ntohs();`
`function strtimefmt();`
`end;`

## Inheritance

`ISysApi`
`IPluginApi`
`IUnknown`
?