code: static int isNewLine(int[] chars)
    {
      checkArgument(chars.length > 1);
      // nl \n|\r\n|\r|\f
      if (chars[0] == '\r' && chars[1] == '\n')
      {
        return 2;
      }
      else if (chars[0] == '\n' || chars[0] == '\r' || chars[0] == '\f')
      {
        return 1;
      }
      return 0;
    }
docs: Determine whether a sequence of chars begin with a CSS newline.
  
  @param chars An array with minimum two characters
  @return 0 if there is no newline, else 1 or 2, representing the newline
  length in characters.