Scala Char isUnicodeIdentifierPart() method with example
Last Updated :
03 Nov, 2019
The isUnicodeIdentifierPart() method is utilized to find if the stated character is a part of a Unicode identifier as other than the first character or not. For example: a digit, a letter, a combining mark, a connecting punctuation character (such as ‘_’), a numeric letter (such as a Roman numeral character), and a non-spacing mark.
Method Definition: def isUnicodeIdentifierPart: Boolean
Return Type: It returns true if the stated character is part of a Unicode identifier else it returns false.
Example: 1#
object GfG
{
def main(args : Array[String])
{
val result = ( '7' ).isUnicodeIdentifierPart
println(result)
}
}
|
Example: 2#
object GfG
{
def main(args : Array[String])
{
val result = ( '_' ).isUnicodeIdentifierPart
println(result)
}
}
|
Share your thoughts in the comments
Please Login to comment...