Lines Matching refs:overlap

296      *       must be matched with a partial overlap
341 * must be matched with a partial overlap
344 * must be matched with a full overlap because the longest-match algorithm
386 // Consider strings; they may overlap with the span.
400 int overlap = spanLengths[i];
401 if (overlap == ALL_CP_CONTAINED) {
408 // Try to match this string at pos-overlap..pos.
409 if (overlap >= LONG_SPAN) {
410 overlap = length16;
412 overlap = string.offsetByCodePoints(overlap, -1); // Length of the string minus the last code
415 if (overlap > spanLength) {
416 overlap = spanLength;
418 int inc = length16 - overlap; // Keep overlap+inc==length16.
424 if (!offsets.containsOffset(inc) && matches16CPB(s, pos - overlap, length, string, length16)) {
430 if (overlap == 0) {
433 --overlap;
440 int overlap = spanLengths[i];
448 // Try to match this string at pos-overlap..pos.
449 if (overlap >= LONG_SPAN) {
450 overlap = length16;
454 if (overlap > spanLength) {
455 overlap = spanLength;
457 int inc = length16 - overlap; // Keep overlap+inc==length16.
459 if (inc > rest || overlap < maxOverlap) {
463 if ((overlap > maxOverlap || /* redundant overlap==maxOverlap && */inc > maxInc)
464 && matches16CPB(s, pos - overlap, length, string, length16)) {
466 maxOverlap = overlap;
469 --overlap;
560 // Consider strings; they may overlap with the span,
655 // Consider strings; they may overlap with the span.
670 int overlap = spanLengths[spanBackLengthsOffset + i];
671 if (overlap == ALL_CP_CONTAINED) {
678 // Try to match this string at pos-(length16-overlap)..pos-length16.
679 if (overlap >= LONG_SPAN) {
680 overlap = length16;
684 overlap -= len1; // Length of the string minus the first code point.
686 if (overlap > spanLength) {
687 overlap = spanLength;
689 int dec = length16 - overlap; // Keep dec+overlap==length16.
701 if (overlap == 0) {
704 --overlap;
711 int overlap = spanLengths[spanBackLengthsOffset + i];
719 // Try to match this string at pos-(length16-overlap)..pos-length16.
720 if (overlap >= LONG_SPAN) {
721 overlap = length16;
725 if (overlap > spanLength) {
726 overlap = spanLength;
728 int dec = length16 - overlap; // Keep dec+overlap==length16.
730 if (dec > pos || overlap < maxOverlap) {
734 if ((overlap > maxOverlap || /* redundant overlap==maxOverlap && */dec > maxDec)
737 maxOverlap = overlap;
740 --overlap;