Class TStringVector

Unit

Declaration

type TStringVector = class(TStringList)

Description

Hierarchy

Overview

Methods

Public function FirstName: string;
Public procedure LoadFromTextFileAdd(const AFilename: string); overload;
Public procedure LoadFromTextFileAdd(var ATextFile: TextFile); overload;
Public procedure RemoveAllNamesCI(const AName: string);
Public function ExistsNameCI(const AName: string): boolean;
Public function IsEmpty: boolean;
Public function AddNotExisting(const AString: string): Integer;
Public procedure LoadFromBinaryStream(Stream: TStream);
Public procedure SaveToBinaryStream(Stream: TStream);

Description

Methods

Public function FirstName: string;

This is the same thing as Items[0]

Public procedure LoadFromTextFileAdd(const AFilename: string); overload;
 
Public procedure LoadFromTextFileAdd(var ATextFile: TextFile); overload;
 
Public procedure RemoveAllNamesCI(const AName: string);
 
Public function ExistsNameCI(const AName: string): boolean;
 
Public function IsEmpty: boolean;
 
Public function AddNotExisting(const AString: string): Integer;
 
Public procedure LoadFromBinaryStream(Stream: TStream);

Load from a stream using the binary format.

The binary format is

Note that you should never use our Text value to load/save this object from/into a stream, like Text := TSerializable.LoadStringFromStream(Stream). Using and assigning to the Text value breaks when some strings have newlines inside that should be preserved.

Public procedure SaveToBinaryStream(Stream: TStream);

Save to a stream, in a format readable by LoadFromBinaryStream.


Generated by PasDoc 0.16.0.