code: public static int indexOf(String text, char target) {
          return indexOf(text, 0, text.length(), target, null);
      }
docs: Returns the index within this string of the first occurrence of the specified character, similar to String.indexOf().
  However, any occurrence of the specified character enclosed between balanced parentheses/brackets/braces is ignored.
  
  @param text a String
  @param target the character to search for
  @return the index of the character in the string, or -1 if the specified character is not found