- Sort Score
- Num 10 results
- Language All
Results 1 - 6 of 6 for safeMax (0.06 seconds)
-
android/guava/src/com/google/common/escape/Escapers.java
* safeMax < safeMin} then the safe range is empty. * * @param safeMin the lowest 'safe' character * @param safeMax the highest 'safe' character * @return the builder instance */ @CanIgnoreReturnValue public Builder setSafeRange(char safeMin, char safeMax) { this.safeMin = safeMin; this.safeMax = safeMax; return this; }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 6.9K bytes - Click Count (0) -
android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java
this.replacementsLength = replacements.length; if (safeMax < safeMin) { // If the safe range is empty, set the range limits to opposite extremes // to ensure the first test of either value will fail. safeMax = -1; safeMin = Integer.MAX_VALUE; } this.safeMin = safeMin; this.safeMax = safeMax; // This is a bit of a hack but lets us do quicker per-character checks inCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 13 15:45:16 GMT 2025 - 8.5K bytes - Click Count (0) -
android/guava/src/com/google/common/escape/ArrayBasedCharEscaper.java
* @param safeMin the lowest character value in the safe range * @param safeMax the highest character value in the safe range */ protected ArrayBasedCharEscaper( Map<Character, String> replacementMap, char safeMin, char safeMax) { this(ArrayBasedEscaperMap.create(replacementMap), safeMin, safeMax); } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 6.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/escape/EscapersTest.java
assertThat(escaper.escape("The Quick Brown Fox")).isEqualTo("The Quick Brown Fox"); } public void testBuilderInitialStateNoneUnsafe() { // No characters are unsafe by default (safeMin == 0, safeMax == 0xFFFF). Escaper escaper = Escapers.builder().setUnsafeReplacement("X").build(); assertThat(escaper.escape("\0\uFFFF")).isEqualTo("\0\uFFFF"); } public void testBuilderRetainsState() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 05:21:26 GMT 2026 - 4.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/escape/EscapersTest.java
assertThat(escaper.escape("The Quick Brown Fox")).isEqualTo("The Quick Brown Fox"); } public void testBuilderInitialStateNoneUnsafe() { // No characters are unsafe by default (safeMin == 0, safeMax == 0xFFFF). Escaper escaper = Escapers.builder().setUnsafeReplacement("X").build(); assertThat(escaper.escape("\0\uFFFF")).isEqualTo("\0\uFFFF"); } public void testBuilderRetainsState() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 05:21:26 GMT 2026 - 4.1K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/Monitor.java
* {@code notifyAll()} must be used instead of {@code notify()} because there are two different * logical conditions being awaited. * * {@snippet : * public class SafeBox<V> { * private V value; * * public synchronized V get() throws InterruptedException { * while (value == null) { * wait(); * } * V result = value; * value = null;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jan 28 22:39:02 GMT 2026 - 43.5K bytes - Click Count (0)