code: public static int indexOfAnyBut(final CharSequence cs, final char... searchChars) {
          if (isEmpty(cs) || ArrayUtils.isEmpty(searchChars)) {
              return INDEX_NOT_FOUND;
          }
          final int csLen = cs.length();
          final int csLast = csLen - 1;
          final int searchLen = searchChars.length;
          final int searchLast = searchLen - 1;
          outer:
          for (int i = 0; i < csLen; i++) {
              final char ch = cs.charAt(i);
              for (int j = 0; j < searchLen; j++) {
                  if (searchChars[j] == ch) {
                      if (i < csLast && j < searchLast && Character.isHighSurrogate(ch)) {
                          if (searchChars[j + 1] == cs.charAt(i + 1)) {
                              continue outer;
                          }
                      } else {
                          continue outer;
                      }
                  }
              }
              return i;
          }
          return INDEX_NOT_FOUND;
      }
docs: <p>Searches a CharSequence to find the first index of any
  character not in the given set of characters.</p>
  
  <p>A {@code null} CharSequence will return {@code -1}.
  A {@code null} or zero length search array will return {@code -1}.</p>
  
  <pre>
  StringUtils.indexOfAnyBut(null, *)                              = -1
  StringUtils.indexOfAnyBut("", *)                                = -1
  StringUtils.indexOfAnyBut(*, null)                              = -1
  StringUtils.indexOfAnyBut(*, [])                                = -1
  StringUtils.indexOfAnyBut("zzabyycdxx", new char[] {'z', 'a'} ) = 3
  StringUtils.indexOfAnyBut("aba", new char[] {'z'} )             = 0
  StringUtils.indexOfAnyBut("aba", new char[] {'a', 'b'} )        = -1
  
  </pre>
  
  @param cs  the CharSequence to check, may be null
  @param searchChars  the chars to search for, may be null
  @return the index of any of the chars, -1 if no match or null input
  @since 2.0
  @since 3.0 Changed signature from indexOfAnyBut(String, char[]) to indexOfAnyBut(CharSequence, char...)