[ CCode ( cname = "yaml_scalar_event_initialize" ) ]
public int scalar_initialize (string? anchor, string? tag, string value, int length, int plain_implicit, int quoted_implicit, ScalarStyle style)
Create a SCALAR event.
The style argument may be ignored by the emitter.
Either the tag attribute or one of the plain_implicit and quoted_implicit flags must be set.
| anchor |
The scalar anchor or |
| tag |
The scalar tag or |
| value |
The scalar value. |
| length |
The length of the scalar value. |
| plain_implicit |
If the tag may be omitted for the plain style. |
| quoted_implicit |
If the tag may be omitted for any non-plain style. |
| style |
The scalar style. |
| event |
An empty event object. |
|
1 if the function succeeded, 0 on error. |