static int getStringDisplayWidth(String str) {
        int numOfFullWidthCh = (int) str.codePoints().filter(TableauStyle::isFullWidth).count();
        return str.length() + numOfFullWidthCh;
    }
@Test
    void testStringDisplayWidth() {
        List<String> data =
                Arrays.asList(
                        "abcdefg,12345,ABC",
                        "to be or not to be that's a question.",
                        "这是一段中文",
                        "これは日本語をテストするための文です");
        int[] expected = new int[] {17, 37, 12, 36};

        for (int i = 0; i < data.size(); i++) {
            assertThat(TableauStyle.getStringDisplayWidth(data.get(i))).isEqualTo(expected[i]);
        }
    }