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

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

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

Bidi.reorderVisually介绍

[英]Reorders a range of objects according to their specified levels. This is a convenience function that does not use a Bidi object. The range of objects at index from objectStart to objectStart + count will be reordered according to the range of levels at index from levelStart to levelStart + count.
[中]根据指定的级别对一系列对象重新排序。这是一个不使用Bidi对象的方便函数。索引从objectStart到objectStart+count的对象范围将根据索引从levelStart到levelStart+count的级别范围重新排序。

代码示例

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

Bidi.reorderVisually(levels, 0, runs, 0, runCount);

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

/**
 * Reorder the objects in the array into visual order based on their levels.
 * This is a utility method to use when you have a collection of objects
 * representing runs of text in logical order, each run containing text at a
 * single level. The elements at <code>index</code> from
 * <code>objectStart</code> up to <code>objectStart + count</code> in the
 * objects array will be reordered into visual order assuming
 * each run of text has the level indicated by the corresponding element in
 * the levels array (at <code>index - objectStart + levelStart</code>).
 *
 * @param levels an array representing the bidi level of each object
 * @param levelStart the start position in the levels array
 * @param objects the array of objects to be reordered into visual order
 * @param objectStart the start position in the objects array
 * @param count the number of objects to reorder
 * @stable ICU 3.8
 */
public static void reorderVisually(byte[] levels,
    int levelStart,
    Object[] objects,
    int objectStart,
    int count)
{
  java.text.Bidi.reorderVisually(levels, levelStart, objects, objectStart, count);
}

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

/**
 * Reorder the objects in the array into visual order based on their levels.
 * This is a utility method to use when you have a collection of objects
 * representing runs of text in logical order, each run containing text at a
 * single level. The elements at <code>index</code> from
 * <code>objectStart</code> up to <code>objectStart + count</code> in the
 * objects array will be reordered into visual order assuming
 * each run of text has the level indicated by the corresponding element in
 * the levels array (at <code>index - objectStart + levelStart</code>).
 *
 * @param levels an array representing the bidi level of each object
 * @param levelStart the start position in the levels array
 * @param objects the array of objects to be reordered into visual order
 * @param objectStart the start position in the objects array
 * @param count the number of objects to reorder
 * @stable ICU 3.8
 */
public static void reorderVisually(byte[] levels,
    int levelStart,
    Object[] objects,
    int objectStart,
    int count)
{
  java.text.Bidi.reorderVisually(levels, levelStart, objects, objectStart, count);
}

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

Bidi.reorderVisually(levels, 0, runs, 0, runCount);

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

Bidi.reorderVisually(levels, 0, runs, 0, runCount);

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

new StringBuffer(textObjs[i].toString()).reverse().toString();
java.text.Bidi.reorderVisually(levelInfo, 0, textObjs, 0, runCounts);
StringBuffer newText = new StringBuffer(inText.length() + 1);
for (int i = 0; i < textObjs.length; i++)

相关文章