can_encode


Description:

public bool can_encode (string charset, string text, size_t len)

Check to see if the UTF-8 text will fit safely within charset.

Parameters:

this

a Charset mask

charset

a charset

text

utf-8 text to check

len

length of text

Returns:

true if it is safe to encode text into charset or false otherwise.