u_char_match: Unicode Character Matching

Description Usage Arguments Details

Description

Match Unicode characters to Unicode character ranges.

Usage

1
2
u_char_match(x, table, nomatch = NA_integer_)
x %uin% table

Arguments

x

an R object which can be coerced to a u_char vector of Unicode characters via as.u_char.

table

an R object coercible to a u_char_range vector of Unicode character range via as.u_char_range.

nomatch

the value to be returned (after coercion to integer) in the case when no match is found.

Details

u_char_match returns a vector of the positions of the (first) matches of the Unicode characters given by x (after coercion via as.u_char) to the Unicode character ranges given by table (after coercion via as.u_char_range).

%uin% returns a logical vector indicating if there was a match or not.



Search within the Unicode package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.