Utilities unit.
function BrookStartsChar(const Ch: Char; const S: string): Boolean; |
function BrookEndsChar(const Ch: Char; const S: string): Boolean; |
procedure BrookExtractPathLevels(S: string; var R: string; out ALvl: string; out AEndDelim: Boolean; const ADelimiter: Char = US); |
function BrookGetPathLevel(const APath: string; const AIndex: SizeInt = 0; const ADelimiter: Char = US): string; |
function BrookGetPathLevels(const APath: string; const AIndex: SizeInt = 0; const ADelimiter: Char = US): string; |
function BrookMatchMethod(const ABrookMethod: TBrookRequestMethod; const AMethod: string): Boolean; |
function BrookFileDate(const AFileName: TFileName): TDateTime; |
function BrookDumpStack(const AEOL: ShortString = BR): string; |
function BrookDumpStackTrace(const AEOL: ShortString = BR): string; |
function BrookExcludeTrailingUrlDelimiter(const AUrl: string): string; |
function BrookIncludeTrailingUrlDelimiter(const AUrl: string): string; |
function BrookExists(const S: string; const AParts: array of string): Boolean; overload; |
function BrookExists(const S: string; const AParts: array of string; const AIgnoreCase: Boolean): Boolean; overload; |
procedure BrookStringToObject(AObject: TObject; APropInfo: PPropInfo; const AValue: string); overload; |
procedure BrookStringToObject(AObject: TObject; const AName, AValue: string); overload; |
procedure BrookSafeStringToObject(AObject: TObject; const AName, AValue: string); |
procedure BrookStringsToObject(AObject: TObject; AStrings: TStrings); overload; |
procedure BrookStringsToObject(AObject: TObject; AStrings: TStrings; const AIgnoredProps: array of string); overload; |
procedure BrookStringsToObject(AObject: TObject; AStrings: TStrings; const AIgnoredProps: TStrings); overload; |
procedure BrookSafeStringsToObject(AObject: TObject; AStrings: TStrings); overload; |
procedure BrookSafeStringsToObject(AObject: TObject; AStrings: TStrings; const AIgnoredProps: array of string); overload; |
procedure BrookSafeStringsToObject(AObject: TObject; AStrings: TStrings; const AIgnoredProps: TStrings); overload; |
procedure BrookObjectToString(AObject: TObject; APropInfo: PPropInfo; out AValue: string); overload; |
procedure BrookObjectToString(AObject: TObject; const AName: string; out AValue: string); overload; |
procedure BrookSafeObjectToString(AObject: TObject; const AName: string; out AValue: string); |
procedure BrookObjectToStrings(AObject: TObject; AStrings: TStrings); overload; |
procedure BrookObjectToStrings(AObject: TObject; AStrings: TStrings; const AIgnoredProps: array of string); overload; |
procedure BrookObjectToStrings(AObject: TObject; AStrings: TStrings; const AIgnoredProps: TStrings); overload; |
procedure BrookSafeObjectToStrings(AObject: TObject; AStrings: TStrings); overload; |
procedure BrookSafeObjectToStrings(AObject: TObject; AStrings: TStrings; const AIgnoredProps: array of string); overload; |
procedure BrookSafeObjectToStrings(AObject: TObject; AStrings: TStrings; const AIgnoredProps: TStrings); overload; |
procedure BrookCopyObject(APropList: PPropList; const APropCount: Integer; AFrom, ATo: TObject); overload; |
procedure BrookCopyObject(APropList: PPropList; const APropCount: Integer; AFrom, ATo: TObject; const AIgnoredProps: array of string); overload; |
procedure BrookCopyObject(APropList: PPropList; const APropCount: Integer; AFrom, ATo: TObject; const AIgnoredProps: TStrings); overload; |
procedure BrookCopyObject(AFrom, ATo: TObject); overload; |
procedure BrookCopyObject(AFrom, ATo: TObject; const AIgnoredProps: array of string); overload; |
procedure BrookCopyObject(AFrom, ATo: TObject; const AIgnoredProps: TStrings); overload; |
procedure BrookSafeCopyObject(APropList: PPropList; const APropCount: Integer; AFrom, ATo: TObject); overload; |
procedure BrookSafeCopyObject(APropList: PPropList; const APropCount: Integer; AFrom, ATo: TObject; const AIgnoredProps: array of string); overload; |
procedure BrookSafeCopyObject(APropList: PPropList; const APropCount: Integer; AFrom, ATo: TObject; const AIgnoredProps: TStrings); overload; |
procedure BrookSafeCopyObject(AFrom, ATo: TObject); overload; |
procedure BrookSafeCopyObject(AFrom, ATo: TObject; const AIgnoredProps: array of string); overload; |
procedure BrookSafeCopyObject(AFrom, ATo: TObject; const AIgnoredProps: TStrings); overload; |