[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Class to manage arrays or collections of strings
|
Method to stream the contents of the string collection |
|
|
Raises an EStringListError exception. |
|
|
Abstract read handler for the TStrings.Strings property. |
|
|
Abstract Read handler for the TStrings.Capacity property. |
|
|
Abstract read handler for the TStrings.Count property. |
|
|
Abstract read handler for the TStrings.Objects property. |
|
|
Read handler for the TStrings.Text property. |
|
|
Write handler for the TStrings.Strings property. |
|
|
Write handler for the TStrings.Objects property. |
|
|
Write handler for the TStrings.Capacity property. |
|
|
Write handler for the TStrings.Text property. |
|
|
Sets the update state. |
|
|
Frees all strings and objects, and removes the list from memory. |
|
|
Add a string to the list |
|
|
Add a string and associated object to the list. |
|
|
Add a string to the list. |
|
|
Add contents of another stringlist to this list. |
|
|
Assign the contents of another stringlist to this one. |
|
|
Mark the beginning of an update batch. |
|
|
Removes all strings and associated objects from the list. |
|
|
Delete a string from the list. |
|
|
Mark the end of an update batch. |
|
|
Compares the contents of two stringlists. |
|
|
Exchanges two strings in the list. |
|
|
Returns the contents as a PChar |
|
|
Find a string in the list and return its position. |
|
|
Finds the index of a name in the name-value pairs. |
|
|
Finds an object in the list and returns its index. |
|
|
Insert a string in the list. |
|
|
Insert a string and associated object in the list. |
|
|
Load the contents of a file as a series of strings. |
|
|
Load the contents of a stream as a series of strings. |
|
|
Move a string from one place in the list to another. |
|
|
Save the contents of the list to a file. |
|
|
Save the contents of the string to a stream. |
|
|
Set the contents of the list from a PChar. |
|
|
Capacity of the list, i.e. number of strings that the list can currently hold before it tries to expand. |
|
|
Contents of the list as a comma-separated string. |
|
|
Number of strings in the list. |
|
|
Name parts of the name-value pairs in the list. |
|
|
Indexed access to the objects associated with the strings in the list. |
|
|
Value parts of the name-value pairs in the list. |
|
|
Indexed access to teh strings in the list. |
|
|
Contents of the list as one big string. |
|
|
Not implemented in Free Pascal. |
|
|
Class to manage arrays or collections of strings |
|
| | ||
|
Base class for streaming system and persistent properties. |
|
| | ||
TStrings implements an abstract class to manage an array of strings. It introduces methods to set and retrieve strings in the array, searching for a particular string, concatenating the strings and so on. It also allows an arbitrary object to be associated with each string.
It also introduces methods to manage a series of name=value settings, as found in many configuration files.
An instance of TStrings is never created directly, instead a descendent class such as TStringList should be created. This is because TStrings is an abstract class which does not implement all methods; TStrings also doesn't store any strings, this is the functionality introduced in descendents such as TStringList.
|
Standard implementation of the TStrings class. |