- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 140 for replacements (0.17 sec)
-
guava/src/com/google/common/escape/CharEscaperBuilder.java
/** * Simple decorator that turns an array of replacement char[]s into a CharEscaper, this results in * a very fast escape method. */ private static final class CharArrayDecorator extends CharEscaper { private final char[] @Nullable [] replacements; private final int replaceLength; CharArrayDecorator(char[] @Nullable [] replacements) { this.replacements = replacements; this.replaceLength = replacements.length;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 3.9K bytes - Viewed (0) -
android/guava/src/com/google/common/escape/ArrayBasedEscaperMap.java
return EMPTY_REPLACEMENT_ARRAY; } char max = max(map.keySet()); char[][] replacements = new char[max + 1][]; for (Character c : map.keySet()) { replacements[c] = map.get(c).toCharArray(); } return replacements; } // Immutable empty array for when there are no replacements. @SuppressWarnings("ConstantCaseForConstants") // An empty array is a constant.Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Dec 28 01:26:26 UTC 2024 - 3.2K bytes - Viewed (0) -
android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java
/** * A {@link UnicodeEscaper} that uses an array to quickly look up replacement characters for a given * code point. An additional safe range is provided that determines whether code points without * specific replacements are to be considered safe and left unescaped or should be escaped in a * general way. * * <p>A good example of usage of this class is for HTML escaping where the replacement arrayRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 15:45:16 UTC 2025 - 8.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ReflectionFreeAssertThrows.java
import java.util.concurrent.TimeoutException; import junit.framework.AssertionFailedError; import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; /** Replacements for JUnit's {@code assertThrows} that work under GWT/J2CL. */ @GwtCompatible @NullMarked final class ReflectionFreeAssertThrows { interface ThrowingRunnable { void run() throws Throwable; }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/escape/EscapersTest.java
} public void testBuilderRetainsState() { // Setting a safe range and unsafe replacement works as expected. Escapers.Builder builder = Escapers.builder(); builder.setSafeRange('a', 'z'); builder.setUnsafeReplacement("X"); assertThat(builder.build().escape("The Quick Brown Fox!")).isEqualTo("XheXXuickXXrownXXoxX"); // Explicit replacements take priority over unsafe characters. builder.addEscape(' ', "_");
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 4.1K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/UrlConvertHelper.java
* * @param target The target string. * @param replacement The replacement string. */ public void add(final String target, final String replacement) { if (target == null || replacement == null) { throw new CrawlerSystemException("Target or replacement cannot be null."); } convertMap.put(target, replacement); } /** * Sets the conversion map.Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 3.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ReflectionFreeAssertThrows.java
import java.util.concurrent.TimeoutException; import junit.framework.AssertionFailedError; import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; /** Replacements for JUnit's {@code assertThrows} that work under GWT/J2CL. */ @GwtCompatible @NullMarked final class ReflectionFreeAssertThrows { interface ThrowingRunnable { void run() throws Throwable; }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ReflectionFreeAssertThrows.java
import java.util.concurrent.TimeoutException; import junit.framework.AssertionFailedError; import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; /** Replacements for JUnit's {@code assertThrows} that work under GWT/J2CL. */ @GwtCompatible @NullMarked final class ReflectionFreeAssertThrows { interface ThrowingRunnable { void run() throws Throwable; }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/ReflectionFreeAssertThrows.java
import java.util.concurrent.TimeoutException; import junit.framework.AssertionFailedError; import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; /** Replacements for JUnit's {@code assertThrows} that work under GWT/J2CL. */ @GwtCompatible @NullMarked final class ReflectionFreeAssertThrows { interface ThrowingRunnable { void run() throws Throwable; }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/escape/ArrayBasedUnicodeEscaperTest.java
@Override protected char[] escapeUnsafe(int c) { return unknown; } }; EscaperAsserts.assertBasic(replacingEscaper); // Replacements are applied first regardless of whether the character is in // the safe range or not ('&' is a safe char while '\t' and '\n' are not). assertThat(replacingEscaper.escape("\tFish &\0 Chips\r\n"))Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Feb 18 15:41:04 UTC 2025 - 5.2K bytes - Viewed (0)