private void readBidiInfo(long pBidi) { length = ubidi_getLength(pBidi); offsetLevel = (length == 0) ? null : ubidi_getLevels(pBidi); baseLevel = ubidi_getParaLevel(pBidi); int runCount = ubidi_countRuns(pBidi); if (runCount == 0) { unidirectional = true; runs = null; } else if (runCount < 0) { runs = null; } else { runs = ubidi_getRuns(pBidi); // Simplified case for one run which has the base level if (runCount == 1 && runs[0].getLevel() == baseLevel) { unidirectional = true; runs = null; } } direction = ubidi_getDirection(pBidi); }
private void readBidiInfo(long pBidi) { length = ubidi_getLength(pBidi); offsetLevel = (length == 0) ? null : ubidi_getLevels(pBidi); baseLevel = ubidi_getParaLevel(pBidi); int runCount = ubidi_countRuns(pBidi); if (runCount == 0) { unidirectional = true; runs = null; } else if (runCount < 0) { runs = null; } else { runs = ubidi_getRuns(pBidi); // Simplified case for one run which has the base level if (runCount == 1 && runs[0].getLevel() == baseLevel) { unidirectional = true; runs = null; } } direction = ubidi_getDirection(pBidi); }
private void readBidiInfo(long pBidi) { length = ubidi_getLength(pBidi); offsetLevel = (length == 0) ? null : ubidi_getLevels(pBidi); baseLevel = ubidi_getParaLevel(pBidi); int runCount = ubidi_countRuns(pBidi); if (runCount == 0) { unidirectional = true; runs = null; } else if (runCount < 0) { runs = null; } else { runs = ubidi_getRuns(pBidi); // Simplified case for one run which has the base level if (runCount == 1 && runs[0].getLevel() == baseLevel) { unidirectional = true; runs = null; } } direction = ubidi_getDirection(pBidi); }
private void readBidiInfo(long pBidi) { length = ubidi_getLength(pBidi); offsetLevel = (length == 0) ? null : ubidi_getLevels(pBidi); baseLevel = ubidi_getParaLevel(pBidi); int runCount = ubidi_countRuns(pBidi); if (runCount == 0) { unidirectional = true; runs = null; } else if (runCount < 0) { runs = null; } else { runs = ubidi_getRuns(pBidi); // Simplified case for one run which has the base level if (runCount == 1 && runs[0].getLevel() == baseLevel) { unidirectional = true; runs = null; } } direction = ubidi_getDirection(pBidi); }
private void readBidiInfo(long pBidi) { length = ubidi_getLength(pBidi); offsetLevel = (length == 0) ? null : ubidi_getLevels(pBidi); baseLevel = ubidi_getParaLevel(pBidi); int runCount = ubidi_countRuns(pBidi); if (runCount == 0) { unidirectional = true; runs = null; } else if (runCount < 0) { runs = null; } else { runs = ubidi_getRuns(pBidi); // Simplified case for one run which has the base level if (runCount == 1 && runs[0].getLevel() == baseLevel) { unidirectional = true; runs = null; } } direction = ubidi_getDirection(pBidi); }
private void readBidiInfo(long pBidi) { length = ubidi_getLength(pBidi); offsetLevel = (length == 0) ? null : ubidi_getLevels(pBidi); baseLevel = ubidi_getParaLevel(pBidi); int runCount = ubidi_countRuns(pBidi); if (runCount == 0) { unidirectional = true; runs = null; } else if (runCount < 0) { runs = null; } else { runs = ubidi_getRuns(pBidi); // Simplified case for one run which has the base level if (runCount == 1 && runs[0].getLevel() == baseLevel) { unidirectional = true; runs = null; } } direction = ubidi_getDirection(pBidi); }
/** * Returns the level of the specified run. * * @param run * the index of the run. * @return the level of the run. */ public int getRunLevel(int run) { return unidirectional ? baseLevel : runs[run].getLevel(); }
/** * Returns the level of the specified run. * * @param run * the index of the run. * @return the level of the run. */ public int getRunLevel(int run) { return unidirectional ? baseLevel : runs[run].getLevel(); }
/** * Returns the level of the specified run. * * @param run * the index of the run. * @return the level of the run. */ public int getRunLevel(int run) { return unidirectional ? baseLevel : runs[run].getLevel(); }
/** * Returns the level of the specified run. * * @param run * the index of the run. * @return the level of the run. */ public int getRunLevel(int run) { return unidirectional ? baseLevel : runs[run].getLevel(); }
/** * Returns the level of the specified run. * * @param run * the index of the run. * @return the level of the run. */ public int getRunLevel(int run) { return unidirectional ? baseLevel : runs[run].getLevel(); }
/** * Returns the level of the specified run. * * @param run * the index of the run. * @return the level of the run. */ public int getRunLevel(int run) { return unidirectional ? baseLevel : runs[run].getLevel(); }
private void readBidiInfo(long pBidi) { length = ubidi_getLength(pBidi); offsetLevel = (length == 0) ? null : ubidi_getLevels(pBidi); baseLevel = ubidi_getParaLevel(pBidi); int runCount = ubidi_countRuns(pBidi); if (runCount == 0) { unidirectional = true; runs = null; } else if (runCount < 0) { runs = null; } else { runs = ubidi_getRuns(pBidi); // Simplified case for one run which has the base level if (runCount == 1 && runs[0].getLevel() == baseLevel) { unidirectional = true; runs = null; } } direction = ubidi_getDirection(pBidi); }
/** * Returns the level of the specified run. * * @param run * the index of the run. * @return the level of the run. */ public int getRunLevel(int run) { return unidirectional ? baseLevel : runs[run].getLevel(); }