Method

IpuzCharsetBuilderremove_text

Declaration [src]

gboolean
ipuz_charset_builder_remove_text (
  IpuzCharsetBuilder* self,
  const char* text
)

Description [src]

Tries to remove all the characters in text from self, i.e. decrease their character counts by as many instances of each character there are in text. If text contains characters that are not already in the self, or if text contains more of a certain character than self already has, this function returns FALSE and leaves self unchanged.

Parameters

text

Type: const char*

Text whose characters should be tried to be removed.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.

Return value

Type: gboolean

TRUE, if self had sufficient characters to remove all the characters from text.