Editor/display changes

This commit is contained in:
Sergey Solovyev 2012-09-24 23:41:54 +04:00
parent 4e42f6ad6b
commit 9c20d58678

View File

@ -91,7 +91,7 @@ public class TextHighlighter implements TextProcessor<TextHighlighter.Result, St
int maxNumberOfOpenGroupSymbols = 0; int maxNumberOfOpenGroupSymbols = 0;
int numberOfOpenGroupSymbols = 0; int numberOfOpenGroupSymbols = 0;
final StringBuilder text1 = new StringBuilder(); final StringBuilder text1 = new StringBuilder(5 * text.length());
int resultOffset = 0; int resultOffset = 0;
@ -156,7 +156,7 @@ public class TextHighlighter implements TextProcessor<TextHighlighter.Result, St
if (maxNumberOfOpenGroupSymbols > 0) { if (maxNumberOfOpenGroupSymbols > 0) {
final StringBuilder text2 = new StringBuilder(); final StringBuilder text2 = new StringBuilder(text1.length());
String s = text1.toString(); String s = text1.toString();
int i = processBracketGroup(text2, s, 0, 0, maxNumberOfOpenGroupSymbols); int i = processBracketGroup(text2, s, 0, 0, maxNumberOfOpenGroupSymbols);