LOG.error(e.getMessage(), e); Bidi line = new Bidi(s.length(), s.length()); line.setPara(s, Bidi.LEVEL_DEFAULT_LTR, null); byte direction = line.getDirection();
/** * Create a Bidi object representing the bidi information on a line of text * within the paragraph represented by the current Bidi. This call is not * required if the entire paragraph fits on one line. * * @param lineStart the offset from the start of the paragraph to the start * of the line. * @param lineLimit the offset from the start of the paragraph to the limit * of the line. * * @throws IllegalStateException if this call is not preceded by a successful * call to <code>setPara</code> * @throws IllegalArgumentException if lineStart and lineLimit are not in the range * <code>0<=lineStart<lineLimit<=getProcessedLength()</code>, * or if the specified line crosses a paragraph boundary * @stable ICU 3.8 */ public Bidi createLineBidi(int lineStart, int lineLimit) { return new Bidi(bidi.createLineBidi(lineStart, lineLimit)); }
/** * Create a Bidi object representing the bidi information on a line of text * within the paragraph represented by the current Bidi. This call is not * required if the entire paragraph fits on one line. * * @param lineStart the offset from the start of the paragraph to the start * of the line. * @param lineLimit the offset from the start of the paragraph to the limit * of the line. * * @throws IllegalStateException if this call is not preceded by a successful * call to <code>setPara</code> * @throws IllegalArgumentException if lineStart and lineLimit are not in the range * <code>0<=lineStart<lineLimit<=getProcessedLength()</code>, * or if the specified line crosses a paragraph boundary * @stable ICU 3.8 */ public Bidi createLineBidi(int lineStart, int lineLimit) { return new Bidi(bidi.createLineBidi(lineStart, lineLimit)); }
static Bidi setLine(Bidi paraBidi, int start, int limit) { int length; Bidi lineBidi = new Bidi();
levels[1], outOrder); if (currentScheme != null) { this.bidi = new Bidi(); this.reorderingOptions = Mirroring.ON.equals(doMirroring) ? Bidi.DO_MIRRORING : Bidi.REORDER_DEFAULT;
Bidi bidi= new Bidi(lineText, baseLevel); if (bidi.isLeftToRight())
Bidi bidi= new Bidi(lineText, baseLevel); if (bidi.isLeftToRight())