Home
last modified time | relevance | path

Searched refs:safeChars (Results 1 – 2 of 2) sorted by relevance

/external/guava/guava/src/com/google/common/net/
DPercentEscaper.java95 public PercentEscaper(String safeChars, boolean plusForSpace) { in PercentEscaper() argument
98 checkNotNull(safeChars); // eager for GWT. in PercentEscaper()
100 if (safeChars.matches(".*[0-9A-Za-z].*")) { in PercentEscaper()
105 safeChars += "abcdefghijklmnopqrstuvwxyz" + in PercentEscaper()
110 if (plusForSpace && safeChars.contains(" ")) { in PercentEscaper()
115 this.safeOctets = createSafeOctets(safeChars); in PercentEscaper()
123 private static boolean[] createSafeOctets(String safeChars) { in createSafeOctets() argument
125 char[] safeCharArray = safeChars.toCharArray(); in createSafeOctets()
/external/guava/guava-tests/test/com/google/common/escape/
DArrayBasedUnicodeEscaperTest.java56 String safeChars = "\0\u0100\uD800\uDC00\uFFFF"; in testReplacements() local
57 assertEquals(safeChars, escaper.escape(safeChars)); in testReplacements()