UCDisposeCollator(_:)
Disposes a collator object.
Declaration
func UCDisposeCollator(_ collatorRef: UnsafeMutablePointer<CollatorRef?>!) -> OSStatusParameters
- collatorRef:
A reference to a valid collator object. The
UCDisposeCollatorfunction sets*collatorReftoNULL.
Return Value
A result code.
Discussion
To perform Unicode string comparison, you must supply locale and collation specifications to a collation function such as UCCompareText(_:_:_:_:_:_:_:). You provide this information by means of a collator object, created via the function UCCreateCollator(_:_:_:_:). When finished with the collator object, you should dispose of it using the function UCDisposeCollator.