---
title: "CFStringTokenizerCopyCurrentTokenAttribute(_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfstringtokenizercopycurrenttokenattribute(_:_:)"
---

# CFStringTokenizerCopyCurrentTokenAttribute(_:_:)

Returns a given attribute of the current token.

## Declaration

```swift
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

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

- [CFStringTokenizerGetCurrentTokenRange(_:)](corefoundation/cfstringtokenizergetcurrenttokenrange(_:).md)
- [CFStringTokenizerGetCurrentSubTokens(_:_:_:_:)](corefoundation/cfstringtokenizergetcurrentsubtokens(_:_:_:_:).md)
