scalar_initialize


Description:

[ 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.

Parameters:

anchor

The scalar anchor or NULL.

tag

The scalar tag or NULL.

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.

Returns:

1 if the function succeeded, 0 on error.