---
title: "CFStringTokenizerGetCurrentTokenRange(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfstringtokenizergetcurrenttokenrange(_:)"
---

# CFStringTokenizerGetCurrentTokenRange(_:)

Returns the range of the current token.

## Declaration

```swift
func CFStringTokenizerGetCurrentTokenRange(_ tokenizer: CFStringTokenizer!) -> CFRange
```

## Parameters

- `tokenizer`: A CFStringTokenizer object.

## Return Value

Return Value The range of the current token, or {``kCFNotFound, 0} if there is no current token.

## See Also

### Getting Information About the Current Token

- [CFStringTokenizerCopyCurrentTokenAttribute(_:_:)](corefoundation/cfstringtokenizercopycurrenttokenattribute(_:_:).md)
- [CFStringTokenizerGetCurrentSubTokens(_:_:_:_:)](corefoundation/cfstringtokenizergetcurrentsubtokens(_:_:_:_:).md)
