Searched refs:safeChars (Results 1 – 2 of 2) sorted by relevance
95 public PercentEscaper(String safeChars, boolean plusForSpace) { in PercentEscaper() argument98 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() argument125 char[] safeCharArray = safeChars.toCharArray(); in createSafeOctets()
56 String safeChars = "\0\u0100\uD800\uDC00\uFFFF"; in testReplacements() local57 assertEquals(safeChars, escaper.escape(safeChars)); in testReplacements()