Lines Matching defs:escape

42     public String escape(String string) {
48 public Appendable escape(final Appendable out) {
76 protected char[] escape(char c) {
116 * safe to use this escaper to escape attribute values. Use the
117 * {@link #xmlEscaper()} escaper to escape attribute values or if you are
509 * and values should be individually encoded. If you escape an entire query
589 * and values should be individually encoded. If you escape an entire query
678 * RFC 2396</a>. Specifically it will not escape "/", ":" and ",". This is
699 * <p><b>Note</b></p>: does not escape single quotes, so use the escaper
709 * Java string literal. Does <em>not</em> escape single-quotes, so use
758 * in a string with their Unicode escape sequences ({@code \\uxxxx} where
759 * {@code xxxx} is a hex number). Existing escape sequences won't be affected.
766 * Escapes each non-ASCII character in with its Unicode escape sequence
767 * {@code \\uxxxx} where {@code xxxx} is a hex number. Existing escape
772 @Override protected char[] escape(char c) {
806 // TODO(laurence): perhaps this should escape non-ASCII characters?
818 * Non-ASCII characters are replaced with their ASCII javascript escape
826 * {@code CharEscaper} to escape javascript strings. Turns all non-ASCII
827 * characters into ASCII javascript escape sequences (e.g., \\uhhhh or \xhh).
860 * Returns a composite {@link CharEscaper} instance that tries to escape
864 * <p>The returned escaper will attempt to escape each character using the
868 * If the primary escaper has an escape for a character, the secondary escaper
871 * to first escape with one escaper, and then with another, it is recommended
888 * a range of safe characters. It overrides {@link #escape(String)} to improve
890 * when processing strings that do not require escaping (providing the escape
908 @Override public String escape(String s) {
924 * want to keep this as fast as possible, so no calls to super.escape first.
932 @Override protected char[] escape(char c) {
978 * want to keep this as fast as possible, so no calls to super.escape first.
986 @Override protected char[] escape(char c) {
1000 // we can do a 2 digit hex escape for chars less that 0x100
1011 // 4 digit hex escape everything else
1029 * want to keep this as fast as possible, so no calls to super.escape first.
1037 @Override protected char[] escape(char c) {
1077 * A composite {@code CharEscaper} object that tries to escape characters
1092 protected char[] escape(char c) {
1093 char result[] = primary.escape(c);
1095 result = secondary.escape(c);