Function CFStringTokenizerCreate

Source
pub unsafe extern "C-unwind" fn CFStringTokenizerCreate(
    alloc: Option<&CFAllocator>,
    string: Option<&CFString>,
    range: CFRange,
    options: CFOptionFlags,
    locale: Option<&CFLocale>,
) -> Option<CFRetained<CFStringTokenizer>>
Available on crate features CFBase and CFLocale and CFStringTokenizer only.
Expand description

Creates a tokenizer instance.

Parameter alloc: The CFAllocator which should be used to allocate memory for the tokenizer and its storage for values. This parameter may be NULL in which case the current default CFAllocator is used.

Parameter string: The string to tokenize.

Parameter range: The range of characters within the string to be tokenized. The specified range must not exceed the length of the string.

Parameter options: Use one of the Tokenization Unit options to specify how the string should be tokenized. Optionally specify one or more attribute specifiers to tell the tokenizer to prepare specified attributes when it tokenizes the string.

Parameter locale: The locale to specify language or region specific behavior. Pass NULL if you want tokenizer to identify the locale automatically.

Returns: A reference to the new CFStringTokenizer.