is.Bengali: Determining if a UTF-8 string is within the Bengali Unicode...

Description Usage Arguments Value Author(s) Examples

Description

is.Bengali returns TRUE if a UTF-8 string is within the Bengali Unicode ranges is.Brahmi returns TRUE if a UTF-8 string is within the Brahmi Unicode ranges is.Chakma returns TRUE if a UTF-8 string is within the Chakma Unicode ranges is.Devanagari returns TRUE if a UTF-8 string is within the Devanagari Unicode ranges is.Gujarati returns TRUE if a UTF-8 string is within the Gujarati Unicode ranges is.Kannada returns TRUE if a UTF-8 string is within the Kannada Unicode ranges is.Tamil returns TRUE if a UTF-8 string is within the Tamil Unicode ranges is.Telugu returns TRUE if a UTF-8 string is within the Telugu Unicode ranges

Usage

1
is.Bengali(utf8char)

Arguments

utf8char

UTF-8 string

Value

logic

Author(s)

Jose' Gama

Examples

1
2
3
4
5
fileIn<-system.file('extdata/TextBengali.txt', package='utf8latex')
# read a UTF-8 string from a file
x <- scan(file=fileIn,'character', fileEncoding='UTF-8')
# check if every character is within the Bengali Unicode ranges
lapply(unlist(strsplit(x,'')), is.Bengali)

Example output

Read 1 item
Warning message:
In scan(file = fileIn, "character", fileEncoding = "UTF-8") :
  invalid input found on input connection '/usr/local/lib/R/site-library/utf8latex/extdata/TextBengali.txt'
[[1]]
[1] FALSE

utf8latex documentation built on May 2, 2019, 6:16 p.m.