Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 172 for ESCAPE (0.11 sec)

  1. 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)
  2. src/runtime/memmove_test.go

    	p := new([7]byte)
    	Escape(p)
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		*p = [7]byte{}
    	}
    }
    
    func BenchmarkClearFat8(b *testing.B) {
    	p := new([8 / 4]uint32)
    	Escape(p)
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		*p = [8 / 4]uint32{}
    	}
    }
    
    func BenchmarkClearFat11(b *testing.B) {
    	p := new([11]byte)
    	Escape(p)
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:12 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  3. test/escape_runtime_atomic.go

    // errorcheck -0 -m -l
    
    // Copyright 2019 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.
    
    // Test escape analysis for internal/runtime/atomic.
    
    package escape
    
    import (
    	"internal/runtime/atomic"
    	"unsafe"
    )
    
    // BAD: should always be "leaking param: addr to result ~r0 level=1$".
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 874 bytes
    - Viewed (0)
  4. tests/table_test.go

    		t.Errorf("Table with escape character, got %v", r.Statement.SQL.String())
    	}
    
    	r = dryDB.Table("user as u").Select("name").Find(&User{}).Statement
    	if !regexp.MustCompile("SELECT .name. FROM user as u WHERE .u.\\..deleted_at. IS NULL").MatchString(r.Statement.SQL.String()) {
    		t.Errorf("Table with escape character, got %v", r.Statement.SQL.String())
    	}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Mar 09 09:31:28 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/escape/ArrayBasedCharEscaperTest.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.escape;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.ImmutableMap;
    import com.google.common.escape.testing.EscaperAsserts;
    import java.io.IOException;
    import junit.framework.TestCase;
    
    /**
     * @author David Beaumont
     */
    @GwtCompatible
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 23:02:38 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/escape/ArrayBasedCharEscaperTest.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.escape;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.ImmutableMap;
    import com.google.common.escape.testing.EscaperAsserts;
    import java.io.IOException;
    import junit.framework.TestCase;
    
    /**
     * @author David Beaumont
     */
    @GwtCompatible
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 23:02:38 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. src/go/printer/gobuild.go

    	// begins and ends with a tabwriter.Escape byte.
    	// And some newlines have turned into \f bytes.
    	insert := 0
    	for pos := 0; ; {
    		// Skip leading space at beginning of line.
    		blank := true
    		for pos < len(p.output) && (p.output[pos] == ' ' || p.output[pos] == '\t') {
    			pos++
    		}
    		// Skip over // comment if any.
    		if pos+3 < len(p.output) && p.output[pos] == tabwriter.Escape && p.output[pos+1] == '/' && p.output[pos+2] == '/' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/util/QueryStringBuilder.java

        }
    
        public QueryStringBuilder sortField(final String sortField) {
            this.sortField = sortField;
            return this;
        }
    
        public QueryStringBuilder escape(final boolean escape) {
            this.escape = escape;
            return this;
        }
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/text/JsonUtilTest.java

    import static org.junit.Assert.assertThat;
    
    import org.junit.Test;
    
    /**
     * @author shinsuke
     *
     */
    public class JsonUtilTest {
        @Test
        public void escape() {
            assertThat(JsonUtil.escape("abc123あア亜"), is("abc123あア亜"));
            assertThat(JsonUtil.escape("\\\"/\b\t\n\f\r\0"), is("\\\\\\\"\\/\\b\\t\\n\\f\\r\\u0000"));
        }
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1K bytes
    - Viewed (0)
  10. src/text/tabwriter/tabwriter.go

    	b.pos = len(b.buf)
    }
    
    // To escape a text segment, bracket it with Escape characters.
    // For instance, the tab in this string "Ignore this tab: \xff\t\xff"
    // does not terminate a cell and constitutes a single character of
    // width one for formatting purposes.
    //
    // The value 0xff was chosen because it cannot appear in a valid UTF-8 sequence.
    const Escape = '\xff'
    
    // Start escaped mode.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 16:46:34 UTC 2024
    - 17.8K bytes
    - Viewed (0)
Back to top