public int length() {
        split();

        return splitted.size() - 1;
    }
@Test
    public void testLengthCPs() {
        final UnicodeHelper lh = new UnicodeHelper("a", Method.CODEPOINTS);
        assertEquals(1, lh.length());

        final UnicodeHelper lh2 = new UnicodeHelper(new String(Character.toChars(0x1f600)), Method.CODEPOINTS);
        assertEquals(1, lh2.length());

        final UnicodeHelper lh3 = new UnicodeHelper(UCSTR, Method.CODEPOINTS);
        assertEquals(5, lh3.length());

        final UnicodeHelper lh4 = new UnicodeHelper("a" + UCSTR + "A", Method.CODEPOINTS);
        assertEquals(7, lh4.length());

        final UnicodeHelper lh5 = new UnicodeHelper("k\u035fh", Method.CODEPOINTS);
        assertEquals(3, lh5.length());
    }