Lines Matching refs:line
67 #include "line.h"
163 void deleteLineElement(void *line) {
164 delete((Line *)line);
246 // ASCII based options specified on the command line
330 void escapeALine(Line *line, UFILE *file) {
331 escapeString(line->name, line->len, file);
334 void escapeExpansion(Line *line, UFILE *file) {
335 escapeString(line->expansionString, line->expLen, file);
338 void showNames(Line *line, UFILE *file) {
342 for(j = 0; j < line->len; j++) {
343 u_charName(line->name[j], U_EXTENDED_CHAR_NAME, charName, 256, &status);
514 void printStrength(Line *line, UFILE *file) {
515 printStrength(line->strength, file);
518 void printLine(Line *line, UFILE *file) {
519 escapeALine(line, file);
520 if(line->isExpansion) {
522 escapeExpansion(line, file);
530 //escapeALine(*lines); // Print first line
532 Line *line = NULL;
543 line = previous->next;
545 line = *(lines+i);
547 if(line->isReset) {
549 escapeALine(line, file);
550 } else if(!line->isRemoved) {
555 printStrength(line, file);
557 printLine(line, file);
558 //escapeALine(line, file);
560 previous = line;
571 Line *line = *(lines+i);
573 line->previous = prev;
574 prev->next = line;
575 line->sortedIndex = i;
582 noteExpansion(Line **gLines, Line *line, int32_t size, CompareFn comparer) {
585 UnicodeString key(line->name, line->len);
590 u_strcpy(toInsert->expansionString, line->expansionString);
591 toInsert->expLen = line->expLen;
596 toInsert = new Line(*line);
606 u_strcat(testLine.name, line->expansionString);
607 testLine.len = (*(gLines+i))->len + line->expLen;
608 if(comparer(&l, &line) > 0) {
618 escapeALine(line, log);
620 escapeExpansion(line, log);
628 Line *line = NULL;
636 line = *(sortedExpansions+j);
637 UnicodeString key(line->name, line->len);
666 u_strcat(testLine.name, line->expansionString);
667 testLine.len = current->len + line->expLen;
671 if(comparer(&l, &line) > 0) {
700 // such line would consist of previous (or next) concatenated with the expansion value
739 noteExpansion(Line *line) {
741 UnicodeString key(line->name, line->len);
745 u_strcpy(el->expansionString, line->expansionString);
746 el->expLen = line->expLen;
748 Line *toInsert = new Line(*line);
750 gElements.put(UnicodeString(line->name, line->len), toInsert, status);
755 u_strcpy(el2->expansionString, line->expansionString);
756 el2->expLen = line->expLen;
760 printLine(line, log);
766 noteContraction(Line *line) {
768 Line *toInsert = new Line(*line);
770 gElements.put(UnicodeString(line->name, line->len), toInsert, status);
773 escapeALine(line, log);
779 noteElement(Line *line) {
781 Line *toInsert = new Line(*line);
782 gElements.put(UnicodeString(line->name, line->len), toInsert, status);
784 escapeALine(line, log);
1126 isTailored(Line *line, UErrorCode &status) {
1128 UCollationElements *tailoring = ucol_openElements(gCol, line->name, line->len, &status);
1129 UCollationElements *uca = ucol_openElements(gUCA, line->name, line->len, &status);
1158 // if the current line is not tailored according to the UCA