isIdentifierIgnorable()方法用于确定指定字符是Scala标识符还是Unicode标识符中的可忽略字符。
函数定义: def isIdentifierIgnorable: Boolean
返回类型: It returns true if the stated character is an ignorable control character else it returns false.
示例:1#
// Scala program of isIdentifierIgnorable() 
// method 
  
// Creating object 
object GfG 
{  
  
    // Main method 
    def main(args:Array[String]) 
    { 
      
        // Applying isIdentifierIgnorable() method  
        val result = ('\u0555').isIdentifierIgnorable 
          
        // Displays output 
        println(result) 
      
    } 
} 
输出:
false
示例:2#
// Scala program of isIdentifierIgnorable() 
// method 
  
// Creating object 
object GfG 
{  
  
    // Main method 
    def main(args:Array[String]) 
    { 
      
        // Applying isIdentifierIgnorable() method 
        val result = ('\u000E').isIdentifierIgnorable 
          
        // Displays output 
        println(result) 
      
    } 
} 
输出:
true
相关用法
注:本文由纯净天空筛选整理自nidhi1352singh大神的英文原创作品 Scala Char isIdentifierIgnorable() method with example。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。
