| Top |
GflsUtf8AutoConverter * gfls_utf8_auto_converter_new (GBytes *input_bytes,GSList *candidate_encodings,gboolean allow_invalid_bytes);
[skip]
input_bytes |
the input data. |
|
candidate_encodings |
a list of GflsEncoding's. |
[element-type GflsEncoding] |
allow_invalid_bytes |
whether to allow invalid bytes during the conversion. |
Since: 0.5
void
gfls_utf8_auto_converter_free (GflsUtf8AutoConverter *auto_converter);
Frees auto_converter
.
Since: 0.5
GflsValidatedString *
gfls_utf8_auto_converter_get_validated_string
(GflsUtf8AutoConverter *auto_converter);
Returns the converted data.
NULL can be returned if invalid bytes are disallowed.
Since: 0.5
const GflsEncoding *
gfls_utf8_auto_converter_get_chosen_encoding
(GflsUtf8AutoConverter *auto_converter);
Returns the auto-detected GflsEncoding.
NULL can be returned if invalid bytes are disallowed.
Since: 0.5
gboolean
gfls_utf8_auto_converter_get_lossy_conversion
(GflsUtf8AutoConverter *auto_converter);
Returns whether the conversion was lossy for the result as returned by
gfls_utf8_auto_converter_get_validated_string().
Since: 0.5