- cp = pos + seplen;
- wasescaped = escape == -1;
- // last separator may be in an unmatched quote
- wasquoted = DELIMITERS_PATTERN.matcher(lstitem).matches();
- }
- if (cp < input.length())
- {
- String c = input.substring(cp);
- if (wasescaped || wasquoted)
- {
- // append final separator
- jv.set(jv.size() - 1, lstitem + delimiter + c);
- }
- else