Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 947 for asSlice (0.19 sec)

  1. src/fmt/fmt_test.go

    }
    
    func TestSlicePrinter(t *testing.T) {
    	slice := []int{}
    	s := Sprint(slice)
    	if s != "[]" {
    		t.Errorf("empty slice printed as %q not %q", s, "[]")
    	}
    	slice = []int{1, 2, 3}
    	s = Sprint(slice)
    	if s != "[1 2 3]" {
    		t.Errorf("slice: got %q expected %q", s, "[1 2 3]")
    	}
    	s = Sprint(&slice)
    	if s != "&[1 2 3]" {
    		t.Errorf("&slice: got %q expected %q", s, "&[1 2 3]")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
  2. src/main/webapp/js/admin/jquery-3.6.3.min.js

    ++)if(b.relative[e[n].type])break;return Ce(1<s&&we(c),1<s&&xe(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(B,"$1"),t,s<n&&Se(e.slice(s,n)),n<r&&Se(e=e.slice(n)),n<r&&xe(e))}c.push(t)}return we(c)}return me.prototype=b.filters=b.pseudos,b.setFilters=new me,h=se.tokenize=function(e,t){var n,r,i,o,a,s,u,l=x[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=_.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=z.exec(a))&&(n=r.shift(),...
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Fri Feb 17 12:13:41 UTC 2023
    - 87.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/debug_lines_test.go

    	"reflect"
    	"regexp"
    	"runtime"
    	"sort"
    	"strconv"
    	"strings"
    	"testing"
    )
    
    // Matches lines in genssa output that are marked "isstmt", and the parenthesized plus-prefixed line number is a submatch
    var asmLine *regexp.Regexp = regexp.MustCompile(`^\s[vb]\d+\s+\d+\s\(\+(\d+)\)`)
    
    // this matches e.g.                            `   v123456789   000007   (+9876654310) MOVUPS	X15, ""..autotmp_2-32(SP)`
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:24:52 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  4. src/main/webapp/js/jquery-3.6.3.min.js

    ++)if(b.relative[e[n].type])break;return Ce(1<s&&we(c),1<s&&xe(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(B,"$1"),t,s<n&&Se(e.slice(s,n)),n<r&&Se(e=e.slice(n)),n<r&&xe(e))}c.push(t)}return we(c)}return me.prototype=b.filters=b.pseudos,b.setFilters=new me,h=se.tokenize=function(e,t){var n,r,i,o,a,s,u,l=x[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=_.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=z.exec(a))&&(n=r.shift(),...
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Fri Feb 17 12:13:41 UTC 2023
    - 87.8K bytes
    - Viewed (0)
  5. src/cmd/go/internal/cache/hash_test.go

    package cache
    
    import (
    	"fmt"
    	"os"
    	"testing"
    )
    
    func TestHash(t *testing.T) {
    	oldSalt := hashSalt
    	hashSalt = nil
    	defer func() {
    		hashSalt = oldSalt
    	}()
    
    	h := NewHash("alice")
    	h.Write([]byte("hello world"))
    	sum := fmt.Sprintf("%x", h.Sum())
    	want := "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9"
    	if sum != want {
    		t.Errorf("hash(hello world) = %v, want %v", sum, want)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 09 19:12:23 UTC 2020
    - 1.1K bytes
    - Viewed (0)
  6. src/go/doc/testdata/blank.go

    type T int
    
    // T constants counting from a blank constant.
    const (
    	_ T = iota
    	T1
    	T2
    )
    
    // T constants counting from unexported constants.
    const (
    	tweedledee T = iota
    	tweedledum
    	C1
    	C2
    	alice
    	C3
    	redQueen int = iota
    	C4
    )
    
    // Constants with a single type that is not propagated.
    const (
    	zero     os.FileMode = 0
    	Default              = 0644
    	Useless              = 0312
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 18:01:14 UTC 2017
    - 1.1K bytes
    - Viewed (0)
  7. src/reflect/value.go

    		panic(&ValueError{"reflect.Value.Slice", v.kind()})
    
    	case Array:
    		if v.flag&flagAddr == 0 {
    			panic("reflect.Value.Slice: slice of unaddressable array")
    		}
    		tt := (*arrayType)(unsafe.Pointer(v.typ()))
    		cap = int(tt.Len)
    		typ = (*sliceType)(unsafe.Pointer(tt.Slice))
    		base = v.ptr
    
    	case Slice:
    		typ = (*sliceType)(unsafe.Pointer(v.typ()))
    		s := (*unsafeheader.Slice)(v.ptr)
    		base = s.Data
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  8. src/net/rawconn.go

    //
    // Other packages in std that also import [internal/poll] (such as os)
    // can use a type assertion to access this extension method so that
    // they can pass the *poll.FD to functions like poll.Splice.
    //
    // PollFD is not intended for use outside the standard library.
    func (c *rawConn) PollFD() *poll.FD {
    	if !c.ok() {
    		return nil
    	}
    	return &c.fd.pfd
    }
    
    func newRawConn(fd *netFD) *rawConn {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tf_executor_to_functional.cc

                    "expected tf_executor.island";
    
        // Move inner ops in island to before the outer graph.
        auto& island_body = island_op.GetBody().getOperations();
        parent_block->getOperations().splice(graph_position, island_body,
                                             island_body.begin(),
                                             std::prev(island_body.end()));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 11 20:52:36 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/typecheck/typecheck.go

    	types.TUNSAFEPTR:  "unsafe.Pointer",
    	types.TSTRUCT:     "struct",
    	types.TINTER:      "interface",
    	types.TCHAN:       "chan",
    	types.TMAP:        "map",
    	types.TARRAY:      "array",
    	types.TSLICE:      "slice",
    	types.TFUNC:       "func",
    	types.TNIL:        "nil",
    	types.TIDEAL:      "untyped number",
    }
    
    func typekind(t *types.Type) string {
    	if t.IsUntyped() {
    		return fmt.Sprintf("%v", t)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
Back to top