private static int copy(Text value, Text destination, int offset) { int length = Math.min(value.length, destination.maxLength - offset); value.getStyledChars(value.from, length, destination, offset); return length; }
private static int copy(Text value, Text destination, int offset) { int length = Math.min(value.length, destination.maxLength - offset); value.getStyledChars(value.from, length, destination, offset); return length; }