Function

CFStringTokenizerCopyCurrentTokenAttribute(_:_:)

Returns a given attribute of the current token.

Declaration

func CFStringTokenizerCopyCurrentTokenAttribute(_ tokenizer: CFStringTokenizer!, _ attribute: CFOptionFlags) -> CFTypeRef!

Parameters

tokenizer

A CFStringTokenizer object.

attribute

The token attribute to obtain. The value must be kCFStringTokenizerAttributeLatinTranscription, or kCFStringTokenizerAttributeLanguage.

Return Value

The attribute specified by attribute of the current token, or NULL if the current token does not have the specified attribute or there is no current token. Ownership follows the The Create Rule.

See Also

Getting Information About the Current Token