Lines Matching defs:firstRep
482 int32_t SortedLines::detectContractions(Line **firstRep, int32_t firstSize,
501 U16_GET(firstRep[i]->name, 0, 0, firstRep[i]->len, firstStart);
502 if(uscript_getScript(firstStart, &status) == USCRIPT_HAN || firstRep[i]->strengthFromEmpty > UCOL_PRIMARY) //UCOL_TERTIARY)
506 lower = *firstRep[i];
525 if(firstRep[i]->name[0] == 0x61 && secondRep[j]->name[0] == 0x308) {
528 upper.setToConcat(firstRep[i], UB[UCOL_PRIMARY]);
529 //upper.setToConcat(firstRep[i], UB[secondRep[j]->strengthFromEmpty]);
530 toAdd.setToConcat(firstRep[i], secondRep[j]);
531 U16_GET(firstRep[i]->name, 0, firstRep[i]->len-1, firstRep[i]->len, firstEnd);
549 upper = *firstRep[i];
554 trial = *firstRep[i];
557 } else if((firstRep[i]->lastCC > secondRep[j]->firstCC && secondRep[j]->firstCC && !frenchSecondary)
558 || (firstRep[i]->firstCC < secondRep[j]->lastCC && firstRep[i]->firstCC && frenchSecondary)) {
563 } else if(frenchSecondary && (firstRep[i]->strengthFromEmpty > UCOL_PRIMARY && secondRep[j]->strengthFromEmpty > UCOL_PRIMARY)) {
565 }else if(firstRep[i]->lastCC && secondRep[j]->firstCC && frenchSecondary) {
566 trial.setToConcat(secondRep[j], firstRep[i]);
568 trial.setToConcat(firstRep[i], secondRep[j]);
594 if(firstRep[i]->len == 1 || secondRep[j]->strengthFromEmpty == UCOL_PRIMARY) {
597 noteContraction("L", lesserToAddTo, lesserToAddToSize, firstRep[i], secondRep[j], noConts, status);
601 noteContraction("U", toAddTo, toAddToSize, firstRep[i], secondRep[j], noConts, status);
604 else if(firstRep[i]->strengthFromEmpty == UCOL_PRIMARY)
607 if(getExpansionLine(trial, *firstRep[i], *secondRep[j], expansionLine) &&
609 noteContraction("D", toAddTo, toAddToSize, firstRep[i], secondRep[j], noConts, status);
613 else if(firstRep[i]->strengthFromEmpty == UCOL_PRIMARY && probe.getStrength(lower, trial) < secondRep[j]->strengthFromEmpty) {
614 noteContraction("D1", toAddTo, toAddToSize, firstRep[i], secondRep[j], noConts, status);
616 else if (firstRep[i]->strengthFromEmpty == UCOL_PRIMARY && secondRep[j]->strengthFromEmpty == UCOL_PRIMARY)
628 if(((!secondRep[j-1]->firstCC || firstRep[i]->lastCC < secondRep[j-1]->firstCC) && !frenchSecondary)
629 ||((!firstRep[i]->firstCC || firstRep[i]->firstCC > secondRep[j-1]->lastCC) && frenchSecondary)) {
630 xym.setToConcat(firstRep[i], secondRep[j-1]);
645 xyp.setToConcat(firstRep[i], secondRep[k]);
652 noteContraction("!1", toAddTo, toAddToSize, firstRep[i], secondRep[j], noConts, status);
667 xyp.setToConcat(firstRep[i], secondRep[k]);
670 noteContraction("!2", toAddTo, toAddToSize, firstRep[i], secondRep[j-1], noConts, status);
684 //UColAttributeValue strength = probe.getStrength(*firstRep[i], trial);
686 noteContraction("!3", toAddTo, toAddToSize, firstRep[i], secondRep[j-1], noConts, status);
687 noteContraction("!3", toAddTo, toAddToSize, firstRep[i], secondRep[j], noConts, status);
689 noteContraction("!4", toAddTo, toAddToSize, firstRep[i], secondRep[j], noConts, status);
695 noteContraction("!5", toAddTo, toAddToSize, firstRep[i], secondRep[j], noConts, status);
703 lower = *firstRep[i];