Lines Matching refs:levels
59 * For the purpose of conformance, the levels of all these codes
90 * and all levels are set to the paragraph level.
95 * If embedding levels are supplied as a parameter, then all
561 * Resolve the explicit levels as specified by explicit embedding codes.
566 * levels are externally specified (from "styled text", supposedly the preferred
595 * Handling the stack of explicit levels (Xn):
597 * With the BiDi stack of explicit levels,
607 * Popping levels with PDF must work in the opposite order so that level 61
615 UBiDiLevel *levels=pBiDi->levels;
629 /* we may not need to resolve any explicit levels, but for multiple
632 /* not mixed directionality: levels don't matter - trailingWSStart will be 0 */
639 /* set all levels to the paragraph level */
641 levels[i]=level;
651 uint32_t countOver60=0, countOver61=0; /* count overflows of explicit levels */
731 /* they will get their levels set correctly in adjustWSLevels() */
751 * We need to set reasonable levels even on BN codes and
754 levels[i]=level;
774 * Use a pre-specified embedding levels array:
778 * and check all the preset levels.
787 UBiDiLevel *levels=pBiDi->levels;
796 level=levels[i];
799 /* keep the override flag in levels[i] but adjust the flags */
916 /* we must undef macro s because the levels table have a different
922 The levels state machine tables
937 Definitions and type for levels state tables
959 LEVELS STATE TABLES
961 In all levels state tables,
983 (levels are assigned).
1042 /* In this table, EN/AN+ON sequences receive levels as if associated with R
1055 /* In this table, EN/AN+ON sequences receive levels as if associated with R
1254 UBiDiLevel * levels=pBiDi->levels;
1305 levels[k]=(levels[k] - 2) & ~1;
1362 for (k=start0-1; k>=0 && !(levels[k]&1); k--);
1392 if (levels[k]<level)
1393 levels[k]=level;
1403 if(levels[k]==level+3) {
1404 while(levels[k]==level+3) {
1405 levels[k--]-=2;
1407 while(levels[k]==level) {
1411 if(levels[k]==level+2) {
1412 levels[k]=level;
1415 levels[k]=level+1;
1422 if(levels[k]>level) {
1423 levels[k]-=2;
1436 levels[k]=level;
1514 * actions) and different levels state tables (maybe very similar to the
1521 /* initialize for levels state table */
1525 levState.runLevel=pBiDi->levels[start];
1623 * Reset the embedding levels for some non-graphic characters (L1).
1624 * This function also sets appropriate levels for BN, and
1631 UBiDiLevel *levels=pBiDi->levels;
1643 levels[i]=0;
1645 levels[i]=GET_PARALEVEL(pBiDi, i);
1654 levels[i]=levels[i+1];
1656 levels[i]=0;
1659 levels[i]=GET_PARALEVEL(pBiDi, i);
1710 const UBiDiLevel *levels;
1745 /* we cannot access directly pBiDi->levels since it is not yet set if
1748 levels=ubidi_getLevels(pBiDi, pErrorCode);
1749 uprv_memcpy(saveLevels, levels, pBiDi->length*sizeof(UBiDiLevel));
1771 * than the original text. But we don't want the levels memory to be
1773 * the levels as after the first call to ubidi_setpara() before returning.
1874 /* the saved levels should never excess levelsSize, but we check anyway */
1878 uprv_memcpy(pBiDi->levels, saveLevels, saveLength*sizeof(UBiDiLevel));
1924 pBiDi->levels=NULL;
1978 pBiDi->trailingWSStart=length; /* the levels[] will reflect the WS run */
1994 /* are explicit levels specified? */
1996 /* no: determine explicit levels according to the (Xn) rules */\
1998 pBiDi->levels=pBiDi->levelsMemory;
2005 /* set BN for all explicit codes, check that all levels are 0 or paraLevel..UBIDI_MAX_EXPLICIT_LEVEL */
2006 pBiDi->levels=embeddingLevels;
2023 /* all levels are implicitly at paraLevel (important for ubidi_getLevels()) */
2030 /* all levels are implicitly at paraLevel (important for ubidi_getLevels()) */
2070 * If there are no external levels specified and there
2074 * the text with the same embedding levels. (X10)
2087 UBiDiLevel *levels=pBiDi->levels;
2094 nextLevel=levels[0];
2115 while(++limit<length && levels[limit]==level) {}
2119 nextLevel=levels[limit];
2138 levels[start++]&=~UBIDI_LEVEL_OVERRIDE;
2149 /* reset the embedding levels for some non-graphic characters (L1), (X9) */