GflsValidatedString

GflsValidatedString — A string after a pass of validation

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── GflsValidatedString

Includes

#include <gfls/gfls.h>

Description

A string after a pass (or several passes) of validation.

The use-case for GflsValidatedString is when you have raw data that must be validated before being used elsewhere (for example, to insert it into a GtkTextBuffer). The initially invalid regions in the data have been made valid and are marked as such by having separate GflsValidatedStringChunk's. See gfls_validated_string_chunk_get_valid().

Each chunk is also nul-terminated.

Functions

gfls_validated_string_get_chunks ()

GflsValidatedStringChunk **
gfls_validated_string_get_chunks (GflsValidatedString *validated_string);

Parameters

validated_string

a GflsValidatedString.

 

Returns

the chunks.

[nullable][transfer none][array zero-terminated=1]

Since: 0.5

Types and Values

struct GflsValidatedString

struct GflsValidatedString;