Home | History | Annotate | Download | only in lib

Lines Matching refs:headx

70   - headx : array for extended item heads of fixed size (head plus
73 headx).
75 0. bottom up filling of items in headx and cbuf
112 of fixed size without content, two fields are contained in headx
114 -> headx further extended with boundary strength and type info to
115 indicate that to the left of the headx ele a BOUND needs to be
120 -> changed in place in headx
136 picoos_uint8 inspaceok; /* flag: headx/cbuf has space for an item */
141 picoacph_headx_t headx[PICOACPH_MAXNR_HEADX];
182 /* init headx, cbuf */
184 acph->headx[i].head.type = 0;
185 acph->headx[i].head.info1 = 0;
186 acph->headx[i].head.info2 = 0;
187 acph->headx[i].head.len = 0;
188 acph->headx[i].cind = 0;
189 acph->headx[i].boundstrength = 0;
190 acph->headx[i].boundtype = 0;
336 for (i = 0; i < acph->headx[ind].head.len; i++) {
337 ch = acph->cbuf[acph->headx[ind].cind + i];
361 if ((acph->headx[i].head.type == PICODATA_ITEM_WORDPHON)) {
362 val = acph->headx[i].head.info1;
393 (acph->headx[upbound].head.type != PICODATA_ITEM_WORDPHON)) {
411 if (acph->headx[i].head.type == PICODATA_ITEM_WORDPHON) {
420 valbuf[1] = acph->headx[upbound].head.info1;
430 /* process from right-to-left all items in headx, except for 1st WORDPHON */
434 PICODBG_TRACE(("iter: %d, type: %c", i, acph->headx[i].head.type));
437 if ((acph->headx[i].head.type != PICODATA_ITEM_WORDPHON)) {
441 PICODBG_TRACE(("iter: %d, curpos: %d", i, acph->headx[i].head.info1));
444 curpos = acph->headx[i].head.info1;
510 acph->headx[i].boundstrength = (picoos_uint8)dtres.class;
516 switch (acph->headx[acph->headxLen - 1].head.info2) {
518 acph->headx[i].boundtype =
522 acph->headx[i].boundtype =
526 acph->headx[i].boundtype =
531 acph->headx[i].boundtype =
541 acph->headx[i].boundtype =
553 acph->headx[0].boundstrength =
557 acph->headx[0].boundstrength =
566 switch (acph->headx[acph->headxLen - 1].head.info1) {
581 switch (acph->headx[acph->headxLen - 1].head.info2) {
583 acph->headx[0].boundtype =
587 acph->headx[0].boundtype =
591 acph->headx[0].boundtype =
596 acph->headx[0].boundtype =
604 acph->headx[0].boundtype =
626 if ((acph->headx[i].head.type == PICODATA_ITEM_WORDPHON)) {
627 val = acph->headx[i].head.info1;
654 pend = acph->headx[ind].cind + acph->headx[ind].head.len;
655 for (pind = acph->headx[ind].cind; pind < pend; pind++) {
703 (acph->headx[i].boundstrength == PICODATA_ITEMINFO1_BOUND_PHR0)) {
704 if (acph->headx[i].head.type == PICODATA_ITEM_WORDPHON) {
715 (acph->headx[i].head.info2 != PICODATA_ACC1)) {
716 if (acph->headx[i].head.type == PICODATA_ITEM_WORDPHON) {
722 if ((i < acph->headxLen) && (acph->headx[i].head.info2 == PICODATA_ACC1)) {
749 (acph->headx[i].boundstrength == PICODATA_ITEMINFO1_BOUND_PHR0)) {
750 if (acph->headx[i].head.type == PICODATA_ITEM_WORDPHON) {
757 if ((acph->headx[i].boundstrength != PICODATA_ITEMINFO1_BOUND_PHR0) &&
758 (acph->headx[i].head.type == PICODATA_ITEM_WORDPHON)) {
773 pos = acph->headx[ind].cind;
774 for (i = 0; i < acph->headx[ind].head.len; i++) {
811 (acph->headx[upbound].head.type != PICODATA_ITEM_WORDPHON)) {
837 valbuf[1] = acph->headx[upbound].head.info1;
846 /* process from right-to-left all items in headx */
852 PICODBG_TRACE(("iter: %d, type: %c", i, acph->headx[i].head.type));
855 if ((acph->headx[i].head.type != PICODATA_ITEM_WORDPHON)) {
859 PICODBG_TRACE(("iter: %d, curpos: %d", i, acph->headx[i].head.info1));
862 curpos = acph->headx[i].head.info1;
943 acph->headx[i].head.info2 = PICODATA_ACC3;
945 acph->headx[i].head.info2 = (picoos_uint8)dtres.class;
948 acph->headx[i].head.info2 = (picoos_uint8)dtres.class;
951 i, acph->headx[i].head.info2));
1080 PICODATA_MAX_ITEMSIZE, &(acph->headx[acph->headxLen].head),
1091 construct PUNC-FLUSH item in headx */
1092 if ((acph->headx[acph->headxLen].head.type
1094 && (acph->headx[acph->headxLen].head.info1
1096 acph->headx[acph->headxLen].head.type
1098 acph->headx[acph->headxLen].head.info1
1100 acph->headx[acph->headxLen].head.info2
1102 acph->headx[acph->headxLen].head.len = 0;
1106 if (acph->headx[acph->headxLen].head.type
1119 acph->headx[acph->headxLen].cind = acph->cbufLen;
1122 acph->headx[acph->headxLen].cind = 0;
1135 acph->headx[acph->headxLen].head.type = PICODATA_ITEM_PUNC;
1136 acph->headx[acph->headxLen].head.info1 =
1138 acph->headx[acph->headxLen].head.info2 =
1140 acph->headx[acph->headxLen].head.len = 0;
1171 /* process phr state: process items in headx and modify
1172 * headx in place
1177 /* we have a phrase in headx, cbuf1 (can be
1178 single PUNC item), do phrasing and modify headx */
1196 if ((acph->headx[i].boundstrength != 0) &&
1197 (acph->headx[i].boundstrength !=
1201 acph->headx[i].boundstrength,
1202 acph->headx[i].boundtype));
1205 ittype = acph->headx[i].head.type;
1209 if ((32 <= acph->headx[i].head.info1) &&
1210 (acph->headx[i].head.info1 < 127) &&
1212 PICODBG_INFO_MSG(("'%c',",acph->headx[i].head.info1));
1214 PICODBG_INFO_MSG(("%3d,", acph->headx[i].head.info1));
1216 if ((32 <= acph->headx[i].head.info2) &&
1217 (acph->headx[i].head.info2 < 127)) {
1218 PICODBG_INFO_MSG(("'%c',",acph->headx[i].head.info2));
1220 PICODBG_INFO_MSG(("%3d,", acph->headx[i].head.info2));
1222 PICODBG_INFO_MSG(("%3d)", acph->headx[i].head.len));
1224 for (j = 0; j < acph->headx[i].head.len; j++) {
1227 acph->cbuf[acph->headx[i].cind+j]));
1230 acph->cbuf[acph->headx[i].cind+j]));
1242 /* process acc state: process items in headx and modify
1243 * headx in place
1248 /* we have a phrase in headx, cbuf (can be
1249 single PUNC item), do accentuation and modify headx */
1279 if (acph->headx[0].head.info1
1282 acph->headx[0].boundstrength,
1283 headx[0].boundtype, &dopuoutfull,
1296 /* for all items in headx, cbuf */
1299 switch (acph->headx[i].head.type) {
1302 if ((acph->headx[i].head.info1 ==
1319 } else if ((acph->headx[i].head.info1 ==
1343 if ((acph->headx[i].boundstrength ==
1345 (acph->headx[i].boundstrength ==
1348 acph->headx[i].boundstrength,
1349 acph->headx[i].boundtype,
1363 rv = picodata_put_itemparts(&(acph->headx[i].head),
1364 &(acph->cbuf[acph->headx[i].cind]),
1365 acph->headx[i].head.len,
1385 acph->headx[i].boundstrength = 0;
1401 /* reset headx, cbuf */
1406 acph->headx[i].boundstrength = 0;