Bug 223732 [Viewers] Rename StyledStringBuilder to StyledString
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/StyledStringBuilder.java
return (StyleRange[]) res.toArray(new StyleRange[res.size()]);
		}
		return EMPTY;
	}
	private int findRun(int offset) {
		
		int low = 0;
		int high = fStyleRuns.size() - 1;
		while (low <= high) {
			int mid = (low + high) / 2;
			StyleRun styleRun = fStyleRuns.getRun(mid);
			if (styleRun.offset < offset) {
				low = mid + 1;
			} else if (styleRun.offset > offset) {
				high = mid - 1;
			} else {
				return mid; 
			}
		}
		return -(low + 1); 
	}
	private StyleRange createStyleRange(int start, int end, Styler style) {
		StyleRange styleRange = new StyleRange();
		styleRange.start = start;
		styleRange.length = end - start;
		style.applyStyles(styleRange);
		return styleRange;
	}
	private boolean hasRuns() {
		return fStyleRuns != null && !fStyleRuns.isEmpty();