| Top |
GflsValidatedStringBuilderGflsValidatedStringBuilder — Builds GflsValidatedString objects |
GflsValidatedStringBuilder *
gfls_validated_string_builder_new (void);
[skip]
a new GflsValidatedStringBuilder. Free with
gfls_validated_string_builder_free_to_validated_string().
[transfer full]
Since: 0.5
GflsValidatedString *
gfls_validated_string_builder_free_to_validated_string
(GflsValidatedStringBuilder *builder);
Transfers the data from builder
into a new immutable GflsValidatedString,
and frees builder
.
Returns NULL if no chunks have been added to builder
.
[skip]
Since: 0.5
void
gfls_validated_string_builder_free (GflsValidatedStringBuilder *builder);
Frees builder
.
Call this function if you don't need the resulting GflsValidatedString.
Since: 0.5
void gfls_validated_string_builder_append_chunk (GflsValidatedStringBuilder *builder,GflsValidatedStringChunk *chunk);
Adds chunk
to the end of the string.
Since: 0.5
void gfls_validated_string_builder_append_validated_string (GflsValidatedStringBuilder *builder,GflsValidatedString *validated_string);
Adds all the chunks of validated_string
to the end of the string.
Since: 0.5
void
gfls_validated_string_builder_simplify
(GflsValidatedStringBuilder *builder);
Merges contiguous chunks of the same kind.
Since: 0.5