Searched refs:bidi (Results 1 - 20 of 20) sorted by relevance

/openjdk7/jdk/test/java/text/Bidi/
H A DBug8005277.java36 Bidi bidi = new Bidi(string, Bidi.DIRECTION_LEFT_TO_RIGHT);
38 int result = bidi.getRunCount();
44 result = bidi.getRunStart(0);
50 result = bidi.getRunLimit(0);
56 result = bidi.getRunLevel(0);
H A DBidiConformance.java112 Bidi bidi;
132 bidi = new Bidi(astr.getIterator());
134 callTestEachMethod4Constructor1(textNo, testNo, bidi);
145 bidi = new Bidi(astr.getIterator());
146 callTestEachMethod4Constructor1(textNo, testNo, bidi);
157 bidi = new Bidi(astr.getIterator());
158 callTestEachMethod4Constructor1(textNo, testNo, bidi);
169 bidi = new Bidi(astr.getIterator());
170 callTestEachMethod4Constructor1(textNo, testNo, bidi);
181 bidi
650 callTestEachMethod4Constructor1(int textNo, int testNo, Bidi bidi) argument
661 callTestEachMethod4Constructor2(int textNo, int flagNo, Bidi bidi) argument
672 callTestEachMethod4Constructor3(int textNo, int dataNo, Bidi bidi) argument
684 testEachMethod(Bidi bidi, String text, String expectedLevels, boolean expectedBaseIsLTR, boolean expectedIsLTR, boolean expectedIsRTL ) argument
[all...]
H A DBidiSurrogateTest.java82 Bidi bidi = new Bidi(string, Bidi.DIRECTION_DEFAULT_LEFT_TO_RIGHT);
83 if (bidi.isMixed()) {
84 throw new RuntimeException("bidi is mixed");
86 if (bidi.isRightToLeft() != directionIsRTL) {
87 throw new RuntimeException("bidi is not " + (directionIsRTL ? "rtl" : "ltr"));
92 Bidi bidi = new Bidi(string, Bidi.DIRECTION_DEFAULT_LEFT_TO_RIGHT);
93 for (int i = 0; i < bidi.getRunCount(); ++i) {
94 if ((bidi.getRunLevel(i) & 1) != 0) {
95 if (bidi.getRunStart(i) != rtlstart ||
96 bidi
[all...]
H A DBug7041232.java44 Bidi bidi = new Bidi(UnicodeChars, Bidi.DIRECTION_DEFAULT_LEFT_TO_RIGHT);
45 bidi.createLineBidi(0, UnicodeChars.length());
H A DBidiEmbeddingTest.java27 * @summary verify that the embedding values processed by the bidi code use negative values to
68 Bidi bidi = new Bidi(astr.getIterator());
70 for (int i = 0; i < bidi.getRunCount(); ++i) {
72 " from " + bidi.getRunStart(i) +
73 " to " + bidi.getRunLimit(i) +
74 " at level " + bidi.getRunLevel(i));
77 System.out.println(bidi);
94 if (bidi.getRunCount() != 3 || bidi2.getRunCount() != 3) {
119 Bidi bidi = new Bidi(astr.getIterator());
121 for (int i = 0; i < bidi
[all...]
H A DBug7002398.java51 Bidi bidi = new Bidi(str, directions[dir]);
53 int gotLevel = bidi.getLevelAt(index);
59 ", actual level = " + bidi.getLevelAt(index) +
H A DBidiBug.java33 java.text.Bidi bidi = new java.text.Bidi(new char[20],10,buff,Integer.MAX_VALUE-3,4,1);
H A DBug7042148.java67 Bidi bidi = new Bidi(text, dirFlag);
68 boolean got = bidi.baseIsLeftToRight();
81 bidi = new Bidi(itr);
82 got = bidi.baseIsLeftToRight();
H A DBug7051769.java55 String expected = "sun.text.bidi.BidiBase[dir: 2 baselevel: 1 length: 9 runs: [1 1 1 1 1 1 1 2 2] text: [0x623 0x643 0x62a 0x648 0x628 0x631 0x20 0x661 0x660]]";
61 Bidi bidi = new Bidi(itr);
62 String got = bidi.toString();
H A DBug6665028.java102 Bidi bidi = new Bidi(astr.getIterator());
110 if (bidi.getRunCount() != 3 || bidi2.getRunCount() != 3) {
129 Bidi bidi = new Bidi(astr.getIterator());
131 if (bidi.getRunCount() != 6) { // runs of spaces and angles at embedding bound,s and final period, each get level 1
/openjdk7/jdk/make/java/text/bidi/
H A DMakefile36 sun/text/bidi/BidiBase.java \
37 sun/text/bidi/BidiLine.java \
38 sun/text/bidi/BidiRun.java \
/openjdk7/jdk/src/share/classes/sun/font/
H A DTextLabelFactory.java40 * doesn't change-- the render context, context, and bidi info for the context-- and gets
55 private Bidi bidi; field in class:TextLabelFactory
65 * @param bidi the bidi information for the paragraph text, or null if the
70 Bidi bidi,
74 this.bidi = bidi;
76 this.lineBidi = bidi;
90 return bidi;
118 if (bidi !
68 TextLabelFactory(FontRenderContext frc, char[] text, Bidi bidi, int flags) argument
[all...]
H A DBidiUtils.java54 public static void getLevels(Bidi bidi, byte[] levels, int start) { argument
55 int limit = start + bidi.getLength();
62 int runCount = bidi.getRunCount();
65 int rlimit = start + bidi.getRunLimit(i);
66 byte rlevel = (byte)bidi.getRunLevel(i);
75 * Return an array containing the resolved bidi level of each character, in logical order.
78 public static byte[] getLevels(Bidi bidi) { argument
79 byte[] levels = new byte[bidi.getLength()];
80 getLevels(bidi, levels, 0);
335 * @param levels an array representing the bidi leve
[all...]
/openjdk7/jdk/make/java/text/
H A DMakefile35 SUBDIRS_desktop = bidi
/openjdk7/jdk/src/share/classes/sun/text/bidi/
H A DBidiRun.java40 package sun.text.bidi;
63 if <0, count of bidi controls within run */
H A DBidiBase.java53 package sun.text.bidi;
208 * package com.ibm.icu.dev.test.bidi;
2674 * digits to other decimal digits before running the bidi algorithm. This
2840 BidiBase bidi = paraBidi; /* get Para object if Line object */
2841 verifyRange(charIndex, 0, bidi.length);
2843 for (paraIndex = 0; charIndex >= bidi.paras[paraIndex]; paraIndex++) {
2887 public Bidi setLine(Bidi bidi, BidiBase bidiBase, Bidi newBidi, BidiBase newBidiBase, int start, int limit) argument
2893 return BidiLine.setLine(bidi, this, newBidi, newBidiBase, start, limit);
3320 * Return true if the specified text requires bidi analysis. If this returns
3330 * @return true if the range of characters requires bidi analysi
[all...]
H A DBidiLine.java40 package sun.text.bidi;
143 public static Bidi setLine(Bidi bidi, BidiBase paraBidi, argument
/openjdk7/jdk/src/share/classes/java/awt/font/
H A DTextLine.java911 Bidi bidi = null;
945 bidi = new Bidi(chars, 0, embs, 0, chars.length, bidiflags);
946 if (!bidi.isLeftToRight()) {
947 levels = BidiUtils.getLevels(bidi);
950 isDirectionLTR = bidi.baseIsLeftToRight();
956 int layoutFlags = 0; // no extra info yet, bidi determines run and line direction
957 TextLabelFactory factory = new TextLabelFactory(frc, chars, bidi, layoutFlags);
1197 Bidi bidi = new Bidi(text);
1198 if (bidi.isLeftToRight()) {
1199 bidi
[all...]
/openjdk7/jdk/src/share/classes/java/text/
H A DBidi.java38 import sun.text.bidi.BidiBase;
119 * other decimal digits before running the bidi algorithm. This attribute, if present,
176 * Create a Bidi object representing the bidi information on a line of text within
287 * Return true if the specified text requires bidi analysis. If this returns false,
295 * @return true if the range of characters requires bidi analysis
311 * @param levels an array representing the bidi level of each object
322 * Display the bidi internal state, used in debugging.
/openjdk7/jdk/src/share/classes/javax/swing/text/
H A DDefaultCaret.java610 * of AbstractDocument and there are multiple bidi levels present
611 * in the bidi element structure (i.e. the text has multiple
651 // will show bidi information.
654 Element bidi = ((AbstractDocument)doc).getBidiRootElement();
655 if ((bidi != null) && (bidi.getElementCount() > 1)) {
1230 // was deleted. And we could get this from the bidi structure

Completed in 103 milliseconds