Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,907 for IsSwitch (0.12 sec)

  1. src/net/udpsock_posix.go

    // license that can be found in the LICENSE file.
    
    //go:build unix || js || wasip1 || windows
    
    package net
    
    import (
    	"context"
    	"net/netip"
    	"syscall"
    )
    
    func sockaddrToUDP(sa syscall.Sockaddr) Addr {
    	switch sa := sa.(type) {
    	case *syscall.SockaddrInet4:
    		return &UDPAddr{IP: sa.Addr[0:], Port: sa.Port}
    	case *syscall.SockaddrInet6:
    		return &UDPAddr{IP: sa.Addr[0:], Port: sa.Port, Zone: zoneCache.name(int(sa.ZoneId))}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:54:32 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. src/regexp/syntax/prog.go

    // at the end of the text.
    func EmptyOpContext(r1, r2 rune) EmptyOp {
    	var op EmptyOp = EmptyNoWordBoundary
    	var boundary byte
    	switch {
    	case IsWordChar(r1):
    		boundary = 1
    	case r1 == '\n':
    		op |= EmptyBeginLine
    	case r1 < 0:
    		op |= EmptyBeginText | EmptyBeginLine
    	}
    	switch {
    	case IsWordChar(r2):
    		boundary ^= 1
    	case r2 == '\n':
    		op |= EmptyEndLine
    	case r2 < 0:
    		op |= EmptyEndText | EmptyEndLine
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:50:01 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unsafeptr/unsafeptr.go

    	nodeFilter := []ast.Node{
    		(*ast.CallExpr)(nil),
    		(*ast.StarExpr)(nil),
    		(*ast.UnaryExpr)(nil),
    	}
    	inspect.Preorder(nodeFilter, func(n ast.Node) {
    		switch x := n.(type) {
    		case *ast.CallExpr:
    			if len(x.Args) == 1 &&
    				hasBasicType(pass.TypesInfo, x.Fun, types.UnsafePointer) &&
    				hasBasicType(pass.TypesInfo, x.Args[0], types.Uintptr) &&
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. src/html/template/transition.go

    		c.jsCtx = nextJSCtx(s, c.jsCtx)
    		return c, len(s)
    	}
    	c.jsCtx = nextJSCtx(s[:i], c.jsCtx)
    	switch s[i] {
    	case '"':
    		c.state, c.jsCtx = stateJSDqStr, jsCtxRegexp
    	case '\'':
    		c.state, c.jsCtx = stateJSSqStr, jsCtxRegexp
    	case '`':
    		c.state, c.jsCtx = stateJSTmplLit, jsCtxRegexp
    	case '/':
    		switch {
    		case i+1 < len(s) && s[i+1] == '/':
    			c.state, i = stateJSLineCmt, i+1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 19:54:31 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  5. src/runtime/debugcall.go

    	}
    	if sp := getcallersp(); !(getg().stack.lo < sp && sp <= getg().stack.hi) {
    		// Fast syscalls (nanotime) and racecall switch to the
    		// g0 stack without switching g. We can't safely make
    		// a call in this state. (We can't even safely
    		// systemstack.)
    		return debugCallSystemStack
    	}
    
    	// Switch to the system stack to avoid overflowing the user
    	// stack.
    	var ret string
    	systemstack(func() {
    		f := findfunc(pc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 20:50:21 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. src/text/template/funcs.go

    			switch {
    			case k1 == intKind && k2 == uintKind:
    				truth = arg1.Int() >= 0 && uint64(arg1.Int()) == arg.Uint()
    			case k1 == uintKind && k2 == intKind:
    				truth = arg.Int() >= 0 && arg1.Uint() == uint64(arg.Int())
    			default:
    				if arg1.IsValid() && arg.IsValid() {
    					return false, errBadComparison
    				}
    			}
    		} else {
    			switch k1 {
    			case boolKind:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  7. src/strconv/ftoa.go

    	}
    
    	neg := bits>>(flt.expbits+flt.mantbits) != 0
    	exp := int(bits>>flt.mantbits) & (1<<flt.expbits - 1)
    	mant := bits & (uint64(1)<<flt.mantbits - 1)
    
    	switch exp {
    	case 1<<flt.expbits - 1:
    		// Inf, NaN
    		var s string
    		switch {
    		case mant != 0:
    			s = "NaN"
    		case neg:
    			s = "-Inf"
    		default:
    			s = "+Inf"
    		}
    		return append(dst, s...)
    
    	case 0:
    		// denormalized
    		exp++
    
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/typecheck/typecheck.go

    	case ir.OSELECT:
    		tcSelect(n.(*ir.SelectStmt))
    		return n
    
    	case ir.OSWITCH:
    		tcSwitch(n.(*ir.SwitchStmt))
    		return n
    
    	case ir.ORANGE:
    		tcRange(n.(*ir.RangeStmt))
    		return n
    
    	case ir.OTYPESW:
    		n := n.(*ir.TypeSwitchGuard)
    		base.Fatalf("use of .(type) outside type switch")
    		return n
    
    	case ir.ODCLFUNC:
    		tcFunc(n.(*ir.Func))
    		return n
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  9. src/internal/filepathlite/path_windows.go

    		return true
    	}
    	return false
    }
    
    func isReservedBaseName(name string) bool {
    	if len(name) == 3 {
    		switch string([]byte{toUpper(name[0]), toUpper(name[1]), toUpper(name[2])}) {
    		case "CON", "PRN", "AUX", "NUL":
    			return true
    		}
    	}
    	if len(name) >= 4 {
    		switch string([]byte{toUpper(name[0]), toUpper(name[1]), toUpper(name[2])}) {
    		case "COM", "LPT":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  10. schema/field.go

    		field.GORMDataType = field.DataType
    	}
    
    	if val, ok := field.TagSettings["TYPE"]; ok {
    		switch DataType(strings.ToLower(val)) {
    		case Bool, Int, Uint, Float, String, Time, Bytes:
    			field.DataType = DataType(strings.ToLower(val))
    		default:
    			field.DataType = DataType(val)
    		}
    	}
    
    	if field.Size == 0 {
    		switch reflect.Indirect(fieldValue).Kind() {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 32K bytes
    - Viewed (0)
Back to top