Lines Matching full:levels
62 * For the purpose of conformance, the levels of all these codes
93 * and all levels are set to the paragraph level.
98 * If embedding levels are supplied as a parameter, then all
904 level=bd->pBiDi->levels[position];
914 bd->pBiDi->levels[position]&=~UBIDI_LEVEL_OVERRIDE;
917 bd->pBiDi->levels[bd->openings[idx].position]&=~UBIDI_LEVEL_OVERRIDE;
943 level=bd->pBiDi->levels[position];
1024 * Resolve the explicit levels as specified by explicit embedding codes.
1029 * levels are externally specified (from "styled text", supposedly the preferred
1059 * Handling the stack of explicit levels (Xn):
1061 * With the BiDi stack of explicit levels, as pushed with each
1067 * section 3.3.2 "Explicit Levels and Directions".
1077 UBiDiLevel *levels=pBiDi->levels;
1092 /* we may not need to resolve any explicit levels */
1094 /* not mixed directionality: levels don't matter - trailingWSStart will be 0 */
1099 /* set all levels to the paragraph level */
1109 levels[i]=level;
1114 /* no embeddings, set all levels to the paragraph level */
1127 levels[i]=level;
1180 levels[i]=previousLevel;
1207 levels[i]=previousLevel;
1225 levels[i]=NO_OVERRIDE(embeddingLevel);
1285 levels[i]=NO_OVERRIDE(embeddingLevel);
1289 levels[i]=GET_PARALEVEL(pBiDi, i);
1303 /* they will get their levels set correctly in adjustWSLevels() */
1304 levels[i]=previousLevel;
1319 levels[i]=embeddingLevel;
1339 * Use a pre-specified embedding levels array:
1343 * and check all the preset levels.
1351 UBiDiLevel *levels=pBiDi->levels;
1363 UBiDiLevel level=levels[i];
1393 levels[i] = level | overrideFlag;
1403 /* keep the override flag in levels[i] but adjust the flags */
1511 /* we must undef macro s because the levels tables have a different
1517 The levels state machine tables
1532 Definitions and type for levels state tables
1554 LEVELS STATE TABLES
1556 In all levels state tables,
1578 (levels are assigned).
1637 /* In this table, EN/AN+ON sequences receive levels as if associated with R
1650 /* In this table, EN/AN+ON sequences receive levels as if associated with R
1834 UBiDiLevel *levels=pBiDi->levels;
1841 levels[k]=level;
1868 UBiDiLevel * levels=pBiDi->levels;
1929 levels[k]=(levels[k] - 2) & ~1;
1986 for (k=start0-1; k>=0 && !(levels[k]&1); k--);
2016 if (levels[k]<level)
2017 levels[k]=level;
2027 if(levels[k]==level+3) {
2028 while(levels[k]==level+3) {
2029 levels[k--]-=2;
2031 while(levels[k]==level) {
2035 if(levels[k]==level+2) {
2036 levels[k]=level;
2039 levels[k]=level+1;
2046 if(levels[k]>level) {
2047 levels[k]-=2;
2061 levels[k]=level;
2146 * actions) and different levels state tables (maybe very similar to the
2154 /* initialize for property and levels state tables */
2158 levState.runLevel=pBiDi->levels[start];
2288 * Reset the embedding levels for some non-graphic characters (L1).
2289 * This function also sets appropriate levels for BN, and
2296 UBiDiLevel *levels=pBiDi->levels;
2308 levels[i]=0;
2310 levels[i]=GET_PARALEVEL(pBiDi, i);
2319 levels[i]=levels[i+1];
2321 levels[i]=0;
2324 levels[i]=GET_PARALEVEL(pBiDi, i);
2376 const UBiDiLevel *levels;
2411 /* we cannot access directly pBiDi->levels since it is not yet set if
2414 levels=ubidi_getLevels(pBiDi, pErrorCode);
2415 uprv_memcpy(saveLevels, levels, (size_t)pBiDi->length*sizeof(UBiDiLevel));
2437 * than the original text. But we don't want the levels memory to be
2439 * the levels as after the first call to ubidi_setpara() before returning.
2540 /* the saved levels should never excess levelsSize, but we check anyway */
2544 uprv_memcpy(pBiDi->levels, saveLevels, (size_t)saveLength*sizeof(UBiDiLevel));
2592 pBiDi->levels=NULL;
2645 pBiDi->trailingWSStart=length; /* the levels[] will reflect the WS run */
2647 /* are explicit levels specified? */
2649 /* no: determine explicit levels according to the (Xn) rules */\
2651 pBiDi->levels=pBiDi->levelsMemory;
2661 /* set BN for all explicit codes, check that all levels are 0 or paraLevel..UBIDI_MAX_EXPLICIT_LEVEL */
2662 pBiDi->levels=embeddingLevels;
2692 /* all levels are implicitly at paraLevel (important for ubidi_getLevels()) */
2696 /* all levels are implicitly at paraLevel (important for ubidi_getLevels()) */
2736 * If there are no external levels specified and there
2740 * the text with the same embedding levels. (X10)
2753 UBiDiLevel *levels=pBiDi->levels;
2760 nextLevel=levels[0];
2782 ((levels[limit]==level) ||
2787 nextLevel=levels[limit];
2806 levels[start++]&=~UBIDI_LEVEL_OVERRIDE;
2817 /* reset the embedding levels for some non-graphic characters (L1), (X9) */