Method

IpuzCharsetVecsubtract

Declaration [src]

gboolean
ipuz_charset_vec_subtract (
  IpuzCharsetVec* vec,
  const IpuzCharsetVec* other
)

Description [src]

Subtracts every count in other from the matching count in vec.

A count that would go below 0 leaves vec invalid, as does a situation where vec is smaller than other. Use ipuz_charset_vec_subset() to make sure the operation will succeed when the subtraction is not already known to be safe.

Parameters

other

Type: IpuzCharsetVec

The valid IpuzCharsetVec to subtract.

The data is owned by the caller of the method.

Return value

Type: gboolean

TRUE, if vec is still valid.