本文整理了Java中java.text.Bidi.getRunCount()
方法的一些代码示例,展示了Bidi.getRunCount()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bidi.getRunCount()
方法的具体详情如下:
包路径:java.text.Bidi
类名称:Bidi
方法名:getRunCount
[英]Returns the number of runs in the bidirectional text.
[中]返回双向文本中的运行次数。
代码示例来源:origin: geotools/geotools
} else if (bidi.isMixed()) {
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) {
代码示例来源:origin: apache/pdfbox
int runCount = bidi.getRunCount();
byte[] levels = new byte[runCount];
Integer[] runs = new Integer[runCount];
代码示例来源:origin: at.bestsolution.eclipse/com.ibm.icu.base
/**
* Return the number of level runs.
*
* @return the number of level runs
*
* @throws IllegalStateException if this call is not preceded by a successful
* call to <code>setPara</code> or <code>setLine</code>
*
* @stable ICU 3.8
*/
public int getRunCount()
{
return bidi.getRunCount();
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/com.ibm.icu.base
/**
* Return the number of level runs.
*
* @return the number of level runs
*
* @throws IllegalStateException if this call is not preceded by a successful
* call to <code>setPara</code> or <code>setLine</code>
*
* @stable ICU 3.8
*/
public int getRunCount()
{
return bidi.getRunCount();
}
代码示例来源: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
for (int i = 0; i < bidi.getRunCount(); i++)
代码示例来源:origin: org.apache.pdfbox/pdfbox
int runCount = bidi.getRunCount();
byte[] levels = new byte[runCount];
Integer[] runs = new Integer[runCount];
代码示例来源:origin: com.github.lafa.pdfbox/pdfbox
int runCount = bidi.getRunCount();
byte[] levels = new byte[runCount];
Integer[] runs = new Integer[runCount];
代码示例来源:origin: org.geotools/gt-render
} else if (bidi.isMixed()) {
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) {
代码示例来源:origin: plutext/docx4j-ImportXHTML
for (int i=0; i<bidi.getRunCount(); i++) {
代码示例来源:origin: google/sagetv
int runCounts = booty.getRunCount();
byte[] levelInfo = new byte[runCounts];
Object[] textObjs = new Object[runCounts];
代码示例来源:origin: plutext/docx4j-ImportXHTML
for (int i=0; i<bidi.getRunCount(); i++) {
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
Bidi.DIRECTION_DEFAULT_LEFT_TO_RIGHT);
int runCount = bidi.getRunCount();
for (int i = 0; i < bidi.getRunCount(); i++)
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
Bidi.DIRECTION_DEFAULT_LEFT_TO_RIGHT);
int runCount = bidi.getRunCount();
for (int i = 0; i < bidi.getRunCount(); i++)
内容来源于网络,如有侵权,请联系作者删除!