best


Description:

public static unowned string? best (string inbuf, size_t inlen)

Computes the best charset to use to encode this text buffer.

Parameters:

inbuf

a UTF-8 text buffer

inlen

input buffer length

Returns:

the charset name best suited for the input text or null if it is ascii-safe.