Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 260 for escapers (0.14 sec)

  1. android/guava/src/com/google/common/escape/ArrayBasedCharEscaper.java

       */
      @Override
      public final String escape(String s) {
        checkNotNull(s); // GWT specific check (do not optimize).
        for (int i = 0; i < s.length(); i++) {
          char c = s.charAt(i);
          if ((c < replacementsLength && replacements[c] != null) || c > safeMax || c < safeMin) {
            return escapeSlow(s, i);
          }
        }
        return s;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  2. src/html/escape.go

    	`<`, "&lt;",
    	`>`, "&gt;",
    	`"`, "&#34;", // "&#34;" is shorter than "&quot;".
    )
    
    // EscapeString escapes special characters like "<" to become "&lt;". It
    // escapes only five such characters: <, >, &, ' and ".
    // UnescapeString(EscapeString(s)) == s always holds, but the converse isn't
    // always true.
    func EscapeString(s string) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 13 07:00:18 UTC 2020
    - 5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java

     * highest valued code point that requires escaping. For example a replacement map containing the
     * single character '{@code \}{@code u1000}' will require approximately 16K of memory. If you need
     * to create multiple escaper instances that have the same character replacement mapping consider
     * using {@link ArrayBasedEscaperMap}.
     *
     * @author David Beaumont
     * @since 15.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 8.5K bytes
    - Viewed (0)
  4. test/escape.go

    // run
    
    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    // Test for correct heap-moving of escaped variables.
    // It is hard to check for the allocations, but it is easy
    // to check that if you call the function twice at the
    // same stack level, the pointers returned should be
    // different.
    
    var bad = false
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 06 18:34:24 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java

     * highest valued code point that requires escaping. For example a replacement map containing the
     * single character '{@code \}{@code u1000}' will require approximately 16K of memory. If you need
     * to create multiple escaper instances that have the same character replacement mapping consider
     * using {@link ArrayBasedEscaperMap}.
     *
     * @author David Beaumont
     * @since 15.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 8.5K bytes
    - Viewed (0)
  6. src/internal/abi/escape.go

    //go:nosplit
    //go:nocheckptr
    func NoEscape(p unsafe.Pointer) unsafe.Pointer {
    	x := uintptr(p)
    	return unsafe.Pointer(x ^ 0)
    }
    
    var alwaysFalse bool
    var escapeSink any
    
    // Escape forces any pointers in x to escape to the heap.
    func Escape[T any](x T) T {
    	if alwaysFalse {
    		escapeSink = x
    	}
    	return x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 884 bytes
    - Viewed (0)
  7. guava/src/com/google/common/escape/CharEscaperBuilder.java

        }
        return result;
      }
    
      /**
       * Convert this builder into a char escaper which is just a decorator around the underlying array
       * of replacement char[]s.
       *
       * @return an escaper that escapes based on the underlying array.
       */
      public Escaper toEscaper() {
        return new CharArrayDecorator(toArray());
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/escape/ArrayBasedEscaperMap.java

       *
       * @param replacements a map of characters to their escaped representations
       */
      public static ArrayBasedEscaperMap create(Map<Character, String> replacements) {
        return new ArrayBasedEscaperMap(createReplacementArray(replacements));
      }
    
      // The underlying replacement array we can share between multiple escaper
      // instances.
      private final char[][] replacementArray;
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/escape/ArrayBasedEscaperMap.java

       *
       * @param replacements a map of characters to their escaped representations
       */
      public static ArrayBasedEscaperMap create(Map<Character, String> replacements) {
        return new ArrayBasedEscaperMap(createReplacementArray(replacements));
      }
    
      // The underlying replacement array we can share between multiple escaper
      // instances.
      private final char[][] replacementArray;
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/text/JsonUtil.java

     *
     */
    public class JsonUtil {
    
        /**
         * Defualt constructor.
         */
        protected JsonUtil() {
        }
    
        /**
         * Escapes a value as Json string.
         *
         * @param value input
         * @return escaped string.
         */
        public static String escape(final String value) {
            if (value == null) {
                return null;
            }
    
            char c;
            final int len = value.length();
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top