addressbuilder/src/main/java/org/ocpsoft/urlbuilder/util/ParseTools.java
public static boolean isEscaped(final CharSequence path, final int cursor)
   {
      Assert.notNull(path, "Character input array must not be null.");
      Assert.assertTrue(cursor >= 0, "Start position must be greater than zero.");
      Assert.assertTrue(cursor < (path.length()),
               "Start position must be within the array upper bound.");

      if ((cursor > 0) && (path.charAt(cursor - 1) == ESCAPE_CHAR))
      {
         if ((cursor == 1) || ((cursor > 1) && (path.charAt(cursor - 2) != ESCAPE_CHAR)))
         {
            return true;
         }
      }
      return false;
   }
public static boolean isEscaped(final CharSequence path, final int cursor)
   {
      Assert.notNull(path, "Character input array must not be null.");
      Assert.assertTrue(cursor >= 0, "Start position must be greater than zero.");
      Assert.assertTrue(cursor < (path.length()),
               "Start position must be within the array upper bound.");

      if ((cursor > 0) && (path.charAt(cursor - 1) == ESCAPE_CHAR))
      {
         if ((cursor == 1) || ((cursor > 1) && (path.charAt(cursor - 2) != ESCAPE_CHAR)))
         {
            return true;
         }
      }
      return false;
   }
Return true if the character at the given cursor is escaped; otherwise, return false.