jdk/src/java.base/share/classes/java/util/regex/Pattern.java
changeset 45888 ae448cf92e00
parent 45124 144479e89cdb
child 46058 d7cc0adf7ce1
equal deleted inserted replaced
45887:0db4957afd51 45888:ae448cf92e00
  3885                 if (ch == 0x0A || ch == 0x0B || ch == 0x0C ||
  3885                 if (ch == 0x0A || ch == 0x0B || ch == 0x0C ||
  3886                     ch == 0x85 || ch == 0x2028 || ch == 0x2029)
  3886                     ch == 0x85 || ch == 0x2028 || ch == 0x2029)
  3887                     return next.match(matcher, i + 1, seq);
  3887                     return next.match(matcher, i + 1, seq);
  3888                 if (ch == 0x0D) {
  3888                 if (ch == 0x0D) {
  3889                     i++;
  3889                     i++;
  3890                     if (i < matcher.to && seq.charAt(i) == 0x0A &&
  3890                     if (i < matcher.to) {
  3891                         next.match(matcher, i + 1, seq)) {
  3891                         if (seq.charAt(i) == 0x0A &&
  3892                         return true;
  3892                             next.match(matcher, i + 1, seq)) {
       
  3893                             return true;
       
  3894                         }
       
  3895                     } else {
       
  3896                         matcher.hitEnd = true;
  3893                     }
  3897                     }
  3894                     return next.match(matcher, i, seq);
  3898                     return next.match(matcher, i, seq);
  3895                 }
  3899                 }
  3896             } else {
  3900             } else {
  3897                 matcher.hitEnd = true;
  3901                 matcher.hitEnd = true;