Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

isprint equivalent in Java [duplicate]

Tags:

java

c

I'm in the process of migrating the C code in Java code, I need some character handling inbuilt functionality that is available in Character handling

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

Other I got in java.lang.Character
isalnum -> isLetterOrDigit 
isalpha -> isLetter 

Can someone help me with finding the isprint equivalent?

like image 478
anish Avatar asked Jan 13 '23 15:01

anish


1 Answers

Character#isISOControl(char ch)

Determines if the specified character is an ISO control character. A character is considered to be an ISO control character if its code is in the range '\u0000' through '\u001F' or in the range '\u007F' through '\u009F'.

Note: This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the Character#isISOControl(int) method.

like image 74
Achintya Jha Avatar answered Jan 17 '23 13:01

Achintya Jha