/** * Find a char starting at the position provided. The char must not be inside a quoted string * (single or double) * * @param ch * The char to search for * @param startPos * The index to start at * @return -1 if not found * @throws ParseException */ public int findOutOfQuotes(final char ch, int startPos) throws ParseException { return findOutOfQuotes(ch, startPos, (char)0); }
return findOutOfQuotes(ch, closeBracketIndex + 1, quotationChar);
closeBracketIndex = input.find('>', openBracketIndex); else closeBracketIndex = input.findOutOfQuotes('>', openBracketIndex);
closeBracketIndex = input.find('>', openBracketIndex); else closeBracketIndex = input.findOutOfQuotes('>', openBracketIndex);