本文整理汇总了Java中com.ibm.icu.text.Bidi.setReorderingMode方法的典型用法代码示例。如果您正苦于以下问题:Java Bidi.setReorderingMode方法的具体用法?Java Bidi.setReorderingMode怎么用?Java Bidi.setReorderingMode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.ibm.icu.text.Bidi
的用法示例。
在下文中一共展示了Bidi.setReorderingMode方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: bidiReorder
import com.ibm.icu.text.Bidi; //导入方法依赖的package包/类
@SuppressWarnings("unused")
public static String bidiReorder(IBFFontRenderer font, String text)
{
if (betterFontsEnabled && font.getStringRenderer() != null)
{
return text;
}
try
{
Bidi bidi = new Bidi((new ArabicShaping(8)).shape(text), 127);
bidi.setReorderingMode(0);
return bidi.writeReordered(2);
} catch (ArabicShapingException var3)
{
return text;
}
}
示例2: bidiReorder
import com.ibm.icu.text.Bidi; //导入方法依赖的package包/类
/**
* Apply Unicode Bidirectional Algorithm to string and return a new possibly reordered string for visual rendering.
*/
private String bidiReorder(String p_147647_1_)
{
try
{
Bidi bidi = new Bidi((new ArabicShaping(8)).shape(p_147647_1_), 127);
bidi.setReorderingMode(0);
return bidi.writeReordered(2);
}
catch (ArabicShapingException var3)
{
return p_147647_1_;
}
}
示例3: bidiReorder
import com.ibm.icu.text.Bidi; //导入方法依赖的package包/类
/**
* Apply Unicode Bidirectional Algorithm to string and return a new possibly reordered string for visual rendering.
*/
private String bidiReorder(String p_147647_1_)
{
try
{
Bidi var3 = new Bidi((new ArabicShaping(8)).shape(p_147647_1_), 127);
var3.setReorderingMode(0);
return var3.writeReordered(2);
}
catch (ArabicShapingException var31)
{
return p_147647_1_;
}
}
示例4: bidiReorder
import com.ibm.icu.text.Bidi; //导入方法依赖的package包/类
/**
* Apply Unicode Bidirectional Algorithm to string and return a new possibly reordered string for visual rendering.
*/
private String bidiReorder(String text)
{
try
{
Bidi bidi = new Bidi((new ArabicShaping(8)).shape(text), 127);
bidi.setReorderingMode(0);
return bidi.writeReordered(2);
}
catch (ArabicShapingException var3)
{
return text;
}
}
示例5: bidiReorder
import com.ibm.icu.text.Bidi; //导入方法依赖的package包/类
protected String bidiReorder(String p_147647_1_)
{
try
{
Bidi bidi = new Bidi((new ArabicShaping(8)).shape(p_147647_1_), 127);
bidi.setReorderingMode(0);
return bidi.writeReordered(2);
}
catch (ArabicShapingException arabicshapingexception)
{
return p_147647_1_;
}
}
示例6: func_147647_b
import com.ibm.icu.text.Bidi; //导入方法依赖的package包/类
private String func_147647_b(String p_147647_1_)
{
try
{
Bidi var3 = new Bidi((new ArabicShaping(8)).shape(p_147647_1_), 127);
var3.setReorderingMode(0);
return var3.writeReordered(2);
}
catch (ArabicShapingException var31)
{
return p_147647_1_;
}
}
示例7: bidiReorder
import com.ibm.icu.text.Bidi; //导入方法依赖的package包/类
private String bidiReorder(String p_147647_1_)
{
try
{
Bidi bidi = new Bidi((new ArabicShaping(8)).shape(p_147647_1_), 127);
bidi.setReorderingMode(0);
return bidi.writeReordered(2);
}
catch (ArabicShapingException arabicshapingexception)
{
return p_147647_1_;
}
}