Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 136 for escapers (0.15 sec)

  1. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/process/ArgWriter.java

            this.writer = writer;
            this.backslashEscape = backslashEscape;
            this.quotablePattern = quotablePattern;
        }
    
        /**
         * Double quotes around args containing whitespace, backslash chars are escaped using double backslash, platform line separators.
         */
        public static ArgWriter unixStyle(PrintWriter writer) {
            return new ArgWriter(writer, true, WHITESPACE);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 10:14:33 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. subprojects/core/src/testFixtures/groovy/org/gradle/process/ShellScript.groovy

        }
    
        /**
         * Converts a list of command line elements (returned by {@link #getCommandLine()}) to a list of Java/Groovy/Kotlin string literals.
         * Literals include surrounding quotes and have special symbols escaped, so they are safe to use in the sources.
         * @param cmd the command line elements to be converted
         * @return a List of string literals
         */
        static List<String> cmdToStringLiterals(List<String> cmd) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 12 10:33:12 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. src/crypto/internal/boring/boring.go

    		*bnp = nil
    	}
    	if b == nil {
    		return true
    	}
    	bn := bigToBN(b)
    	if bn == nil {
    		return false
    	}
    	*bnp = bn
    	return true
    }
    
    // noescape hides a pointer from escape analysis.  noescape is
    // the identity function but escape analysis doesn't think the
    // output depends on the input.  noescape is inlined and currently
    // compiles down to zero instructions.
    // USE CAREFULLY!
    //
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 14:00:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. src/text/template/funcs.go

    	}
    	w.Write(b[last:])
    }
    
    // HTMLEscapeString returns the escaped HTML equivalent of the plain text data s.
    func HTMLEscapeString(s string) string {
    	// Avoid allocation if we can.
    	if !strings.ContainsAny(s, "'\"&<>\000") {
    		return s
    	}
    	var b strings.Builder
    	HTMLEscape(&b, []byte(s))
    	return b.String()
    }
    
    // HTMLEscaper returns the escaped HTML equivalent of the textual
    // representation of its arguments.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  5. src/net/udpsock_posix.go

    		n, err = c.fd.readFromInet4(b, &from)
    		if err == nil {
    			ip := from.Addr // copy from.Addr; ip escapes, so this line allocates 4 bytes
    			*addr = UDPAddr{IP: ip[:], Port: from.Port}
    		}
    	case syscall.AF_INET6:
    		var from syscall.SockaddrInet6
    		n, err = c.fd.readFromInet6(b, &from)
    		if err == nil {
    			ip := from.Addr // copy from.Addr; ip escapes, so this line allocates 16 bytes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:54:32 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. src/runtime/atomic_pointer.go

    import (
    	"internal/goexperiment"
    	"internal/runtime/atomic"
    	"unsafe"
    )
    
    // These functions cannot have go:noescape annotations,
    // because while ptr does not escape, new does.
    // If new is marked as not escaping, the compiler will make incorrect
    // escape analysis decisions about the pointer value being stored.
    
    // atomicwb performs a write barrier before an atomic pointer write.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. src/internal/weak/pointer.go

    type Pointer[T any] struct {
    	u unsafe.Pointer
    }
    
    // Make creates a weak pointer from a strong pointer to some value of type T.
    func Make[T any](ptr *T) Pointer[T] {
    	// Explicitly force ptr to escape to the heap.
    	ptr = abi.Escape(ptr)
    
    	var u unsafe.Pointer
    	if ptr != nil {
    		u = runtime_registerWeakPointer(unsafe.Pointer(ptr))
    	}
    	runtime.KeepAlive(ptr)
    	return Pointer[T]{u}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:13:25 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  8. src/net/url/url_test.go

    	{'.', encodeHost, false},
    }
    
    func TestShouldEscape(t *testing.T) {
    	for _, tt := range shouldEscapeTests {
    		if shouldEscape(tt.in, tt.mode) != tt.escape {
    			t.Errorf("shouldEscape(%q, %v) returned %v; expected %v", tt.in, tt.mode, !tt.escape, tt.escape)
    		}
    	}
    }
    
    type timeoutError struct {
    	timeout bool
    }
    
    func (e *timeoutError) Error() string { return "timeout error" }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:52:38 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  9. src/cmd/go/internal/work/shell.go

    	if sh.workDir != "" && !strings.HasPrefix(cmd, "cat ") {
    		cmd = strings.ReplaceAll(cmd, sh.workDir, "$WORK")
    		escaped := strconv.Quote(sh.workDir)
    		escaped = escaped[1 : len(escaped)-1] // strip quote characters
    		if escaped != sh.workDir {
    			cmd = strings.ReplaceAll(cmd, escaped, "$WORK")
    		}
    	}
    	return cmd
    }
    
    // ShowCmd prints the given command to standard output
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/ViewHelper.java

        }
    
        protected String escapeHighlight(final String text) {
            final String escaped = LaFunctions.h(text);
            final String value;
            if (ComponentUtil.getFessConfig().isQueryHighlightBoundaryPositionDetect()) {
                int pos = escaped.indexOf(escapedHighlightPre);
                while (pos >= 0) {
                    final int c = escaped.codePointAt(pos);
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu May 30 06:58:45 UTC 2024
    - 40.2K bytes
    - Viewed (0)
Back to top