Bug 294790 [KeyBindings] LegacyActionTools should support SWT.F13 - F20
bundles/org.eclipse.jface/src/org/eclipse/jface/action/LegacyActionTools.java
lastIndex = index;
			index = text.indexOf('&', index);
		}
		if (lastIndex < len) {
			sb.append(text.substring(lastIndex, len));
		}
		return sb.toString();
	}
	
	/**
	 * Convenience method for escaping all mnemonics in the given string. For
	 * example, <code>escapeMnemonics("a & b & c")</code> will return
	 * <code>"a && b && c"</code>.
	 * 
	 * @param text
	 *            the text
	 * @return the text with mnemonics escaped
	 * @since 3.6
	 */
	public static final String escapeMnemonics(String text) {
		return Util.replaceAll(text, "&", "&&"); 
	}
	/**
	 * This class cannot be instantiated.
	 */
	private LegacyActionTools() {
		
	}
}