Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 469 for ESCAPE (0.08 sec)

  1. test/newinline.go

    }
    
    func select1(x, y chan bool) int { // ERROR "can inline select1" "x does not escape" "y does not escape"
    	select {
    	case <-x:
    		return 1
    	case <-y:
    		return 2
    	}
    }
    
    func select2(x, y chan bool) { // ERROR "can inline select2" "x does not escape" "y does not escape"
    loop: // test that labeled select can be inlined.
    	select {
    	case <-x:
    		break loop
    	case <-y:
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:25 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. test/fixedbugs/bug024.go

    package main
    
    func main() {
    	var i int;
    	i = '\'';
    	i = '\\';
    	var s string;
    	s = "\"";
    	_, _ = i, s;
    }
    /*
    bug.go:5: unknown escape sequence: '
    bug.go:6: unknown escape sequence: \
    bug.go:8: unknown escape sequence: "
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:48:57 UTC 2012
    - 389 bytes
    - Viewed (0)
  5. src/runtime/gcinfo_test.go

    		verifyGCInfo(t, "heap Ptr", runtime.Escape(new(Ptr)), trimDead(infoPtr))
    		verifyGCInfo(t, "heap PtrSlice", runtime.Escape(&make([]*byte, 10)[0]), trimDead(infoPtr10))
    		verifyGCInfo(t, "heap ScalarPtr", runtime.Escape(new(ScalarPtr)), trimDead(infoScalarPtr))
    		verifyGCInfo(t, "heap ScalarPtrSlice", runtime.Escape(&make([]ScalarPtr, 4)[0]), trimDead(infoScalarPtr4))
    		verifyGCInfo(t, "heap PtrScalar", runtime.Escape(new(PtrScalar)), trimDead(infoPtrScalar))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:58:08 UTC 2023
    - 6K bytes
    - Viewed (0)
  6. src/cmd/internal/objabi/path.go

    			// sequence.
    			return "", fmt.Errorf("malformed prefix %q: escape sequence must contain two hex digits", s)
    		}
    
    		b, err := strconv.ParseUint(s[i+1:i+3], 16, 8)
    		if err != nil {
    			// Not a valid escape sequence.
    			return "", fmt.Errorf("malformed prefix %q: escape sequence %q must contain two hex digits", s, s[i:i+3])
    		}
    
    		p = append(p, byte(b))
    		i += 3
    	}
    	return string(p), nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 13:56:25 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/escape/Escaper.java

     * individual {@code char} values, it is not safe to assume that {@code escape(s)} is equivalent to
     * {@code escape(s.substring(0, n)) + escape(s.substring(n))} for arbitrary {@code n}. This is
     * because of the possibility of splitting a surrogate pair. The only case in which it is safe to
     * escape strings and concatenate the results is if you can rule out this possibility, either by
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 01 16:02:17 UTC 2021
    - 4.6K bytes
    - Viewed (0)
  8. test/escape_param.go

    	p1.pairs[0] = p2.pairs[1]
    }
    
    func notSelfAssignment3(p1, p2 *PairOfPairs) { // ERROR "leaking param content: p2" "p1 does not escape"
    	p1.pairs[0].p1 = p2.pairs[1].p1
    }
    
    func boxedPairSelfAssign(box *BoxedPair) { // ERROR "box does not escape"
    	box.pair.p1 = box.pair.p2 // ERROR "ignoring self-assignment in box.pair.p1 = box.pair.p2"
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 26 23:50:32 UTC 2021
    - 8.9K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top