Java中的iPrint等价物

Java中的iPrint等价物,java,c,Java,C,我正在迁移Java代码中的C代码,我需要一些字符处理内置功能,这些功能在字符处理中可用 What I'm looking for, isprint -> ??? Other I got in java.lang.Character isalnum -> isLetterOrDigit isalpha -> isLetter 有人能帮我找到iPrint的等价物吗? 确定指定的字符是否为ISO控制字符。A. 如果代码为,则字符被视为ISO控制字符 在范围“\u0000”到

我正在迁移Java代码中的C代码,我需要一些字符处理内置功能,这些功能在字符处理中可用

What I'm looking for,
isprint -> ??? 

Other I got in java.lang.Character
isalnum -> isLetterOrDigit 
isalpha -> isLetter 
有人能帮我找到iPrint的等价物吗?

确定指定的字符是否为ISO控制字符。A. 如果代码为,则字符被视为ISO控制字符 在范围“\u0000”到“\u001F”或范围“\u007F”中 通过“\u009F”

注意:此方法无法处理补充字符。支持 所有Unicode字符(包括补充字符)都使用 方法

尝试:

从 它返回字符是否为ISO控制字符。如果某个字符的代码在“\u0000”到“\u001F”之间或在“\u007F”到“\u009F”之间,则该字符被视为ISO控制字符

范例

下面的示例显示lang.Character.isISOControl()方法的用法。 包com.tutorialspoint

import java.lang.*;

public class CharacterDemo {

   public static void main(String[] args) {

      // create 2 char primitives ch1, ch2
      char ch1, ch2;

      // assign values to ch1, ch2
      ch1 = ':';
      ch2 = '\u0013';

      // create 2 boolean primitives b1, b2
      boolean b1, b2;

      // assign isISOControl results of ch1, ch2 to b1, b2
      b1 = Character.isISOControl(ch1);
      b2 = Character.isISOControl(ch2);

      String str1 = ch1 + " is an ISO control character is " + b1;
      String str2 = "ch2 is an ISO control character is " + b2;

      // print b1, b2 values
      System.out.println( str1 );
      System.out.println( str2 );
   }
}
让我们编译并运行上述程序,这将产生以下结果:

: is an ISO control character is false
ch2 is an ISO control character is true

接下来,您可以使用
false
打印字符:)

@anish不客气。
: is an ISO control character is false
ch2 is an ISO control character is true