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
IdentisFalse, then WriteIdent callsWriteValue(vaFalse)and returns. - If
IdentisTrue, then WriteIdent callsWriteValue(vaTrue)and returns. - If
IdentisNil, then WriteIdent callsWriteValue(vaNil)and returns. - If
IdentisNull, 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 theIdentstring is a correct identifier.
WriteIdent advances the current position after the last written byte.