Home Units Hierarchy Routines All identifiers

Class unaStringList

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unaStringList = class(unaRecordList)

Description

List of strings.

Hierarchy

Overview

Methods

Public constructor create();
Public function add(const value: string): int;
Public function get(index: int): string;
Public function indexOf(const value: string; exact: bool = true): int;
Public function indexOfValue(const name: string): int;
Public function insert(index: int; const value: string): int;
Public function readFromFile(const fileName: wString): int;
Public procedure setItem(index: int; const item: string);

Properties

Public property name[constindex:int]: string read getName write setName;
Public property text: string read getText write setText;
Public property value[constindex:string]: string read getValue write setValue;

Description

Methods

Public constructor create();
 
Public function add(const value: string): int;

Adds new string into list.

Public function get(index: int): string;

Returns a string by its index.

Public function indexOf(const value: string; exact: bool = true): int;

Performs a case sensitive (if exact is true) or not (if exact is false) search. Returns string index or -1 if specified string was not found.

Public function indexOfValue(const name: string): int;
 
Public function insert(index: int; const value: string): int;
 
Public function readFromFile(const fileName: wString): int;

Replaces content of text with data read from a file.

Public procedure setItem(index: int; const item: string);

Changes an item with specifiled index in the list.

Properties

Public property name[constindex:int]: string read getName write setName;
 
Public property text: string read getText write setText;
 
Public property value[constindex:string]: string read getValue write setValue;
 

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09