public void trim(UTF8StringBuilder builder, GrowableArray out, boolean left, boolean right, CharSet charSet) throws IOException { trim(this, builder, out, left, right, charSet); }
/** * Trims an input source string and lets <code>resultStrPtr</code> points to the resulting string. * * @param srcPtr * , an input source string. * @param resultStrPtr * , a pointable that is supposed to point to the resulting string. * @param left * , whether to trim the left side. * @param right * , whether to trim the right side. * @throws IOException */ public void trim(UTF8StringPointable srcPtr, IPointable resultStrPtr, boolean left, boolean right) throws IOException { UTF8StringPointable.trim(srcPtr, resultBuilder, resultArray, left, right, charSet); resultStrPtr.set(resultArray.getByteArray(), 0, resultArray.getLength()); } }