Class ttextstream

Unit

Declaration

type ttextstream = class(tcustombufstream)

Description

No description available, ancestor tcustombufstream description follows
No description available, ancestor tmsefilestream description follows

Hierarchy

Overview

Fields

Protected fencoding: charencodingty;
Protected feolflags: eolflagsty;
Protected feol: string;
Protected feolm: msestring;

Methods

Protected function encode(const value: msestring): string;
Protected function decode(const value: string): msestring;
Public constructor create(ahandle: integer); override;
Public class function trycreate(out ainstance: ttextstream; const afilename: filenamety; const aopenmode: fileopenmodety = fm_read; const accessmode: fileaccessmodesty = []; const rights: filerightsty = defaultfilerights): syserrorty;
Public procedure return;
Public procedure writestr(const value: string);
Public procedure writestrln(const value: string);
Public function readstrln(var value: string): boolean; overload; virtual;
Public procedure writetotext(var dest: text);
Public procedure write(const value: string); reintroduce; overload;
Public procedure write(const value: msestring); reintroduce; overload;
Public procedure write(const value: real); reintroduce; overload;
Public procedure write(const value: integer); reintroduce; overload;
Public procedure write(const value: boolean); reintroduce; overload;
Public procedure write(const values: array of const); reintroduce; overload;
Public procedure writeln; overload;
Public procedure writeln(const value: string); overload; virtual;
Public procedure writeln(const value: msestring); overload;
Public procedure writeln(const value: real); overload;
Public procedure writeln(const value: integer); overload;
Public procedure writeln(const value: boolean); overload;
Public procedure writeln(const value: msestringarty); overload;
Public procedure writeln(const value: stringarty); overload;
Public procedure writeln(const values: array of const); overload;
Public function readln: boolean; overload;
Public function readln(var value: string): boolean; overload;
Public function readln(var value: msestring): boolean; overload;
Public function readln(out value: integer): boolean; overload;
Public function readln(out value: boolean): boolean; overload;
Public function readln(out value: real): boolean; overload;
Public function readln(out value: msestringarty): boolean; overload;
Public function readln(out value: stringarty): boolean; overload;
Public procedure writestrings(const value: stringarty);
Public procedure writemsestrings(const value: msestringarty);
Public function readstrings: stringarty;
Public function readmsestrings: msestringarty;
Public function readmsedatastring: msestring;
Public function readstring(const default: string): string;
Public function readinteger(default: integer; min: integer = minint; max: integer = maxint): integer;
Public function readboolean(default: boolean): boolean;
Public function readreal(default: real; min: real = -bigreal; max: real = bigreal): real;
Public function findnext(const substring: string): boolean;
Public function linecount: integer;
Public procedure resetsearch;
Public function searchnext: boolean;
Public function foundeolstyle: eolstylety;

Properties

Public property nativesearchtext: string read fsearchtext write setsearchtext;
Public property msesearchtext: msestring read getmsesearchtext write setmsesearchtext;
Public property searchoptions: searchoptionsty read fsearchoptions write setsearchoptions;
Public property searchpos: longword read fsearchpos write fsearchpos;
Public property searchfoundpos: longword read fsearchfoundpos;
Public property searchlinestartpos: longword read fsearchlinestartpos write fsearchlinestartpos;
Public property searchlinenumber: longword read fsearchlinenumber write fsearchlinenumber;
Public property searchabortpo: pboolean read fsearchabortpo write fsearchabortpo;
Public property notopen: boolean read getnotopen;
Public property encoding: charencodingty read fencoding write fencoding default ce_locale;
Public property eolstyle: eolstylety read feolstyle write seteolstyle default eol_default;

Description

Fields

Protected fencoding: charencodingty;
 
Protected feolflags: eolflagsty;
 
Protected feol: string;
 
Protected feolm: msestring;
 

Methods

Protected function encode(const value: msestring): string;
 
Protected function decode(const value: string): msestring;
 
Public constructor create(ahandle: integer); override;
 
Public class function trycreate(out ainstance: ttextstream; const afilename: filenamety; const aopenmode: fileopenmodety = fm_read; const accessmode: fileaccessmodesty = []; const rights: filerightsty = defaultfilerights): syserrorty;
 
Public procedure return;
 
Public procedure writestr(const value: string);
 
Public procedure writestrln(const value: string);
 
Public function readstrln(var value: string): boolean; overload; virtual;
 
Public procedure writetotext(var dest: text);
 
Public procedure write(const value: string); reintroduce; overload;
 
Public procedure write(const value: msestring); reintroduce; overload;
 
Public procedure write(const value: real); reintroduce; overload;
 
Public procedure write(const value: integer); reintroduce; overload;
 
Public procedure write(const value: boolean); reintroduce; overload;
 
Public procedure write(const values: array of const); reintroduce; overload;
 
Public procedure writeln; overload;
 
Public procedure writeln(const value: string); overload; virtual;
 
Public procedure writeln(const value: msestring); overload;
 
Public procedure writeln(const value: real); overload;
 
Public procedure writeln(const value: integer); overload;
 
Public procedure writeln(const value: boolean); overload;
 
Public procedure writeln(const value: msestringarty); overload;
 
Public procedure writeln(const value: stringarty); overload;
 
Public procedure writeln(const values: array of const); overload;
 
Public function readln: boolean; overload;
 
Public function readln(var value: string): boolean; overload;
 
Public function readln(var value: msestring): boolean; overload;
 
Public function readln(out value: integer): boolean; overload;
 
Public function readln(out value: boolean): boolean; overload;
 
Public function readln(out value: real): boolean; overload;
 
Public function readln(out value: msestringarty): boolean; overload;
 
Public function readln(out value: stringarty): boolean; overload;
 
Public procedure writestrings(const value: stringarty);
 
Public procedure writemsestrings(const value: msestringarty);
 
Public function readstrings: stringarty;
 
Public function readmsestrings: msestringarty;
 
Public function readmsedatastring: msestring;
 
Public function readstring(const default: string): string;
 
Public function readinteger(default: integer; min: integer = minint; max: integer = maxint): integer;
 
Public function readboolean(default: boolean): boolean;
 
Public function readreal(default: real; min: real = -bigreal; max: real = bigreal): real;
 
Public function findnext(const substring: string): boolean;
 
Public function linecount: integer;
 
Public procedure resetsearch;
 
Public function searchnext: boolean;
 
Public function foundeolstyle: eolstylety;
 

Properties

Public property nativesearchtext: string read fsearchtext write setsearchtext;
 
Public property msesearchtext: msestring read getmsesearchtext write setmsesearchtext;
 
Public property searchoptions: searchoptionsty read fsearchoptions write setsearchoptions;
 
Public property searchpos: longword read fsearchpos write fsearchpos;
 
Public property searchfoundpos: longword read fsearchfoundpos;
 
Public property searchlinestartpos: longword read fsearchlinestartpos write fsearchlinestartpos;
 
Public property searchlinenumber: longword read fsearchlinenumber write fsearchlinenumber;
 
Public property searchabortpo: pboolean read fsearchabortpo write fsearchabortpo;
 
Public property notopen: boolean read getnotopen;
 
Public property encoding: charencodingty read fencoding write fencoding default ce_locale;
 
Public property eolstyle: eolstylety read feolstyle write seteolstyle default eol_default;
 

Generated by PasDoc 0.16.0.