Lines Matching refs:attrs
37 QVector<HB_CharAttributes> attrs(str.length());
44 attrs.data());
45 return attrs;
149 QVector<HB_CharAttributes> attrs = getCharAttributes(str);
154 if ( (attrs[i].lineBreakType != HB_NoBreak) != (bool)b->breaks[i] ) {
155 qDebug("test case \"%s\" failed at char %d; break type: %d", b->utf8, i, attrs[i].lineBreakType);
156 QCOMPARE( (attrs[i].lineBreakType != HB_NoBreak), (bool)b->breaks[i] );
159 QVERIFY(attrs[i].lineBreakType == HB_ForcedBreak);
171 QVector<HB_CharAttributes> attrs = getCharAttributes(txt);
172 QVERIFY(attrs[1].charStop);
182 QVector<HB_CharAttributes> attrs = getCharAttributes(txt);
183 QVERIFY(attrs[0].charStop);
184 QVERIFY(attrs[1].charStop);
185 QVERIFY(!attrs[2].charStop);
186 QVERIFY(attrs[3].charStop);
197 QVector<HB_CharAttributes> attrs = getCharAttributes(txt, HB_Script_Thai);
198 QVERIFY(attrs[0].lineBreakType == HB_NoBreak);
199 QVERIFY(attrs[1].lineBreakType == HB_NoBreak);
200 QVERIFY(attrs[2].lineBreakType == HB_NoBreak);
201 QVERIFY(attrs[3].lineBreakType == HB_NoBreak);
202 QVERIFY(attrs[4].lineBreakType == HB_NoBreak);
203 QVERIFY(attrs[5].lineBreakType == HB_Break);
204 QVERIFY(attrs[6].lineBreakType == HB_NoBreak);
205 QVERIFY(attrs[7].lineBreakType == HB_NoBreak);
206 QVERIFY(attrs[8].lineBreakType == HB_NoBreak);
207 QVERIFY(attrs[9].lineBreakType == HB_NoBreak);
208 QVERIFY(attrs[10].lineBreakType == HB_Break);
209 QVERIFY(attrs[11].lineBreakType == HB_NoBreak);
210 QVERIFY(attrs[12].lineBreakType == HB_NoBreak);
211 QVERIFY(attrs[13].lineBreakType == HB_Break);
212 QVERIFY(attrs[14].lineBreakType == HB_NoBreak);
213 QVERIFY(attrs[15].lineBreakType == HB_NoBreak);
214 QVERIFY(attrs[16].lineBreakType == HB_NoBreak);
215 QVERIFY(attrs[17].lineBreakType == HB_Break);
216 QVERIFY(attrs[18].lineBreakType == HB_NoBreak);
217 QVERIFY(attrs[19].lineBreakType == HB_NoBreak);
218 QVERIFY(attrs[20].lineBreakType == HB_Break);
219 QVERIFY(attrs[21].lineBreakType == HB_NoBreak);
220 QVERIFY(attrs[22].lineBreakType == HB_NoBreak);
221 QVERIFY(attrs[23].lineBreakType == HB_NoBreak);
222 QVERIFY(attrs[24].lineBreakType == HB_NoBreak);
223 QVERIFY(attrs[25].lineBreakType == HB_Break);
224 QVERIFY(attrs[26].lineBreakType == HB_NoBreak);
226 QVERIFY(attrs[i].lineBreakType == HB_NoBreak);