Home | History | Annotate | Download | only in common

Lines Matching full:offsets

29  * List of offsets from the current position from where to try matching
31 * Store offsets rather than indexes to simplify the code and use the same list
34 * Assumption: The maximum offset is limited, and the offsets that are stored
40 * This avoids inserting into a sorted list of offsets (or absolute indexes) and
52 * the integer would simply be shifted when lower offsets are removed.
88 // Reduce all stored offsets by delta, used when the current position
90 // There must not be any offsets lower than delta.
126 // and reduce all other offsets by this minimum.
642 OffsetList offsets;
645 offsets.setMaxLength(maxLength16);
675 if(!offsets.containsOffset(inc) && matches16CPB(s, pos-overlap, length, s16, length16)) {
679 offsets.addOffset(inc);
746 if(offsets.isEmpty()) {
752 if(offsets.isEmpty()) {
778 offsets.shift(spanLength);
785 int32_t minOffset=offsets.popMinimum();
803 OffsetList offsets;
806 offsets.setMaxLength(maxLength16);
841 if(!offsets.containsOffset(dec) && matches16CPB(s, pos-dec, length, s16, length16)) {
845 offsets.addOffset(dec);
911 if(offsets.isEmpty()) {
917 if(offsets.isEmpty()) {
942 offsets.shift(spanLength);
949 pos-=offsets.popMinimum();
964 OffsetList offsets;
967 offsets.setMaxLength(maxLength8);
1008 !offsets.containsOffset(inc) &&
1015 offsets.addOffset(inc);
1088 if(offsets.isEmpty()) {
1094 if(offsets.isEmpty()) {
1120 offsets.shift(spanLength);
1127 int32_t minOffset=offsets.popMinimum();
1145 OffsetList offsets;
1148 offsets.setMaxLength(maxLength8);
1190 !offsets.containsOffset(dec) &&
1196 offsets.addOffset(dec);
1267 if(offsets.isEmpty()) {
1273 if(offsets.isEmpty()) {
1298 offsets.shift(spanLength);
1305 pos-=offsets.popMinimum();