src/java.desktop/share/classes/java/awt/datatransfer/MimeTypeParameterList.java

Print this page

        

*** 161,179 **** // yup it's quoted so eat it and capture the quoted string ++currentIndex; lastIndex = currentIndex; if(currentIndex < length) { ! // find the next unescqped quote foundit = false; while((currentIndex < length) && !foundit) { currentChar = rawdata.charAt(currentIndex); if(currentChar == '\\') { // found an escape sequence so pass this and the next character currentIndex += 2; } else if(currentChar == '"') { ! // foundit! foundit = true; } else { ++currentIndex; } } --- 161,179 ---- // yup it's quoted so eat it and capture the quoted string ++currentIndex; lastIndex = currentIndex; if(currentIndex < length) { ! // find the next unescaped quote foundit = false; while((currentIndex < length) && !foundit) { currentChar = rawdata.charAt(currentIndex); if(currentChar == '\\') { // found an escape sequence so pass this and the next character currentIndex += 2; } else if(currentChar == '"') { ! // found it! foundit = true; } else { ++currentIndex; } }