System.Classes.TWriter.WriteIdent
Delphi
procedure WriteIdent(const Ident: string);
C++
void __fastcall WriteIdent(const System::UnicodeString Ident);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Classes.pas System.Classes.hpp |
System.Classes | TWriter |
Description
Writes the passed Ident
identifier to the writer object's stream.
WriteIdent is used internally by the component streaming system to write component properties being string type identifiers to the writer object's stream.
WriteIdent works as follows:
- If
Ident
isFalse
, then WriteIdent callsWriteValue(vaFalse)
and returns. - If
Ident
isTrue
, then WriteIdent callsWriteValue(vaTrue)
and returns. - If
Ident
isNil
, then WriteIdent callsWriteValue(vaNil)
and returns. - If
Ident
isNull
, then WriteIdent callsWriteValue(vaNull)
and returns. - Otherwise, WriteIdent calls
WriteValue(vaIdent)
and then callsWriteUTF8Str(Ident)
to write the identifier as a string.
Notice that WriteIdent does not check whether theIdent
string is a correct identifier.
WriteIdent advances the current position after the last written byte.