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

Description Usage Arguments Value Author(s) Examples

View source: R/utf8latex.R

Description

is.Hiragana returns TRUE if a UTF-8 string is within the Hiragana Unicode ranges

Usage

1
is.Hiragana(utf8char)

Arguments

utf8char

UTF-8 string

Value

logic

Author(s)

Jose' Gama

Examples

1
2
3
4
5
fileIn<-system.file('extdata/TextHiragana.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 Hiragana Unicode ranges
lapply(unlist(strsplit(x,'')), is.Hiragana)

utf8latex documentation built on May 30, 2017, 4:30 a.m.