code: public static int indexOf(final String input, final char delim, final int fromIndex) {
          if (input == null) return -1;
          int index = input.indexOf(delim, fromIndex);
          if (index != 0) {
              while (index != -1 && index != (input.length() - 1)) {
                  if (input.charAt(index - 1) != '\\') break;
                  index = input.indexOf(delim, index + 1);
              }
          }
          return index;
      }
docs: Gets the first index of a character after fromIndex. Ignoring characters that have been escaped
  
  @param input     The string to be searched
  @param delim     The character to be found
  @param fromIndex Start searching from this index
  @return The index of the found character or -1 if the character wasn't found