java.text.Bidi.getRunLimit()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(164)

本文整理了Java中java.text.Bidi.getRunLimit()方法的一些代码示例,展示了Bidi.getRunLimit()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bidi.getRunLimit()方法的具体详情如下:
包路径:java.text.Bidi
类名称:Bidi
方法名:getRunLimit

Bidi.getRunLimit介绍

[英]Returns the limit offset of the specified run.
[中]返回指定运行的限制偏移量。

代码示例

代码示例来源:origin: apache/pdfbox

int end = bidi.getRunLimit(index);

代码示例来源:origin: geotools/geotools

String r = "";
for (int i = 0; i < bidi.getRunCount(); i++) {
  String s1 = label.substring(bidi.getRunStart(i), bidi.getRunLimit(i));
  if (bidi.getRunLevel(i) % 2 == 0) {
    s1 = new StringBuffer(s1).reverse().toString();

代码示例来源:origin: at.bestsolution.eclipse/com.ibm.icu.base

/**
 * Return the index of the character past the end of the nth logical run in
 * this line, as an offset from the start of the line. For example, this
 * will return the length of the line for the last run on the line.
 *
 * @param run the index of the run, between 0 and <code>countRuns()</code>
 *
 * @return the limit of the run
 *
 * @throws IllegalStateException if this call is not preceded by a successful
 *         call to <code>setPara</code> or <code>setLine</code>
 * @throws IllegalArgumentException if <code>run</code> is not in
 *         the range <code>0&lt;=run&lt;countRuns()</code>
 * @stable ICU 3.8
 */
public int getRunLimit(int run)
{
  return bidi.getRunLimit(run);
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/com.ibm.icu.base

/**
 * Return the index of the character past the end of the nth logical run in
 * this line, as an offset from the start of the line. For example, this
 * will return the length of the line for the last run on the line.
 *
 * @param run the index of the run, between 0 and <code>countRuns()</code>
 *
 * @return the limit of the run
 *
 * @throws IllegalStateException if this call is not preceded by a successful
 *         call to <code>setPara</code> or <code>setLine</code>
 * @throws IllegalArgumentException if <code>run</code> is not in
 *         the range <code>0&lt;=run&lt;countRuns()</code>
 * @stable ICU 3.8
 */
public int getRunLimit(int run)
{
  return bidi.getRunLimit(run);
}

代码示例来源:origin: stackoverflow.com

String paragraph = "hey what's up ضعيف";
int NO_FLAG = 0;
Bidi bidi = new Bidi(paragraph, NO_FLAG);
int runCount = bidi.getRunCount();
for (int i = 0; i < runCount; i++) {
  String ltrtl = bidi.getRunLevel(i) % 2 == 0 ? "ltr" : "rtl";
  String subString = paragraph.substring(bidi.getRunStart(i), bidi.getRunLimit(i));
  Log.d(">>bidi:" + i,  subString+" is "+ltrtl);
}

代码示例来源:origin: stackoverflow.com

int limit = bidi.getRunLimit(i);
String run = input.substring(start, limit);

代码示例来源:origin: org.apache.pdfbox/pdfbox

int end = bidi.getRunLimit(index);

代码示例来源:origin: com.github.lafa.pdfbox/pdfbox

int end = bidi.getRunLimit(index);

代码示例来源:origin: org.geotools/gt-render

String r = "";
for (int i=0; i<bidi.getRunCount(); i++) {
  String s1 = label.substring(bidi.getRunStart(i), bidi.getRunLimit(i));
  if (bidi.getRunLevel(i)%2==0) {
    s1 = new StringBuffer(s1).reverse().toString();

代码示例来源:origin: plutext/docx4j-ImportXHTML

int end = bidi.getRunLimit(i);

代码示例来源:origin: google/sagetv

textObjs[i] = inText.substring(booty.getRunStart(i), booty.getRunLimit(i));
textObjs[i] = (levelInfo[i] % 2) == booty.getBaseLevel() ? textObjs[i].toString() :
 new StringBuffer(textObjs[i].toString()).reverse().toString();

代码示例来源:origin: plutext/docx4j-ImportXHTML

int end = bidi.getRunLimit(i);

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

bidi.getRunStart(i), bidi.getRunLimit(i));
rtlGlyphVectors[i] = font
    .layoutGlyphVector(mxCurveLabelShape.frc,

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

bidi.getRunStart(i), bidi.getRunLimit(i));
rtlGlyphVectors[i] = font
    .layoutGlyphVector(mxCurveLabelShape.frc,

相关文章