Class TCastleStringList
Unit
Declaration
type TCastleStringList = class(TStringList)
Description
List of strings. This is a slightly extended version of standard TStringList. The default CaseSensitive value is True
.
Hierarchy
- TObject
- TPersistent
- TStrings
- TStringList
- TCastleStringList
Overview
Methods
constructor Create; |
|
procedure AddRange(const Source: TStrings); overload; |
|
procedure AddList(const Source: TStrings); deprecated 'use AddRange, consistent with other lists'; |
|
procedure AddRange(const A: array of String); overload; |
|
procedure AddArray(const A: array of String); deprecated 'use AddRange, consistent with other lists'; |
|
procedure AssignArray(const A: array of String); deprecated 'use Assign'; |
|
procedure Assign(const A: array of String); overload; |
|
function Equals(SecondValue: TObject): Boolean; override; overload; |
|
function Equals(const A: array of String): Boolean; overload; |
|
function PerfectlyEquals(const SecondValue: TStringList): Boolean; |
|
procedure Reverse; |
Properties
property Count: Integer read GetCount write SetCount; |
|
property L[const Index: TListSize]: String read GetL write SetL; |
Description
Methods
constructor Create; |
|
This item has no description. |
procedure AddRange(const Source: TStrings); overload; |
|
Add strings from Source list. Alias for AddStrings, useful for usage with macros, since it's consistent with AddRange in other lists. |
procedure AddRange(const A: array of String); overload; |
|
This item has no description. |
procedure AssignArray(const A: array of String); deprecated 'use Assign'; |
|
Warning: this symbol is deprecated: use Assign This item has no description. |
procedure Assign(const A: array of String); overload; |
|
This item has no description. |
function Equals(SecondValue: TObject): Boolean; override; overload; |
|
Does another string list have equal length and content. Any other TStrings descendant may be equal to this instance, we don't require it to be a TCastleStringList instance. We also don't check all the properties, like Delimiter or such. We only compare the contents: count, and actual strings. The comparison is case-sensitive, or not, depending on the value of CaseSensitive property of this list. |
function Equals(const A: array of String): Boolean; overload; |
|
In Delphi, they have non-virtual TStringList.Equals that hides virtual TObject.Equals... |
function PerfectlyEquals(const SecondValue: TStringList): Boolean; |
|
Does the SecondValue have equal length and content. This method does the same thing as Equals. It is defined for consistency – on some lists, like TSingleList, there is an important difference between Equals (compares with some epsilon tolerance) and |
procedure Reverse; |
|
Reverse the order of items on the array. |
Properties
property Count: Integer read GetCount write SetCount; |
|
This item has no description. |
property L[const Index: TListSize]: String read GetL write SetL; |
|
Access strings. This is exactly equivalent to just using standard TStringList.Strings property, and is useful only for implementing macros that work for both TCastleStringList and TStructList. |
Generated by PasDoc 0.16.0-snapshot.