* @param suffix
   * @param end
   * @return boolean
   */
  public static boolean endsWithP(String string, String suffix, int end) {
    if (end == Stella.NULL_INTEGER) {
      end = string.length();
    }
    { int suffixlength = suffix.length();
      int start = end - suffixlength;

      if (start < 0) {
        return (false);
      }
      else {
        { boolean alwaysP000 = true;

          { int i = Stella.NULL_INTEGER;
            int iter000 = 0;
            int upperBound000 = suffixlength - 1;
            int j = Stella.NULL_INTEGER;
            int iter001 = start;

            loop000 : for (;iter000 <= upperBound000; iter000 = iter000 + 1, iter001 = iter001 + 1) {
              i = iter000;
              j = iter001;
              if (!(suffix.charAt(i) == string.charAt(j))) {
                alwaysP000 = false;
                break loop000;
              }
            }
          }
          { boolean value000 = alwaysP000;

            return (value000);
          }
        }
      }
    }
  }