docs: private static int lineSeparatorIndex(char[] array, int length) {
          for (int k = 0; k < length; k++) {
              if (isLineSeparator(array[k])) {
                  return k;
              }
          }
          return -1;
      }