System.Classes.TReader.ReadIdent
Delphi
function ReadIdent: string;
C++
System::UnicodeString __fastcall ReadIdent();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Classes.pas System.Classes.hpp |
System.Classes | TReader |
Description
Reads and returns a string type value from the reader object's stream.
ReadIdent is a helper method used by other reader methods to read a string type element at the current reader Position.
ReadIdent calls ReadValue to read the value-type indicator. If the retrieved value-type indicator is:
vaIdent
-- ReadIdent calls Read to read the string type identifier at the current reader Position and returns the obtained value. Notice that ReadIdent does not check whether the retrieved string is a correct identifier.vaFalse
-- ReadIdent returns theFalse
string.vaTrue
-- ReadIdent returns theTrue
string.vaNil
-- ReadIdent returns theNil
string.vsaNull
-- ReadIdent returns theNull
string.- Otherwise, ReadIdent raises an EReadError exception.
ReadIdent advances the reader Position after the last byte it has read.