Ignore Some Text
Ignore Some Text

Ignore some characters during text comparisions.


Declare ignore text field (ignore)
Field declaration
Segment Source
 111:   int *ignore;                  /* Boolean array of characters to ignore. */

Ignore some characters
Parameter binding
Segment Element
Code insertion

 998:       ignore = key->ignore;

Dispatch ignored and translated compare
Segment Element
Code insertion

1090:       else if (ignore && translate)

Segment Element
Code insertion

1139:         CMP_WITH_IGNORE (translate[UCHAR (*texta)], translate[UCHAR (*textb)]);

Dispatch ignore compare
Code insertion
Segment Source
1140:       else if (ignore)
1141:         CMP_WITH_IGNORE (UCHAR (*texta), UCHAR (*textb));

Establish global sort options
Code insertion
Segment Source
1771:   gkey.ignore = NULL;

Propogate global sort options
Code modification
Segment Element
Code modification

2031:     if (!key->ignore && !key->translate && !key->skipsblanks && !key->reverse

Segment Element
Code insertion

2035:         key->ignore = gkey.ignore;

Segment Element
Code modification

2045:   if (!keyhead.next && (gkey.ignore || gkey.translate || gkey.skipsblanks