|
YATL
|
Functions for modifying span values. More...
Functions | |
| YATL_Result_t | YATL_span_ml_set_value (YATL_Span_t *span, const char **lines, const size_t *lengths, size_t line_count) |
| Set the value of a span, supporting multi-line values. | |
| YATL_Result_t | YATL_span_set_value (YATL_Span_t *span, const char *value, size_t length) |
| Set the value of a span with a single-line value.Replaces the value content of a span with new content provided as a single string. The operation is atomic - if parsing fails, the original content is preserved. | |
Functions for modifying span values.
| YATL_Result_t YATL_span_ml_set_value | ( | YATL_Span_t * | span, |
| const char ** | lines, | ||
| const size_t * | lengths, | ||
| size_t | line_count ) |
Set the value of a span, supporting multi-line values.
Replaces the value content of a span with new content, which may span multiple lines. The operation is atomic - if parsing fails, the original content is preserved.
| span | Span containing the value to replace |
| lines | Array of line content strings |
| lengths | Array of lengths for each line |
| line_count | Number of lines in the arrays |
| YATL_Result_t YATL_span_set_value | ( | YATL_Span_t * | span, |
| const char * | value, | ||
| size_t | length ) |
Set the value of a span with a single-line value.Replaces the value content of a span with new content provided as a single string. The operation is atomic - if parsing fails, the original content is preserved.
| span | Span containing the value to replace |
| value | New value string |
| length | Length of the new value string in bytes |