Uses of Class
com.google.common.escape.CharEscaper
Packages that use CharEscaper
Package
Description
Interfaces, utilities, and simple implementations of escapers and encoders.
Testing utilities for use in tests of
com.google.common.escape
.-
Uses of CharEscaper in com.google.common.escape
Subclasses of CharEscaper in com.google.common.escapeModifier and TypeClassDescriptionclass
ACharEscaper
that uses an array to quickly look up replacement characters for a givenchar
value.private static class
Simple decorator that turns an array of replacement char[]s into a CharEscaper, this results in a very fast escape method.Methods in com.google.common.escape with parameters of type CharEscaperModifier and TypeMethodDescriptionstatic String
Escapers.computeReplacement
(CharEscaper escaper, char c) Returns a string that would replace the given character in the specified escaper, ornull
if no replacement should be made. -
Uses of CharEscaper in com.google.common.escape.testing
Methods in com.google.common.escape.testing with parameters of type CharEscaperModifier and TypeMethodDescriptionstatic void
EscaperAsserts.assertEscaping
(CharEscaper escaper, String expected, char c) Asserts that an escaper escapes the given character into the expected string.static void
EscaperAsserts.assertUnescaped
(CharEscaper escaper, char c) Asserts that an escaper does not escape the given character.