Method
IpuzCharsetVecinit_from_string
Declaration [src]
gboolean
ipuz_charset_vec_init_from_string (
IpuzCharsetVec* vec,
const IpuzCharset* charset,
const char* str
)
Description [src]
Initialises vec to a histogram of the characters in str, indexed
by their ordinal within charset.
If str contains characters not in charset, or more than 255 of
any one character, then vec will be set to invalid and FALSE will
be returned.
Parameters
charset-
Type:
IpuzCharsetThe
IpuzCharsetsupplying the ordinals.The data is owned by the caller of the method. str-
Type:
const char*A string to count the characters of.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string.