UTF8StringPointable extends AbstractPointable implements IHashable, IComparable { public void initCap(UTF8StringBuilder builder, GrowableArray out) throws IOException { initCap(this, builder, out); }  static UTF8StringPointable generateUTF8Pointable(String string); char charAt(int offset); int charSize(int offset); int codePointAt(int offset); int codePointSize(int offset); void getCodePoints(IntCollection codePointSet); int getStringLength(); int getUTF8Length(); int getMetaDataLength(); int getCharStartOffset(); @Override int compareTo(IPointable pointer); @Override int compareTo(byte[] bytes, int start, int length); @Override int hash(); void toString(StringBuilder buffer); @Override String toString(); int ignoreCaseCompareTo(UTF8StringPointable other); int find(UTF8StringPointable pattern, boolean ignoreCase); @SuppressWarnings("squid:S1172") // unused parameter static int compare(byte[] bytes, int start, int length, byte[] thatBytes, int thatStart, int thatLength); static int compare(UTF8StringPointable pointable1, UTF8StringPointable pointable2); static int find(UTF8StringPointable src, UTF8StringPointable pattern, boolean ignoreCase); static int findInCodePoint(UTF8StringPointable src, UTF8StringPointable pattern, boolean ignoreCase); static int find(UTF8StringPointable src, UTF8StringPointable pattern, boolean ignoreCase, int startMatch); static int findInCodePoint(UTF8StringPointable src, UTF8StringPointable pattern, boolean ignoreCase,
            int startMatch); boolean contains(UTF8StringPointable pattern, boolean ignoreCase); static boolean contains(UTF8StringPointable src, UTF8StringPointable pattern, boolean ignoreCase); boolean startsWith(UTF8StringPointable pattern, boolean ignoreCase); static boolean startsWith(UTF8StringPointable src, UTF8StringPointable pattern, boolean ignoreCase); boolean endsWith(UTF8StringPointable pattern, boolean ignoreCase); static boolean endsWith(UTF8StringPointable src, UTF8StringPointable pattern, boolean ignoreCase); void concat(UTF8StringPointable next, UTF8StringBuilder builder, GrowableArray out); static void concat(UTF8StringPointable first, UTF8StringPointable next, UTF8StringBuilder builder,
            GrowableArray out); boolean substr(int codePointOffset, int codePointLength, UTF8StringBuilder builder, GrowableArray out); static boolean substr(UTF8StringPointable src, int codePointOffset, int codePointLength,
            UTF8StringBuilder builder, GrowableArray out); void substrBefore(UTF8StringPointable match, UTF8StringBuilder builder, GrowableArray out); static void substrBefore(UTF8StringPointable src, UTF8StringPointable match, UTF8StringBuilder builder,
            GrowableArray out); void substrAfter(UTF8StringPointable match, UTF8StringBuilder builder, GrowableArray out); static void substrAfter(UTF8StringPointable src, UTF8StringPointable match, UTF8StringBuilder builder,
            GrowableArray out); void lowercase(UTF8StringBuilder builder, GrowableArray out); static void lowercase(UTF8StringPointable src, UTF8StringBuilder builder, GrowableArray out); void uppercase(UTF8StringBuilder builder, GrowableArray out); static void uppercase(UTF8StringPointable src, UTF8StringBuilder builder, GrowableArray out); void initCap(UTF8StringBuilder builder, GrowableArray out); static void initCap(UTF8StringPointable src, UTF8StringBuilder builder, GrowableArray out); static void trim(UTF8StringPointable srcPtr, UTF8StringBuilder builder, GrowableArray out, boolean left,
            boolean right, IntCollection codePointSet); void trim(UTF8StringBuilder builder, GrowableArray out, boolean left, boolean right,
            IntCollection codePointSet); static void reverse(UTF8StringPointable srcPtr, UTF8StringBuilder builder, GrowableArray out); boolean findAndReplace(UTF8StringPointable searchPtr, UTF8StringPointable replacePtr, int replaceLimit,
            UTF8StringBuilder builder, GrowableArray out); static boolean findAndReplace(UTF8StringPointable srcPtr, UTF8StringPointable searchPtr,
            UTF8StringPointable replacePtr, int replaceLimit, UTF8StringBuilder builder, GrowableArray out); static final UTF8StringPointableFactory FACTORY; static final ITypeTraits TYPE_TRAITS; static final UTF8StringPointable SPACE_STRING_POINTABLE; static final Charset CESU8_CHARSET; }
@Test public void testInitCap() throws Exception { UTF8StringBuilder builder = new UTF8StringBuilder(); GrowableArray storage = new GrowableArray(); UTF8StringPointable result = new UTF8StringPointable(); UTF8StringPointable input = generateUTF8Pointable("this is it.i am;here."); input.initCap(builder, storage); result.set(storage.getByteArray(), 0, storage.getLength()); UTF8StringPointable expected = generateUTF8Pointable("This Is It.I Am;Here."); assertEquals(0, expected.compareTo(result)); }