StrToInt()
IntToStr()
StrToVar()
VarToStr()
StrToFlaot()
FloatToStr()
StringToColor()
ColorToString()
BoolToStr()
StrToBool()
//...

解决方案 »

  1.   

    //sysutils.pas
    function Languages: TLanguages;
    function AllocMem(Size: Cardinal): Pointer;
    procedure AddExitProc(Proc: TProcedure);
    function NewStr(const S: string): PString; deprecated;
    procedure DisposeStr(P: PString); deprecated;
    procedure AssignStr(var P: PString; const S: string); deprecated;
    procedure AppendStr(var Dest: string; const S: string); deprecated;
    function UpperCase(const S: string): string;
    function LowerCase(const S: string): string;
    function CompareStr(const S1, S2: string): Integer;
    function CompareMem(P1, P2: Pointer; Length: Integer): Boolean; assembler;
    function CompareText(const S1, S2: string): Integer;
    function SameText(const S1, S2: string): Boolean;
    function AnsiUpperCase(const S: string): string;
    function AnsiLowerCase(const S: string): string;
    function AnsiCompareStr(const S1, S2: string): Integer;
    function AnsiSameStr(const S1, S2: string): Boolean;
    function AnsiCompareText(const S1, S2: string): Integer;
    function AnsiSameText(const S1, S2: string): Boolean;
    function AnsiStrComp(S1, S2: PChar): Integer;
    function AnsiStrIComp(S1, S2: PChar): Integer;
    function AnsiStrLComp(S1, S2: PChar; MaxLen: Cardinal): Integer;
    function AnsiStrLIComp(S1, S2: PChar; MaxLen: Cardinal): Integer;
    function AnsiStrLower(Str: PChar): PChar;
    function AnsiStrUpper(Str: PChar): PChar;
    function AnsiLastChar(const S: string): PChar;
    function AnsiStrLastChar(P: PChar): PChar;
    function WideUpperCase(const S: WideString): WideString;
    function WideLowerCase(const S: WideString): WideString;
    function WideCompareStr(const S1, S2: WideString): Integer;
    function WideSameStr(const S1, S2: WideString): Boolean;
    function WideCompareText(const S1, S2: WideString): Integer;
    function WideSameText(const S1, S2: WideString): Boolean;
    function Trim(const S: string): string; overload;
    function Trim(const S: WideString): WideString; overload;
    function TrimLeft(const S: string): string; overload;
    function TrimLeft(const S: WideString): WideString; overload;
    function TrimRight(const S: string): string; overload;
    function TrimRight(const S: WideString): WideString; overload;
    function QuotedStr(const S: string): string;
    function AnsiQuotedStr(const S: string; Quote: Char): string;
    function AnsiExtractQuotedStr(var Src: PChar; Quote: Char): string;
    function AnsiDequotedStr(const S: string; AQuote: Char): string;
    function AdjustLineBreaks(const S: string; Style: TTextLineBreakStyle = {$IFDEF LINUX} tlbsLF {$ENDIF} {$IFDEF MSWINDOWS} tlbsCRLF {$ENDIF}): string;
    function IsValidIdent(const Ident: string): Boolean;
    function IntToStr(Value: Integer): string; overload;
    function IntToStr(Value: Int64): string; overload;
    function IntToHex(Value: Integer; Digits: Integer): string; overload;
    function IntToHex(Value: Int64; Digits: Integer): string; overload;
    function StrToInt(const S: string): Integer;
    function StrToIntDef(const S: string; Default: Integer): Integer;
    function TryStrToInt(const S: string; out Value: Integer): Boolean;
    function StrToInt64(const S: string): Int64;
    function StrToInt64Def(const S: string; const Default: Int64): Int64;
    function TryStrToInt64(const S: string; out Value: Int64): Boolean;
    function StrToBool(const S: string): Boolean;
    function StrToBoolDef(const S: string; const Default: Boolean): Boolean;
    function TryStrToBool(const S: string; out Value: Boolean): Boolean;
    function BoolToStr(B: Boolean; UseBoolStrs: Boolean = False): string;
    function LoadStr(Ident: Integer): string;
    function FmtLoadStr(Ident: Integer; const Args: array of const): string;
    function FileOpen(const FileName: string; Mode: LongWord): Integer;
    function FileCreate(const FileName: string): Integer; overload;
    function FileCreate(const FileName: string; Rights: Integer): Integer; overload;
    function FileRead(Handle: Integer; var Buffer; Count: LongWord): Integer;
    function FileWrite(Handle: Integer; const Buffer; Count: LongWord): Integer;
    function FileSeek(Handle, Offset, Origin: Integer): Integer; overload;
    function FileSeek(Handle: Integer; const Offset: Int64; Origin: Integer): Int64; overload;
    procedure FileClose(Handle: Integer);
    function FileAge(const FileName: string): Integer;
    function FileExists(const FileName: string): Boolean;
    function DirectoryExists(const Directory: string): Boolean;
    function ForceDirectories(Dir: string): Boolean;
    function FindFirst(const Path: string; Attr: Integer; var F: TSearchRec): Integer;
    function FindNext(var F: TSearchRec): Integer;
    procedure FindClose(var F: TSearchRec);
    function FileGetDate(Handle: Integer): Integer;
    function FileSetDate(const FileName: string; Age: Integer): Integer; overload;
    function FileSetDate(Handle: Integer; Age: Integer): Integer; overload; platform;
    function FileGetAttr(const FileName: string): Integer; platform;
    function FileSetAttr(const FileName: string; Attr: Integer): Integer; platform;
    function FileIsReadOnly(const FileName: string): Boolean;
    function FileSetReadOnly(const FileName: string; ReadOnly: Boolean): Boolean;
    function DeleteFile(const FileName: string): Boolean;
    function RenameFile(const OldName, NewName: string): Boolean;
    function ChangeFileExt(const FileName, Extension: string): string;
    function ExtractFilePath(const FileName: string): string;
    function ExtractFileDir(const FileName: string): string;
    function ExtractFileDrive(const FileName: string): string;
    function ExtractFileName(const FileName: string): string;
    function ExtractFileExt(const FileName: string): string;
    function ExpandFileName(const FileName: string): string;
    function ExpandFileNameCase(const FileName: string; out MatchFound: TFilenameCaseMatch): string;
    function ExpandUNCFileName(const FileName: string): string;
    function ExtractRelativePath(const BaseName, DestName: string): string;
    function ExtractShortPathName(const FileName: string): string;
    function FileSearch(const Name, DirList: string): string;
    function DiskFree(Drive: Byte): Int64;
    function DiskSize(Drive: Byte): Int64;
    function FileDateToDateTime(FileDate: Integer): TDateTime;
    function DateTimeToFileDate(DateTime: TDateTime): Integer;
    function GetCurrentDir: string;
    function SetCurrentDir(const Dir: string): Boolean;
    function CreateDir(const Dir: string): Boolean;
    function RemoveDir(const Dir: string): Boolean;
    function StrLen(const Str: PChar): Cardinal;
    function StrEnd(const Str: PChar): PChar;
    function StrMove(Dest: PChar; const Source: PChar; Count: Cardinal): PChar;
    function StrCopy(Dest: PChar; const Source: PChar): PChar;
    function StrECopy(Dest:PChar; const Source: PChar): PChar;
    function StrLCopy(Dest: PChar; const Source: PChar; MaxLen: Cardinal): PChar;
    function StrPCopy(Dest: PChar; const Source: string): PChar;
    function StrPLCopy(Dest: PChar; const Source: string; MaxLen: Cardinal): PChar;
    function StrCat(Dest: PChar; const Source: PChar): PChar;
    function StrLCat(Dest: PChar; const Source: PChar; MaxLen: Cardinal): PChar;
    function StrComp(const Str1, Str2: PChar): Integer;
    function StrIComp(const Str1, Str2: PChar): Integer;
    function StrLComp(const Str1, Str2: PChar; MaxLen: Cardinal): Integer;
    function StrLIComp(const Str1, Str2: PChar; MaxLen: Cardinal): Integer;
    function StrScan(const Str: PChar; Chr: Char): PChar;
    function StrRScan(const Str: PChar; Chr: Char): PChar;
    function StrPos(const Str1, Str2: PChar): PChar;
    function StrUpper(Str: PChar): PChar;
    function StrLower(Str: PChar): PChar;
    function StrPas(const Str: PChar): string;
    function StrAlloc(Size: Cardinal): PChar;
    function StrBufSize(const Str: PChar): Cardinal;
    function StrNew(const Str: PChar): PChar;
    procedure StrDispose(Str: PChar);
    function Format(const Format: string; const Args: array of const): string;
    procedure FmtStr(var Result: string; const Format: string; const Args: array of const);
    function StrFmt(Buffer, Format: PChar; const Args: array of const): PChar;
    function StrLFmt(Buffer: PChar; MaxBufLen: Cardinal; Format: PChar; const Args: array of const): PChar;
    function FormatBuf(var Buffer; BufLen: Cardinal; const Format; FmtLen: Cardinal; const Args: array of const): Cardinal;
    function WideFormat(const Format: WideString; const Args: array of const): WideString;
    procedure WideFmtStr(var Result: WideString; const Format: WideString; const Args: array of const);
    function WideFormatBuf(var Buffer; BufLen: Cardinal; const Format; FmtLen: Cardinal; const Args: array of const): Cardinal;
    function FloatToStr(Value: Extended): string;
    function CurrToStr(Value: Currency): string;
    function FloatToCurr(const Value: Extended): Currency;
    function FloatToStrF(Value: Extended; Format: TFloatFormat; Precision, Digits: Integer): string;
    function CurrToStrF(Value: Currency; Format: TFloatFormat; Digits: Integer): string;
    function FloatToText(BufferArg: PChar; const Value; ValueType: TFloatValue; Format: TFloatFormat; Precision, Digits: Integer): Integer;
    function FormatFloat(const Format: string; Value: Extended): string;
    function FormatCurr(const Format: string; Value: Currency): string;
    function FloatToTextFmt(Buf: PChar; const Value; ValueType: TFloatValue; Format: PChar): Integer;
    function StrToFloat(const S: string): Extended;
    function StrToFloatDef(const S: string; const Default: Extended): Extended;
    function TryStrToFloat(const S: string; out Value: Extended): Boolean; overload;
    function TryStrToFloat(const S: string; out Value: Double): Boolean; overload;
    function TryStrToFloat(const S: string; out Value: Single): Boolean; overload;
    function StrToCurr(const S: string): Currency;
    function StrToCurrDef(const S: string; const Default: Currency): Currency;
    function TryStrToCurr(const S: string; out Value: Currency): Boolean;
    function TextToFloat(Buffer: PChar; var Value; ValueType: TFloatValue): Boolean;
    procedure FloatToDecimal(var Result: TFloatRec; const Value; ValueType: TFloatValue; Precision, Decimals: Integer);
    function DateTimeToTimeStamp(DateTime: TDateTime): TTimeStamp;
    function TimeStampToDateTime(const TimeStamp: TTimeStamp): TDateTime;
    function MSecsToTimeStamp(MSecs: Comp): TTimeStamp;
    function TimeStampToMSecs(const TimeStamp: TTimeStamp): Comp;
    function EncodeDate(Year, Month, Day: Word): TDateTime;
    function EncodeTime(Hour, Min, Sec, MSec: Word): TDateTime;
    function TryEncodeDate(Year, Month, Day: Word; out Date: TDateTime): Boolean;
    function TryEncodeTime(Hour, Min, Sec, MSec: Word; out Time: TDateTime): Boolean;
    procedure DecodeDate(const DateTime: TDateTime; var Year, Month, Day: Word);
    function DecodeDateFully(const DateTime: TDateTime; var Year, Month, Day, DOW: Word): Boolean;
    function InternalDecodeDate(const DateTime: TDateTime; var Year, Month, Day, DOW: Word): Boolean;
    procedure DecodeTime(const DateTime: TDateTime; var Hour, Min, Sec, MSec: Word);
    procedure DateTimeToSystemTime(const DateTime: TDateTime; var SystemTime: TSystemTime);
    function SystemTimeToDateTime(const SystemTime: TSystemTime): TDateTime;
    function DayOfWeek(const DateTime: TDateTime): Word;
    function Date: TDateTime;
    function Time: TDateTime;
    function Now: TDateTime;
    function CurrentYear: Word;
    function IncMonth(const DateTime: TDateTime; NumberOfMonths: Integer = 1): TDateTime;
    procedure IncAMonth(var Year, Month, Day: Word; NumberOfMonths: Integer = 1);
    procedure ReplaceTime(var DateTime: TDateTime; const NewTime: TDateTime);
    procedure ReplaceDate(var DateTime: TDateTime; const NewDate: TDateTime);
    function IsLeapYear(Year: Word): Boolean;
    function DateToStr(const DateTime: TDateTime): string;
    function TimeToStr(const DateTime: TDateTime): string;
    function DateTimeToStr(const DateTime: TDateTime): string;
    function StrToDate(const S: string): TDateTime;
    function StrToDateDef(const S: string; const Default: TDateTime): TDateTime;
    function TryStrToDate(const S: string; out Value: TDateTime): Boolean;
    function StrToTime(const S: string): TDateTime;
    function StrToTimeDef(const S: string; const Default: TDateTime): TDateTime;
    function TryStrToTime(const S: string; out Value: TDateTime): Boolean;
    function StrToDateTime(const S: string): TDateTime;
    function StrToDateTimeDef(const S: string; const Default: TDateTime): TDateTime;
    function TryStrToDateTime(const S: string; out Value: TDateTime): Boolean;
    function FormatDateTime(const Format: string; DateTime: TDateTime): string;
    procedure DateTimeToString(var Result: string; const Format: string; DateTime: TDateTime);
    function FloatToDateTime(const Value: Extended): TDateTime;
    function SysErrorMessage(ErrorCode: Integer): string;
    function GetLocaleStr(Locale, LocaleType: Integer; const Default: string): string; platform;
    function GetLocaleChar(Locale, LocaleType: Integer; Default: Char): Char; platform;
    procedure GetFormatSettings;
    function InquireSignal(RtlSigNum: Integer): TSignalState;
    procedure AbandonSignalHandler(RtlSigNum: Integer);
    procedure HookSignal(RtlSigNum: Integer);
    procedure UnhookSignal(RtlSigNum: Integer; OnlyIfHooked: Boolean = True);
    procedure HookOSExceptions;
    function MapSignal(SigNum: Integer; Context: PSigContext): LongWord;
    procedure SignalConverter(ExceptionEIP: LongWord; FaultAddr: LongWord; ErrorCode: LongWord);
    procedure SetSafeCallExceptionMsg(Msg: String);
    procedure SetSafeCallExceptionAddr(Addr: Pointer);
    function GetSafeCallExceptionMsg: String;
    function GetSafeCallExceptionAddr: Pointer;
    function LoadLibrary(ModuleName: PChar): HMODULE;
    function FreeLibrary(Module: HMODULE): LongBool;
    function GetProcAddress(Module: HMODULE; Proc: PChar): Pointer;
    function GetModuleHandle(ModuleName: PChar): HMODULE;
    function GetPackageModuleHandle(PackageName: PChar): HMODULE;
    procedure Sleep(milliseconds: Cardinal);{$IFDEF MSWINDOWS} stdcall; {$ENDIF}
    function GetModuleName(Module: HMODULE): string;
    function ExceptionErrorMessage(ExceptObject: TObject; ExceptAddr: Pointer; Buffer: PChar; Size: Integer): Integer;
    procedure ShowException(ExceptObject: TObject; ExceptAddr: Pointer);
    procedure Abort;
    procedure OutOfMemoryError;
    procedure Beep;
    function ByteType(const S: string; Index: Integer): TMbcsByteType;
    function StrByteType(Str: PChar; Index: Cardinal): TMbcsByteType;
    function ByteToCharLen(const S: string; MaxLen: Integer): Integer;
    function CharToByteLen(const S: string; MaxLen: Integer): Integer;
    function ByteToCharIndex(const S: string; Index: Integer): Integer;
    function CharToByteIndex(const S: string; Index: Integer): Integer;
    function StrCharLength(const Str: PChar): Integer;
    function StrNextChar(const Str: PChar): PChar;
    function CharLength(const S: String; Index: Integer): Integer;
    function NextCharIndex(const S: String; Index: Integer): Integer;
    function IsPathDelimiter(const S: string; Index: Integer): Boolean;
    function IsDelimiter(const Delimiters, S: string; Index: Integer): Boolean;
    function IncludeTrailingPathDelimiter(const S: string): string;
    function IncludeTrailingBackslash(const S: string): string; platform;
    function ExcludeTrailingPathDelimiter(const S: string): string;
    function ExcludeTrailingBackslash(const S: string): string; platform;
    function LastDelimiter(const Delimiters, S: string): Integer;
    function AnsiCompareFileName(const S1, S2: string): Integer;
    function SameFileName(const S1, S2: string): Boolean;
    function AnsiLowerCaseFileName(const S: string): string;
    function AnsiUpperCaseFileName(const S: string): string;
    function AnsiPos(const Substr, S: string): Integer;
    function AnsiStrPos(Str, SubStr: PChar): PChar;
    function AnsiStrRScan(Str: PChar; Chr: Char): PChar;
    function AnsiStrScan(Str: PChar; Chr: Char): PChar;
    function StringReplace(const S, OldPattern, NewPattern: string; Flags: TReplaceFlags): string;
    function WrapText(const Line, BreakStr: string; const BreakChars: TSysCharSet; MaxCol: Integer): string; overload;
    function WrapText(const Line: string; MaxCol: Integer = 45): string; overload;
    function FindCmdLineSwitch(const Switch: string; const Chars: TSysCharSet; IgnoreCase: Boolean): Boolean; overload;
    function FindCmdLineSwitch(const Switch: string): Boolean; overload;
    function FindCmdLineSwitch(const Switch: string; IgnoreCase: Boolean): Boolean; overload;
    procedure FreeAndNil(var Obj);
    function Supports(const Instance: IInterface; const IID: TGUID; out Intf): Boolean; overload;
    function Supports(const Instance: TObject; const IID: TGUID; out Intf): Boolean; overload;
    function Supports(const Instance: IInterface; const IID: TGUID): Boolean; overload;
    function Supports(const Instance: TObject; const IID: TGUID): Boolean; overload;
    function Supports(const AClass: TClass; const IID: TGUID): Boolean; overload;
    function CreateGUID(out Guid: TGUID): HResult;
    function StringToGUID(const S: string): TGUID;
    function GUIDToString(const GUID: TGUID): string;
    function IsEqualGUID(const guid1, guid2: TGUID): Boolean;
    function LoadPackage(const Name: string): HMODULE;
    procedure UnloadPackage(Module: HMODULE);
    procedure GetPackageInfo(Module: HMODULE; Param: Pointer; var Flags: Integer; InfoProc: TPackageInfoProc);
    function GetPackageDescription(ModuleName: PChar): string;
    procedure InitializePackage(Module: HMODULE);
    procedure FinalizePackage(Module: HMODULE);
    procedure RaiseLastOSError;
    procedure RaiseLastWin32Error; deprecated;
    function Win32Check(RetVal: BOOL): BOOL; platform;
    procedure AddTerminateProc(TermProc: TTerminateProc);
    function CallTerminateProcs: Boolean;
    function GDAL: LongWord;
    procedure RCS;
    procedure RPR;
    function SafeLoadLibrary(const Filename: string; ErrorMode: UINT = SEM_NOOPENFILEERRORBOX): HMODULE;
    function GetEnvironmentVariable(const Name: string): string; overload;
    function InterlockedIncrement(var I: Integer): Integer;
    function InterlockedDecrement(var I: Integer): Integer;
    function InterlockedExchange(var A: Integer; B: Integer): Integer;
    function InterlockedExchangeAdd(var A: Integer; B: Integer): Integer;//system.pas
    function GetHeapBlocks: THeapBlockArray;
    function FindObjects(AClass: TClass; FindDerived: Boolean): TObjectArray;
    function AcquireExceptionObject: Pointer;
    procedure ReleaseExceptionObject;
    procedure GetUnwinder(var Dest: TUnwinder);
    procedure SetUnwinder(const NewUnwinder: TUnwinder);
    function IsUnwinderSet: Boolean;
    function SysRegisterIPLookup(StartAddr, EndAddr: LongInt; Context: Pointer; GOT: LongInt): LongBool;
    procedure SysUnregisterIPLookup(StartAddr: LongInt);
    function SysClosestDelphiHandler(Context: Pointer): LongWord;
    procedure BlockOSExceptions;
    procedure UnblockOSExceptions;
    function AreOSExceptionsBlocked: Boolean;
    function RaiseList: Pointer; deprecated; { Stack of current exception objects }
    function SetRaiseList(NewPtr: Pointer): Pointer; deprecated; { returns previous value }
    function ExceptObject: TObject;
    function ExceptAddr: Pointer;
    procedure SetInOutRes(NewValue: Integer);
    function FindResource(ModuleHandle: HMODULE; ResourceName, ResourceType: PChar): TResourceHandle;
    function LoadResource(ModuleHandle: HMODULE; ResHandle: TResourceHandle): HGLOBAL;
    function SizeofResource(ModuleHandle: HMODULE; ResHandle: TResourceHandle): Integer;
    function LockResource(ResData: HGLOBAL): Pointer;
    function UnlockResource(ResData: HGLOBAL): LongBool;
    function FreeResource(ResData: HGLOBAL): LongBool;
    procedure GetMemoryManager(var MemMgr: TMemoryManager);
    procedure SetMemoryManager(const MemMgr: TMemoryManager);
    function IsMemoryManagerSet: Boolean;
    function SysGetMem(Size: Integer): Pointer;
    function SysFreeMem(P: Pointer): Integer;
    function SysReallocMem(P: Pointer; Size: Integer): Pointer;
    function GetHeapStatus: THeapStatus; platform;
    function BeginThread(SecurityAttributes: Pointer; StackSize: LongWord; ThreadFunc: TThreadFunc; Parameter: Pointer; CreationFlags: LongWord; var ThreadId: LongWord): Integer;
    function BeginThread(Attribute: PThreadAttr; ThreadFunc: TThreadFunc; Parameter: Pointer; var ThreadId: Cardinal): Integer;
    procedure EndThread(ExitCode: Integer);
    procedure SetLineBreakStyle(var T: Text; Style: TTextLineBreakStyle);
    procedure ChDir(const S: string); overload;
    procedure ChDir(P: PChar); overload;
    function Flush(var t: Text): Integer;
    function IOResult: Integer;
    procedure MkDir(const S: string); overload;
    procedure MkDir(P: PChar); overload;
    procedure Move(const Source; var Dest; Count: Integer);
    function ParamCount: Integer;
    function ParamStr(Index: Integer): string;
    procedure Randomize;
    procedure RmDir(const S: string); overload;
    procedure RmDir(P: PChar); overload;
    function UpCase(Ch: Char): Char;
    procedure Set8087CW(NewCW: Word);
    function Get8087CW: Word;
    function WideCharToString(Source: PWideChar): string;
    function WideCharLenToString(Source: PWideChar; SourceLen: Integer): string;
    procedure WideCharToStrVar(Source: PWideChar; var Dest: string);
    procedure WideCharLenToStrVar(Source: PWideChar; SourceLen: Integer; var Dest: string);
    function StringToWideChar(const Source: string; Dest: PWideChar; DestSize: Integer): PWideChar;
    function PUCS4Chars(const S: UCS4String): PUCS4Char;
    function WideStringToUCS4String(const S: WideString): UCS4String;
    function UCS4StringToWideString(const S: UCS4String): WideString;
    function UnicodeToUtf8(Dest: PChar; Source: PWideChar; MaxBytes: Integer): Integer; overload; deprecated;
    function Utf8ToUnicode(Dest: PWideChar; Source: PChar; MaxChars: Integer): Integer; overload; deprecated;
    function UnicodeToUtf8(Dest: PChar; MaxDestBytes: Cardinal; Source: PWideChar; SourceChars: Cardinal): Cardinal; overload;
    function Utf8ToUnicode(Dest: PWideChar; MaxDestChars: Cardinal; Source: PChar; SourceBytes: Cardinal): Cardinal; overload;
    function UTF8Encode(const WS: WideString): UTF8String;
    function UTF8Decode(const S: UTF8String): WideString;
    function AnsiToUtf8(const S: string): UTF8String;
    function Utf8ToAnsi(const S: UTF8String): string;
    function OleStrToString(Source: PWideChar): string;
    procedure OleStrToStrVar(Source: PWideChar; var Dest: string);
    function StringToOleStr(const Source: string): PWideChar;
    procedure GetVariantManager(var VarMgr: TVariantManager);
    procedure SetVariantManager(const VarMgr: TVariantManager);
    function IsVariantManagerSet: Boolean;
    procedure RegisterModule(LibModule: PLibModule);
    procedure UnregisterModule(LibModule: PLibModule);
    function FindHInstance(Address: Pointer): LongWord;
    function FindClassHInstance(ClassType: TClass): LongWord;
    function FindResourceHInstance(Instance: LongWord): LongWord;
    function LoadResourceModule(ModuleName: PChar; CheckOwner: Boolean = True): LongWord;
    procedure EnumModules(Func: TEnumModuleFunc; Data: Pointer); overload;
    procedure EnumResourceModules(Func: TEnumModuleFunc; Data: Pointer); overload;
    procedure EnumModules(Func: TEnumModuleFuncLW; Data: Pointer); overload;
    procedure EnumResourceModules(Func: TEnumModuleFuncLW; Data: Pointer); overload;
    procedure AddModuleUnloadProc(Proc: TModuleUnloadProc); overload;
    procedure RemoveModuleUnloadProc(Proc: TModuleUnloadProc); overload;
    procedure AddModuleUnloadProc(Proc: TModuleUnloadProcLW); overload;
    procedure RemoveModuleUnloadProc(Proc: TModuleUnloadProcLW); overload;
    function GetModuleFileName(Module: HMODULE; Buffer: PChar; BufLen: Integer): Integer;
    function LoadResString(ResStringRec: PResStringRec): string;
    function _BlockWrite(var f: TFileRec; buffer: Pointer; recCnt: Longint; var recsWritten: Longint): Longint;
    procedure Mark; deprecated;
    procedure Release; deprecated;
    procedure UniqueString(var str: AnsiString); overload;
    procedure UniqueString(var str: WideString); overload;
    procedure DynArrayClear(var a: Pointer; typeInfo: Pointer);
    procedure DynArraySetLength(var a: Pointer; typeInfo: Pointer; dimCnt: Longint; lengthVec: PLongint);
    function DynArrayDim(typeInfo: PDynArrayTypeInfo): Integer;
    procedure FPower10;
    procedure TextStart; deprecated;
    function CompToDouble(Value: Comp): Double; cdecl;
    procedure DoubleToComp(Value: Double; var Result: Comp); cdecl;
    function CompToCurrency(Value: Comp): Currency; cdecl;
    procedure CurrencyToComp(Value: Currency; var Result: Comp); cdecl;
    function GetMemory(Size: Integer): Pointer; cdecl;
    function FreeMemory(P: Pointer): Integer; cdecl;
    function ReallocMemory(P: Pointer; Size: Integer): Pointer; cdecl;
    procedure Error(errorCode: TRuntimeError);
    function GetLastError: Integer; {$IFDEF MSWINDOWS} stdcall; {$ENDIF}
    procedure SetLastError(ErrorCode: Integer); {$IFDEF MSWINDOWS} stdcall; {$ENDIF}
    function ModuleCacheID: Cardinal;
    procedure InvalidateModuleCache;
    procedure DbgUnlockX; 
    回复人: zswang(伴水)(伤心中) (2001-11-30 21:20:05)  得0分 
    //VarUtils.pas
    function VariantInit(var V: TVarData): HRESULT; stdcall;
    function VariantClear(var V: TVarData): HRESULT; stdcall;
    function VariantCopy(var Dest: TVarData; const Source: TVarData): HRESULT; stdcall;
    function VariantCopyInd(var Dest: TVarData; const Source: TVarData): HRESULT; stdcall;
    function VariantChangeTypeEx(var Dest: TVarData; const Source: TVarData; LCID: Integer; Flags: Word; VarType: Word): HRESULT; stdcall;
    function SafeArrayCreate(VarType, DimCount: Integer; const Bounds: TVarArrayBoundArray): PVarArray; stdcall;
    function SafeArrayAllocDescriptor(DimCount: Integer; out VarArray: PVarArray): HRESULT; stdcall;
    function SafeArrayAllocData(VarArray: PVarArray): HRESULT; stdcall;
    function SafeArrayDestroy(VarArray: PVarArray): HRESULT; stdcall;
    function SafeArrayDestroyDescriptor(VarArray: PVarArray): HRESULT; stdcall;
    function SafeArrayDestroyData(VarArray: PVarArray): HRESULT; stdcall;
    function SafeArrayRedim(VarArray: PVarArray; const NewBound: TVarArrayBound): HRESULT; stdcall;
    function SafeArrayCopy(SourceArray: PVarArray; out TargetArray: PVarArray): HRESULT; stdcall;
    function SafeArrayCopyData(SourceArray, TargetArray: PVarArray): HRESULT; stdcall;
    function SafeArrayGetLBound(VarArray: PVarArray; Dim: Integer; out LBound: Integer): HRESULT; stdcall;
    function SafeArrayGetUBound(VarArray: PVarArray; Dim: Integer; out UBound: Integer): HRESULT; stdcall;
    function SafeArrayGetDim(VarArray: PVarArray): Integer; stdcall;
    function SafeArrayAccessData(VarArray: PVarArray; out Data: Pointer): HRESULT; stdcall;
    function SafeArrayUnaccessData(VarArray: PVarArray): HRESULT; stdcall;
    function SafeArrayLock(VarArray: PVarArray): HRESULT; stdcall;
    function SafeArrayUnlock(VarArray: PVarArray): HRESULT; stdcall;
    function SafeArrayGetElement(VarArray: PVarArray; Indices: PVarArrayCoorArray; Data: Pointer): HRESULT; stdcall;
    function SafeArrayPutElement(VarArray: PVarArray; Indices: PVarArrayCoorArray; const Data: Pointer): HRESULT; stdcall;
    function SafeArrayPtrOfIndex(VarArray: PVarArray; Indices: PVarArrayCoorArray; var Address: Pointer): HRESULT; stdcall;
    function SafeArrayGetElemSize(VarArray: PVarArray): LongWord; stdcall;
     
    回复人: zswang(伴水)(伤心中) (2001-11-30 21:21:21)  得0分 
    //StrUtils.pas
    function AnsiResemblesText(const AText, AOther: string): Boolean;
    function AnsiContainsText(const AText, ASubText: string): Boolean;
    function AnsiStartsText(const ASubText, AText: string): Boolean;
    function AnsiEndsText(const ASubText, AText: string): Boolean;
    function AnsiReplaceText(const AText, AFromText, AToText: string): string;
    function AnsiMatchText(const AText: string; const AValues: array of string): Boolean;
    function AnsiIndexText(const AText: string; const AValues: array of string): Integer;
    function AnsiContainsStr(const AText, ASubText: string): Boolean;
    function AnsiStartsStr(const ASubText, AText: string): Boolean;
    function AnsiEndsStr(const ASubText, AText: string): Boolean;
    function AnsiReplaceStr(const AText, AFromText, AToText: string): string;
    function AnsiMatchStr(const AText: string; const AValues: array of string): Boolean;
    function AnsiIndexStr(const AText: string; const AValues: array of string): Integer;
    function DupeString(const AText: string; ACount: Integer): string;
    function ReverseString(const AText: string): string;
    function StuffString(const AText: string; AStart, ALength: Cardinal; const ASubText: string): string;
    function RandomFrom(const AValues: array of string): string; overload;
    function IfThen(AValue: Boolean; const ATrue: string; AFalse: string = ''): string; overload;
    function LeftStr(const AText: string; const ACount: Integer): string;
    function RightStr(const AText: string; const ACount: Integer): string;
    function MidStr(const AText: string; const AStart, ACount: Integer): string;
    function SearchBuf(Buf: PChar; BufLen: Integer; SelStart, SelLength: Integer; SearchString: String; Options: TStringSearchOptions = [soDown]): PChar;
    function Soundex(const AText: string; ALength: TSoundexLength = 4): string;
    function SoundexInt(const AText: string; ALength: TSoundexIntLength = 4): Integer;
    function DecodeSoundexInt(AValue: Integer): string;
    function SoundexWord(const AText: string): Word;
    function DecodeSoundexWord(AValue: Word): string;
    function SoundexSimilar(const AText, AOther: string; ALength: TSoundexLength = 4): Boolean;
    function SoundexCompare(const AText, AOther: string; ALength: TSoundexLength = 4): Integer 
    function SoundexProc(const AText, AOther: string): Boolean;
      

  2.   

    //sysutils.pas
    function Languages: TLanguages;
    function AllocMem(Size: Cardinal): Pointer;
    procedure AddExitProc(Proc: TProcedure);
    function NewStr(const S: string): PString; deprecated;
    procedure DisposeStr(P: PString); deprecated;
    procedure AssignStr(var P: PString; const S: string); deprecated;
    procedure AppendStr(var Dest: string; const S: string); deprecated;
    function UpperCase(const S: string): string;
    function LowerCase(const S: string): string;
    function CompareStr(const S1, S2: string): Integer;
    function CompareMem(P1, P2: Pointer; Length: Integer): Boolean; assembler;
    function CompareText(const S1, S2: string): Integer;
    function SameText(const S1, S2: string): Boolean;
    function AnsiUpperCase(const S: string): string;
    function AnsiLowerCase(const S: string): string;
    function AnsiCompareStr(const S1, S2: string): Integer;
    function AnsiSameStr(const S1, S2: string): Boolean;
    function AnsiCompareText(const S1, S2: string): Integer;
    function AnsiSameText(const S1, S2: string): Boolean;
    function AnsiStrComp(S1, S2: PChar): Integer;
    function AnsiStrIComp(S1, S2: PChar): Integer;
    function AnsiStrLComp(S1, S2: PChar; MaxLen: Cardinal): Integer;
    function AnsiStrLIComp(S1, S2: PChar; MaxLen: Cardinal): Integer;
    function AnsiStrLower(Str: PChar): PChar;
    function AnsiStrUpper(Str: PChar): PChar;
    function AnsiLastChar(const S: string): PChar;
    function AnsiStrLastChar(P: PChar): PChar;
    function WideUpperCase(const S: WideString): WideString;
    function WideLowerCase(const S: WideString): WideString;
    function WideCompareStr(const S1, S2: WideString): Integer;
    function WideSameStr(const S1, S2: WideString): Boolean;
    function WideCompareText(const S1, S2: WideString): Integer;
    function WideSameText(const S1, S2: WideString): Boolean;
    function Trim(const S: string): string; overload;
    function Trim(const S: WideString): WideString; overload;
    function TrimLeft(const S: string): string; overload;
    function TrimLeft(const S: WideString): WideString; overload;
    function TrimRight(const S: string): string; overload;
    function TrimRight(const S: WideString): WideString; overload;
    function QuotedStr(const S: string): string;
    function AnsiQuotedStr(const S: string; Quote: Char): string;
    function AnsiExtractQuotedStr(var Src: PChar; Quote: Char): string;
    function AnsiDequotedStr(const S: string; AQuote: Char): string;
    function AdjustLineBreaks(const S: string; Style: TTextLineBreakStyle = {$IFDEF LINUX} tlbsLF {$ENDIF} {$IFDEF MSWINDOWS} tlbsCRLF {$ENDIF}): string;
    function IsValidIdent(const Ident: string): Boolean;
    function IntToStr(Value: Integer): string; overload;
    function IntToStr(Value: Int64): string; overload;
    function IntToHex(Value: Integer; Digits: Integer): string; overload;
    function IntToHex(Value: Int64; Digits: Integer): string; overload;
    function StrToInt(const S: string): Integer;
    function StrToIntDef(const S: string; Default: Integer): Integer;
    function TryStrToInt(const S: string; out Value: Integer): Boolean;
    function StrToInt64(const S: string): Int64;
    function StrToInt64Def(const S: string; const Default: Int64): Int64;
    function TryStrToInt64(const S: string; out Value: Int64): Boolean;
    function StrToBool(const S: string): Boolean;
    function StrToBoolDef(const S: string; const Default: Boolean): Boolean;
    function TryStrToBool(const S: string; out Value: Boolean): Boolean;
    function BoolToStr(B: Boolean; UseBoolStrs: Boolean = False): string;
    function LoadStr(Ident: Integer): string;
    function FmtLoadStr(Ident: Integer; const Args: array of const): string;
    function FileOpen(const FileName: string; Mode: LongWord): Integer;
    function FileCreate(const FileName: string): Integer; overload;
    function FileCreate(const FileName: string; Rights: Integer): Integer; overload;
    function FileRead(Handle: Integer; var Buffer; Count: LongWord): Integer;
    function FileWrite(Handle: Integer; const Buffer; Count: LongWord): Integer;
    function FileSeek(Handle, Offset, Origin: Integer): Integer; overload;
    function FileSeek(Handle: Integer; const Offset: Int64; Origin: Integer): Int64; overload;
    procedure FileClose(Handle: Integer);
    function FileAge(const FileName: string): Integer;
    function FileExists(const FileName: string): Boolean;
    function DirectoryExists(const Directory: string): Boolean;
    function ForceDirectories(Dir: string): Boolean;
    function FindFirst(const Path: string; Attr: Integer; var F: TSearchRec): Integer;
    function FindNext(var F: TSearchRec): Integer;
    procedure FindClose(var F: TSearchRec);
    function FileGetDate(Handle: Integer): Integer;
    function FileSetDate(const FileName: string; Age: Integer): Integer; overload;
    function FileSetDate(Handle: Integer; Age: Integer): Integer; overload; platform;
    function FileGetAttr(const FileName: string): Integer; platform;
    function FileSetAttr(const FileName: string; Attr: Integer): Integer; platform;
    function FileIsReadOnly(const FileName: string): Boolean;
    function FileSetReadOnly(const FileName: string; ReadOnly: Boolean): Boolean;
    function DeleteFile(const FileName: string): Boolean;
    function RenameFile(const OldName, NewName: string): Boolean;
    function ChangeFileExt(const FileName, Extension: string): string;
    function ExtractFilePath(const FileName: string): string;
    function ExtractFileDir(const FileName: string): string;
    function ExtractFileDrive(const FileName: string): string;
    function ExtractFileName(const FileName: string): string;
    function ExtractFileExt(const FileName: string): string;
    function ExpandFileName(const FileName: string): string;
    function ExpandFileNameCase(const FileName: string; out MatchFound: TFilenameCaseMatch): string;
    function ExpandUNCFileName(const FileName: string): string;
    function ExtractRelativePath(const BaseName, DestName: string): string;
    function ExtractShortPathName(const FileName: string): string;
    function FileSearch(const Name, DirList: string): string;
    function DiskFree(Drive: Byte): Int64;
    function DiskSize(Drive: Byte): Int64;
    function FileDateToDateTime(FileDate: Integer): TDateTime;
    function DateTimeToFileDate(DateTime: TDateTime): Integer;
    function GetCurrentDir: string;
    function SetCurrentDir(const Dir: string): Boolean;
    function CreateDir(const Dir: string): Boolean;
    function RemoveDir(const Dir: string): Boolean;
    function StrLen(const Str: PChar): Cardinal;
    function StrEnd(const Str: PChar): PChar;
    function StrMove(Dest: PChar; const Source: PChar; Count: Cardinal): PChar;
    function StrCopy(Dest: PChar; const Source: PChar): PChar;
    function StrECopy(Dest:PChar; const Source: PChar): PChar;
    function StrLCopy(Dest: PChar; const Source: PChar; MaxLen: Cardinal): PChar;
    function StrPCopy(Dest: PChar; const Source: string): PChar;
    function StrPLCopy(Dest: PChar; const Source: string; MaxLen: Cardinal): PChar;
    function StrCat(Dest: PChar; const Source: PChar): PChar;
    function StrLCat(Dest: PChar; const Source: PChar; MaxLen: Cardinal): PChar;
    function StrComp(const Str1, Str2: PChar): Integer;
    function StrIComp(const Str1, Str2: PChar): Integer;
    function StrLComp(const Str1, Str2: PChar; MaxLen: Cardinal): Integer;
    function StrLIComp(const Str1, Str2: PChar; MaxLen: Cardinal): Integer;
    function StrScan(const Str: PChar; Chr: Char): PChar;
    function StrRScan(const Str: PChar; Chr: Char): PChar;
    function StrPos(const Str1, Str2: PChar): PChar;
    function StrUpper(Str: PChar): PChar;
    function StrLower(Str: PChar): PChar;
    function StrPas(const Str: PChar): string;
    function StrAlloc(Size: Cardinal): PChar;
    function StrBufSize(const Str: PChar): Cardinal;
    function StrNew(const Str: PChar): PChar;
    procedure StrDispose(Str: PChar);
    function Format(const Format: string; const Args: array of const): string;
    procedure FmtStr(var Result: string; const Format: string; const Args: array of const);
    function StrFmt(Buffer, Format: PChar; const Args: array of const): PChar;
    function StrLFmt(Buffer: PChar; MaxBufLen: Cardinal; Format: PChar; const Args: array of const): PChar;
    function FormatBuf(var Buffer; BufLen: Cardinal; const Format; FmtLen: Cardinal; const Args: array of const): Cardinal;
    function WideFormat(const Format: WideString; const Args: array of const): WideString;
    procedure WideFmtStr(var Result: WideString; const Format: WideString; const Args: array of const);
    function WideFormatBuf(var Buffer; BufLen: Cardinal; const Format; FmtLen: Cardinal; const Args: array of const): Cardinal;
    function FloatToStr(Value: Extended): string;
    function CurrToStr(Value: Currency): string;
    function FloatToCurr(const Value: Extended): Currency;
    function FloatToStrF(Value: Extended; Format: TFloatFormat; Precision, Digits: Integer): string;
    function CurrToStrF(Value: Currency; Format: TFloatFormat; Digits: Integer): string;
    function FloatToText(BufferArg: PChar; const Value; ValueType: TFloatValue; Format: TFloatFormat; Precision, Digits: Integer): Integer;
    function FormatFloat(const Format: string; Value: Extended): string;
    function FormatCurr(const Format: string; Value: Currency): string;
    function FloatToTextFmt(Buf: PChar; const Value; ValueType: TFloatValue; Format: PChar): Integer;
    function StrToFloat(const S: string): Extended;
    function StrToFloatDef(const S: string; const Default: Extended): Extended;
    function TryStrToFloat(const S: string; out Value: Extended): Boolean; overload;
    function TryStrToFloat(const S: string; out Value: Double): Boolean; overload;
    function TryStrToFloat(const S: string; out Value: Single): Boolean; overload;
    function StrToCurr(const S: string): Currency;
    function StrToCurrDef(const S: string; const Default: Currency): Currency;
    function TryStrToCurr(const S: string; out Value: Currency): Boolean;
    function TextToFloat(Buffer: PChar; var Value; ValueType: TFloatValue): Boolean;
    procedure FloatToDecimal(var Result: TFloatRec; const Value; ValueType: TFloatValue; Precision, Decimals: Integer);
    function DateTimeToTimeStamp(DateTime: TDateTime): TTimeStamp;
    function TimeStampToDateTime(const TimeStamp: TTimeStamp): TDateTime;
    function MSecsToTimeStamp(MSecs: Comp): TTimeStamp;
    function TimeStampToMSecs(const TimeStamp: TTimeStamp): Comp;
    function EncodeDate(Year, Month, Day: Word): TDateTime;
    function EncodeTime(Hour, Min, Sec, MSec: Word): TDateTime;
    function TryEncodeDate(Year, Month, Day: Word; out Date: TDateTime): Boolean;
    function TryEncodeTime(Hour, Min, Sec, MSec: Word; out Time: TDateTime): Boolean;
    procedure DecodeDate(const DateTime: TDateTime; var Year, Month, Day: Word);
    function DecodeDateFully(const DateTime: TDateTime; var Year, Month, Day, DOW: Word): Boolean;
    function InternalDecodeDate(const DateTime: TDateTime; var Year, Month, Day, DOW: Word): Boolean;
    procedure DecodeTime(const DateTime: TDateTime; var Hour, Min, Sec, MSec: Word);
    procedure DateTimeToSystemTime(const DateTime: TDateTime; var SystemTime: TSystemTime);
    function SystemTimeToDateTime(const SystemTime: TSystemTime): TDateTime;
    function DayOfWeek(const DateTime: TDateTime): Word;
    function Date: TDateTime;
    function Time: TDateTime;
    function Now: TDateTime;
    function CurrentYear: Word;
    function IncMonth(const DateTime: TDateTime; NumberOfMonths: Integer = 1): TDateTime;
    procedure IncAMonth(var Year, Month, Day: Word; NumberOfMonths: Integer = 1);
    procedure ReplaceTime(var DateTime: TDateTime; const NewTime: TDateTime);
    procedure ReplaceDate(var DateTime: TDateTime; const NewDate: TDateTime);
    function IsLeapYear(Year: Word): Boolean;
    function DateToStr(const DateTime: TDateTime): string;
    function TimeToStr(const DateTime: TDateTime): string;
    function DateTimeToStr(const DateTime: TDateTime): string;
    function StrToDate(const S: string): TDateTime;
    function StrToDateDef(const S: string; const Default: TDateTime): TDateTime;
    function TryStrToDate(const S: string; out Value: TDateTime): Boolean;
    function StrToTime(const S: string): TDateTime;
    function StrToTimeDef(const S: string; const Default: TDateTime): TDateTime;
    function TryStrToTime(const S: string; out Value: TDateTime): Boolean;
    function StrToDateTime(const S: string): TDateTime;
    function StrToDateTimeDef(const S: string; const Default: TDateTime): TDateTime;
    function TryStrToDateTime(const S: string; out Value: TDateTime): Boolean;
    function FormatDateTime(const Format: string; DateTime: TDateTime): string;
    procedure DateTimeToString(var Result: string; const Format: string; DateTime: TDateTime);
    function FloatToDateTime(const Value: Extended): TDateTime;
    function SysErrorMessage(ErrorCode: Integer): string;
    function GetLocaleStr(Locale, LocaleType: Integer; const Default: string): string; platform;
    function GetLocaleChar(Locale, LocaleType: Integer; Default: Char): Char; platform;
    procedure GetFormatSettings;
    function InquireSignal(RtlSigNum: Integer): TSignalState;
    procedure AbandonSignalHandler(RtlSigNum: Integer);
    procedure HookSignal(RtlSigNum: Integer);
    procedure UnhookSignal(RtlSigNum: Integer; OnlyIfHooked: Boolean = True);
    procedure HookOSExceptions;
    function MapSignal(SigNum: Integer; Context: PSigContext): LongWord;
    procedure SignalConverter(ExceptionEIP: LongWord; FaultAddr: LongWord; ErrorCode: LongWord);
    procedure SetSafeCallExceptionMsg(Msg: String);
    procedure SetSafeCallExceptionAddr(Addr: Pointer);
    function GetSafeCallExceptionMsg: String;
    function GetSafeCallExceptionAddr: Pointer;
    function LoadLibrary(ModuleName: PChar): HMODULE;
    function FreeLibrary(Module: HMODULE): LongBool;
    function GetProcAddress(Module: HMODULE; Proc: PChar): Pointer;
    function GetModuleHandle(ModuleName: PChar): HMODULE;
    function GetPackageModuleHandle(PackageName: PChar): HMODULE;
    procedure Sleep(milliseconds: Cardinal);{$IFDEF MSWINDOWS} stdcall; {$ENDIF}
    function GetModuleName(Module: HMODULE): string;
    function ExceptionErrorMessage(ExceptObject: TObject; ExceptAddr: Pointer; Buffer: PChar; Size: Integer): Integer;
    procedure ShowException(ExceptObject: TObject; ExceptAddr: Pointer);
    procedure Abort;
    procedure OutOfMemoryError;
    procedure Beep;
    function ByteType(const S: string; Index: Integer): TMbcsByteType;
    function StrByteType(Str: PChar; Index: Cardinal): TMbcsByteType;
    function ByteToCharLen(const S: string; MaxLen: Integer): Integer;
    function CharToByteLen(const S: string; MaxLen: Integer): Integer;
    function ByteToCharIndex(const S: string; Index: Integer): Integer;
    function CharToByteIndex(const S: string; Index: Integer): Integer;
    function StrCharLength(const Str: PChar): Integer;
    function StrNextChar(const Str: PChar): PChar;
    function CharLength(const S: String; Index: Integer): Integer;
    function NextCharIndex(const S: String; Index: Integer): Integer;
    function IsPathDelimiter(const S: string; Index: Integer): Boolean;
    function IsDelimiter(const Delimiters, S: string; Index: Integer): Boolean;
    function IncludeTrailingPathDelimiter(const S: string): string;
    function IncludeTrailingBackslash(const S: string): string; platform;
    function ExcludeTrailingPathDelimiter(const S: string): string;
    function ExcludeTrailingBackslash(const S: string): string; platform;
    function LastDelimiter(const Delimiters, S: string): Integer;
    function AnsiCompareFileName(const S1, S2: string): Integer;
    function SameFileName(const S1, S2: string): Boolean;
    function AnsiLowerCaseFileName(const S: string): string;
    function AnsiUpperCaseFileName(const S: string): string;
    function AnsiPos(const Substr, S: string): Integer;
    function AnsiStrPos(Str, SubStr: PChar): PChar;
    function AnsiStrRScan(Str: PChar; Chr: Char): PChar;
    function AnsiStrScan(Str: PChar; Chr: Char): PChar;
    function StringReplace(const S, OldPattern, NewPattern: string; Flags: TReplaceFlags): string;
    function WrapText(const Line, BreakStr: string; const BreakChars: TSysCharSet; MaxCol: Integer): string; overload;
    function WrapText(const Line: string; MaxCol: Integer = 45): string; overload;
    function FindCmdLineSwitch(const Switch: string; const Chars: TSysCharSet; IgnoreCase: Boolean): Boolean; overload;
    function FindCmdLineSwitch(const Switch: string): Boolean; overload;
    function FindCmdLineSwitch(const Switch: string; IgnoreCase: Boolean): Boolean; overload;
    procedure FreeAndNil(var Obj);
    function Supports(const Instance: IInterface; const IID: TGUID; out Intf): Boolean; overload;
    function Supports(const Instance: TObject; const IID: TGUID; out Intf): Boolean; overload;
    function Supports(const Instance: IInterface; const IID: TGUID): Boolean; overload;
    function Supports(const Instance: TObject; const IID: TGUID): Boolean; overload;
    function Supports(const AClass: TClass; const IID: TGUID): Boolean; overload;
    function CreateGUID(out Guid: TGUID): HResult;
    function StringToGUID(const S: string): TGUID;
    function GUIDToString(const GUID: TGUID): string;
    function IsEqualGUID(const guid1, guid2: TGUID): Boolean;
    function LoadPackage(const Name: string): HMODULE;
    procedure UnloadPackage(Module: HMODULE);
    procedure GetPackageInfo(Module: HMODULE; Param: Pointer; var Flags: Integer; InfoProc: TPackageInfoProc);
    function GetPackageDescription(ModuleName: PChar): string;
    procedure InitializePackage(Module: HMODULE);
    procedure FinalizePackage(Module: HMODULE);
    procedure RaiseLastOSError;
    procedure RaiseLastWin32Error; deprecated;
    function Win32Check(RetVal: BOOL): BOOL; platform;
    procedure AddTerminateProc(TermProc: TTerminateProc);
    function CallTerminateProcs: Boolean;
    function GDAL: LongWord;
    procedure RCS;
    procedure RPR;
    function SafeLoadLibrary(const Filename: string; ErrorMode: UINT = SEM_NOOPENFILEERRORBOX): HMODULE;
    function GetEnvironmentVariable(const Name: string): string; overload;
    function InterlockedIncrement(var I: Integer): Integer;
    function InterlockedDecrement(var I: Integer): Integer;
    function InterlockedExchange(var A: Integer; B: Integer): Integer;
    function InterlockedExchangeAdd(var A: Integer; B: Integer): Integer;//system.pas
    function GetHeapBlocks: THeapBlockArray;
    function FindObjects(AClass: TClass; FindDerived: Boolean): TObjectArray;
    function AcquireExceptionObject: Pointer;
    procedure ReleaseExceptionObject;
    procedure GetUnwinder(var Dest: TUnwinder);
    procedure SetUnwinder(const NewUnwinder: TUnwinder);
    function IsUnwinderSet: Boolean;
    function SysRegisterIPLookup(StartAddr, EndAddr: LongInt; Context: Pointer; GOT: LongInt): LongBool;
    procedure SysUnregisterIPLookup(StartAddr: LongInt);
    function SysClosestDelphiHandler(Context: Pointer): LongWord;
    procedure BlockOSExceptions;
    procedure UnblockOSExceptions;
    function AreOSExceptionsBlocked: Boolean;
    function RaiseList: Pointer; deprecated; { Stack of current exception objects }
    function SetRaiseList(NewPtr: Pointer): Pointer; deprecated; { returns previous value }
    function ExceptObject: TObject;
    function ExceptAddr: Pointer;
    procedure SetInOutRes(NewValue: Integer);
    function FindResource(ModuleHandle: HMODULE; ResourceName, ResourceType: PChar): TResourceHandle;
    function LoadResource(ModuleHandle: HMODULE; ResHandle: TResourceHandle): HGLOBAL;
    function SizeofResource(ModuleHandle: HMODULE; ResHandle: TResourceHandle): Integer;
    function LockResource(ResData: HGLOBAL): Pointer;
    function UnlockResource(ResData: HGLOBAL): LongBool;
    function FreeResource(ResData: HGLOBAL): LongBool;
    procedure GetMemoryManager(var MemMgr: TMemoryManager);
    procedure SetMemoryManager(const MemMgr: TMemoryManager);
    function IsMemoryManagerSet: Boolean;
    function SysGetMem(Size: Integer): Pointer;
    function SysFreeMem(P: Pointer): Integer;
    function SysReallocMem(P: Pointer; Size: Integer): Pointer;
    function GetHeapStatus: THeapStatus; platform;
    function BeginThread(SecurityAttributes: Pointer; StackSize: LongWord; ThreadFunc: TThreadFunc; Parameter: Pointer; CreationFlags: LongWord; var ThreadId: LongWord): Integer;
    function BeginThread(Attribute: PThreadAttr; ThreadFunc: TThreadFunc; Parameter: Pointer; var ThreadId: Cardinal): Integer;
    procedure EndThread(ExitCode: Integer);
    procedure SetLineBreakStyle(var T: Text; Style: TTextLineBreakStyle);
    procedure ChDir(const S: string); overload;
    procedure ChDir(P: PChar); overload;
    function Flush(var t: Text): Integer;
    function IOResult: Integer;
    procedure MkDir(const S: string); overload;
    procedure MkDir(P: PChar); overload;
    procedure Move(const Source; var Dest; Count: Integer);
    function ParamCount: Integer;
    function ParamStr(Index: Integer): string;
    procedure Randomize;
    procedure RmDir(const S: string); overload;
    procedure RmDir(P: PChar); overload;
    function UpCase(Ch: Char): Char;
    procedure Set8087CW(NewCW: Word);
    function Get8087CW: Word;
    function WideCharToString(Source: PWideChar): string;
    function WideCharLenToString(Source: PWideChar; SourceLen: Integer): string;
    procedure WideCharToStrVar(Source: PWideChar; var Dest: string);
    procedure WideCharLenToStrVar(Source: PWideChar; SourceLen: Integer; var Dest: string);
    function StringToWideChar(const Source: string; Dest: PWideChar; DestSize: Integer): PWideChar;
    function PUCS4Chars(const S: UCS4String): PUCS4Char;
    function WideStringToUCS4String(const S: WideString): UCS4String;
    function UCS4StringToWideString(const S: UCS4String): WideString;
    function UnicodeToUtf8(Dest: PChar; Source: PWideChar; MaxBytes: Integer): Integer; overload; deprecated;
    function Utf8ToUnicode(Dest: PWideChar; Source: PChar; MaxChars: Integer): Integer; overload; deprecated;
    function UnicodeToUtf8(Dest: PChar; MaxDestBytes: Cardinal; Source: PWideChar; SourceChars: Cardinal): Cardinal; overload;
    function Utf8ToUnicode(Dest: PWideChar; MaxDestChars: Cardinal; Source: PChar; SourceBytes: Cardinal): Cardinal; overload;
    function UTF8Encode(const WS: WideString): UTF8String;
    function UTF8Decode(const S: UTF8String): WideString;
    function AnsiToUtf8(const S: string): UTF8String;
    function Utf8ToAnsi(const S: UTF8String): string;
    function OleStrToString(Source: PWideChar): string;
    procedure OleStrToStrVar(Source: PWideChar; var Dest: string);
    function StringToOleStr(const Source: string): PWideChar;
    procedure GetVariantManager(var VarMgr: TVariantManager);
    procedure SetVariantManager(const VarMgr: TVariantManager);
    function IsVariantManagerSet: Boolean;
    procedure RegisterModule(LibModule: PLibModule);
    procedure UnregisterModule(LibModule: PLibModule);
    function FindHInstance(Address: Pointer): LongWord;
    function FindClassHInstance(ClassType: TClass): LongWord;
    function FindResourceHInstance(Instance: LongWord): LongWord;
    function LoadResourceModule(ModuleName: PChar; CheckOwner: Boolean = True): LongWord;
    procedure EnumModules(Func: TEnumModuleFunc; Data: Pointer); overload;
    procedure EnumResourceModules(Func: TEnumModuleFunc; Data: Pointer); overload;
    procedure EnumModules(Func: TEnumModuleFuncLW; Data: Pointer); overload;
    procedure EnumResourceModules(Func: TEnumModuleFuncLW; Data: Pointer); overload;
    procedure AddModuleUnloadProc(Proc: TModuleUnloadProc); overload;
    procedure RemoveModuleUnloadProc(Proc: TModuleUnloadProc); overload;
    procedure AddModuleUnloadProc(Proc: TModuleUnloadProcLW); overload;
    procedure RemoveModuleUnloadProc(Proc: TModuleUnloadProcLW); overload;
    function GetModuleFileName(Module: HMODULE; Buffer: PChar; BufLen: Integer): Integer;
    function LoadResString(ResStringRec: PResStringRec): string;
    function _BlockWrite(var f: TFileRec; buffer: Pointer; recCnt: Longint; var recsWritten: Longint): Longint;
    procedure Mark; deprecated;
    procedure Release; deprecated;
    procedure UniqueString(var str: AnsiString); overload;
    procedure UniqueString(var str: WideString); overload;
    procedure DynArrayClear(var a: Pointer; typeInfo: Pointer);
    procedure DynArraySetLength(var a: Pointer; typeInfo: Pointer; dimCnt: Longint; lengthVec: PLongint);
    function DynArrayDim(typeInfo: PDynArrayTypeInfo): Integer;
    procedure FPower10;
    procedure TextStart; deprecated;
    function CompToDouble(Value: Comp): Double; cdecl;
    procedure DoubleToComp(Value: Double; var Result: Comp); cdecl;
    function CompToCurrency(Value: Comp): Currency; cdecl;
    procedure CurrencyToComp(Value: Currency; var Result: Comp); cdecl;
    function GetMemory(Size: Integer): Pointer; cdecl;
    function FreeMemory(P: Pointer): Integer; cdecl;
    function ReallocMemory(P: Pointer; Size: Integer): Pointer; cdecl;
    procedure Error(errorCode: TRuntimeError);
    function GetLastError: Integer; {$IFDEF MSWINDOWS} stdcall; {$ENDIF}
    procedure SetLastError(ErrorCode: Integer); {$IFDEF MSWINDOWS} stdcall; {$ENDIF}
    function ModuleCacheID: Cardinal;
    procedure InvalidateModuleCache;
    procedure DbgUnlockX; 
    回复人: zswang(伴水)(伤心中) (2001-11-30 21:20:05)  得0分 
    //VarUtils.pas
    function VariantInit(var V: TVarData): HRESULT; stdcall;
    function VariantClear(var V: TVarData): HRESULT; stdcall;
    function VariantCopy(var Dest: TVarData; const Source: TVarData): HRESULT; stdcall;
    function VariantCopyInd(var Dest: TVarData; const Source: TVarData): HRESULT; stdcall;
    function VariantChangeTypeEx(var Dest: TVarData; const Source: TVarData; LCID: Integer; Flags: Word; VarType: Word): HRESULT; stdcall;
    function SafeArrayCreate(VarType, DimCount: Integer; const Bounds: TVarArrayBoundArray): PVarArray; stdcall;
    function SafeArrayAllocDescriptor(DimCount: Integer; out VarArray: PVarArray): HRESULT; stdcall;
    function SafeArrayAllocData(VarArray: PVarArray): HRESULT; stdcall;
    function SafeArrayDestroy(VarArray: PVarArray): HRESULT; stdcall;
    function SafeArrayDestroyDescriptor(VarArray: PVarArray): HRESULT; stdcall;
    function SafeArrayDestroyData(VarArray: PVarArray): HRESULT; stdcall;
    function SafeArrayRedim(VarArray: PVarArray; const NewBound: TVarArrayBound): HRESULT; stdcall;
    function SafeArrayCopy(SourceArray: PVarArray; out TargetArray: PVarArray): HRESULT; stdcall;
    function SafeArrayCopyData(SourceArray, TargetArray: PVarArray): HRESULT; stdcall;
    function SafeArrayGetLBound(VarArray: PVarArray; Dim: Integer; out LBound: Integer): HRESULT; stdcall;
    function SafeArrayGetUBound(VarArray: PVarArray; Dim: Integer; out UBound: Integer): HRESULT; stdcall;
    function SafeArrayGetDim(VarArray: PVarArray): Integer; stdcall;
    function SafeArrayAccessData(VarArray: PVarArray; out Data: Pointer): HRESULT; stdcall;
    function SafeArrayUnaccessData(VarArray: PVarArray): HRESULT; stdcall;
    function SafeArrayLock(VarArray: PVarArray): HRESULT; stdcall;
    function SafeArrayUnlock(VarArray: PVarArray): HRESULT; stdcall;
    function SafeArrayGetElement(VarArray: PVarArray; Indices: PVarArrayCoorArray; Data: Pointer): HRESULT; stdcall;
    function SafeArrayPutElement(VarArray: PVarArray; Indices: PVarArrayCoorArray; const Data: Pointer): HRESULT; stdcall;
    function SafeArrayPtrOfIndex(VarArray: PVarArray; Indices: PVarArrayCoorArray; var Address: Pointer): HRESULT; stdcall;
    function SafeArrayGetElemSize(VarArray: PVarArray): LongWord; stdcall;
     
    回复人: zswang(伴水)(伤心中) (2001-11-30 21:21:21)  得0分 
    //StrUtils.pas
    function AnsiResemblesText(const AText, AOther: string): Boolean;
    function AnsiContainsText(const AText, ASubText: string): Boolean;
    function AnsiStartsText(const ASubText, AText: string): Boolean;
    function AnsiEndsText(const ASubText, AText: string): Boolean;
    function AnsiReplaceText(const AText, AFromText, AToText: string): string;
    function AnsiMatchText(const AText: string; const AValues: array of string): Boolean;
    function AnsiIndexText(const AText: string; const AValues: array of string): Integer;
    function AnsiContainsStr(const AText, ASubText: string): Boolean;
    function AnsiStartsStr(const ASubText, AText: string): Boolean;
    function AnsiEndsStr(const ASubText, AText: string): Boolean;
    function AnsiReplaceStr(const AText, AFromText, AToText: string): string;
    function AnsiMatchStr(const AText: string; const AValues: array of string): Boolean;
    function AnsiIndexStr(const AText: string; const AValues: array of string): Integer;
    function DupeString(const AText: string; ACount: Integer): string;
    function ReverseString(const AText: string): string;
    function StuffString(const AText: string; AStart, ALength: Cardinal; const ASubText: string): string;
    function RandomFrom(const AValues: array of string): string; overload;
    function IfThen(AValue: Boolean; const ATrue: string; AFalse: string = ''): string; overload;
    function LeftStr(const AText: string; const ACount: Integer): string;
    function RightStr(const AText: string; const ACount: Integer): string;
    function MidStr(const AText: string; const AStart, ACount: Integer): string;
    function SearchBuf(Buf: PChar; BufLen: Integer; SelStart, SelLength: Integer; SearchString: String; Options: TStringSearchOptions = [soDown]): PChar;
    function Soundex(const AText: string; ALength: TSoundexLength = 4): string;
    function SoundexInt(const AText: string; ALength: TSoundexIntLength = 4): Integer;
    function DecodeSoundexInt(AValue: Integer): string;
    function SoundexWord(const AText: string): Word;
    function DecodeSoundexWord(AValue: Word): string;
    function SoundexSimilar(const AText, AOther: string; ALength: TSoundexLength = 4): Boolean;
    function SoundexCompare(const AText, AOther: string; ALength: TSoundexLength = 4): Integer 
    function SoundexProc(const AText, AOther: string): Boolean;