public static boolean isDisplayable(int codePoint) {
        return switch (Character.getType(codePoint)) {
            case Character.CONNECTOR_PUNCTUATION, Character.DASH_PUNCTUATION, Character.START_PUNCTUATION,
                 Character.END_PUNCTUATION, Character.INITIAL_QUOTE_PUNCTUATION, Character.FINAL_QUOTE_PUNCTUATION,
                 Character.OTHER_PUNCTUATION, Character.LETTER_NUMBER, Character.OTHER_LETTER,
                 Character.LOWERCASE_LETTER, Character.TITLECASE_LETTER, Character.MODIFIER_LETTER,
                 Character.UPPERCASE_LETTER, Character.DECIMAL_DIGIT_NUMBER, Character.OTHER_NUMBER,
                 Character.CURRENCY_SYMBOL, Character.OTHER_SYMBOL, Character.MATH_SYMBOL -> true;
            default -> false;
        };
    }
Returns whether the given code point is displayable.
vespajlib/src/main/java/com/yahoo/text/Text.java