Package | Description |
---|---|
com.google.common.escape |
Interfaces, utilities, and simple implementations of escapers and encoders.
|
com.google.common.escape.testing |
Testing utilities for use in tests of
com.google.common.escape . |
Modifier and Type | Class and Description |
---|---|
class |
ArrayBasedCharEscaper
A
CharEscaper that uses an array to quickly look up replacement characters for a given
char value. |
Modifier and Type | Method and Description |
---|---|
static String |
Escapers.computeReplacement(CharEscaper escaper,
char c)
Returns a string that would replace the given character in the specified escaper, or
null if no replacement should be made. |
Modifier and Type | Method and Description |
---|---|
static 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.
|
Copyright © 2010–2019. All rights reserved.