anyMultibyteUTF8Characters

0th

Percentile

Check If a String Contains Multibyte UTF-8 characters

This function is used by tikzDevice to check if an incoming string contains multibyte UTF-8 characters

Keywords
character
Usage
anyMultibyteUTF8Characters(string, encoding = "UTF-8")
Arguments
string

A character vector of length 1 (a string).

encoding

Unused.

Details

This function searches through the characters in the given string, if any of the characters in the string are more than one byte then the function returns TRUE otherwise it returns FALSE.

The function will assume an input encoding of UTF-8 but will take any specified encoding into account and will convert from the specified encoding to UTF-8 before doing any checks

Value

A boolean value

See Also

tikz()

Aliases
  • anyMultibyteUTF8Characters
Examples
# NOT RUN {
# TRUE
anyMultibyteUTF8Characters('R is GNU <U+00A9>, but not <U+00AE>')
# FALSE
anyMultibyteUTF8Characters('R is GNU copyright but not restricted')

# }
Documentation reproduced from package tikzDevice, version 0.12.3.1, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.