Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for esc (0.03 sec)

  1. pilot/pkg/serviceregistry/kube/controller/endpointslice.go

    	if event == model.EventDelete {
    		esc.deleteEndpointSlice(ep)
    	} else {
    		esc.updateEndpointSlice(ep)
    	}
    	hostnames := esc.c.hostNamesForNamespacedName(namespacedName)
    	// Trigger EDS push for all hostnames.
    	esc.pushEDS(hostnames, namespacedName.Namespace)
    
    	name := serviceNameForEndpointSlice(esLabels)
    	namespace := ep.GetNamespace()
    	svc := esc.c.services.Get(name, namespace)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  2. src/html/template/js_test.go

    		{"foo\xed\xa0\x80bar", "foo\xed\xa0\x80bar"},
    	}
    
    	for _, test := range tests {
    		esc := jsStrEscaper(test.x)
    		if esc != test.esc {
    			t.Errorf("%q: want %q got %q", test.x, test.esc, esc)
    		}
    	}
    }
    
    func TestJSRegexpEscaper(t *testing.T) {
    	tests := []struct {
    		x   any
    		esc string
    	}{
    		{"", `(?:)`},
    		{"foo", `foo`},
    		{"\u0000", `\u0000`},
    		{"\t", `\t`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 02:20:11 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/walk/closure.go

    	clos := ir.NewCompLitExpr(base.Pos, ir.OCOMPLIT, typ, nil)
    	clos.SetEsc(clo.Esc())
    	clos.List = append([]ir.Node{ir.NewUnaryExpr(base.Pos, ir.OCFUNC, clofn.Nname)}, closureArgs(clo)...)
    	for i, value := range clos.List {
    		clos.List[i] = ir.NewStructKeyExpr(base.Pos, typ.Field(i), value)
    	}
    
    	addr := typecheck.NodAddr(clos)
    	addr.SetEsc(clo.Esc())
    
    	// Force type conversion from *struct to the func type.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:56:08 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  4. src/text/tabwriter/tabwriter_test.go

    		8, 0, 1, '.', Debug,
    		"",
    		"",
    	},
    
    	{
    		"1b esc stripped",
    		8, 0, 1, '.', StripEscape,
    		"\xff\xff",
    		"",
    	},
    
    	{
    		"1b esc",
    		8, 0, 1, '.', 0,
    		"\xff\xff",
    		"\xff\xff",
    	},
    
    	{
    		"1c esc stripped",
    		8, 0, 1, '.', StripEscape,
    		"\xff\t\xff",
    		"\t",
    	},
    
    	{
    		"1c esc",
    		8, 0, 1, '.', 0,
    		"\xff\t\xff",
    		"\xff\t\xff",
    	},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 16:46:34 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  5. src/encoding/xml/xml.go

    	var esc []byte
    	last := 0
    	for i := 0; i < len(s); {
    		r, width := utf8.DecodeRune(s[i:])
    		i += width
    		switch r {
    		case '"':
    			esc = escQuot
    		case '\'':
    			esc = escApos
    		case '&':
    			esc = escAmp
    		case '<':
    			esc = escLT
    		case '>':
    			esc = escGT
    		case '\t':
    			esc = escTab
    		case '\n':
    			if !escapeNewline {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 47.3K bytes
    - Viewed (0)
  6. src/html/template/escape.go

    		lastCmd := p.Cmds[pipelineLen-1]
    		if idNode, ok := lastCmd.Args[0].(*parse.IdentifierNode); ok {
    			if esc := idNode.Ident; predefinedEscapers[esc] {
    				// Pipeline ends with a predefined escaper.
    				if len(p.Cmds) == 1 && len(lastCmd.Args) > 1 {
    					// Special case: pipeline is of the form {{ esc arg1 arg2 ... argN }},
    					// where esc is the predefined escaper, and arg1...argN are its arguments.
    					// Convert this into the equivalent form
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 02 15:18:39 UTC 2023
    - 32.4K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/walk/convert.go

    		xe.SetBounded(true)
    		value = xe
    	case n.Op() == ir.ONAME && n.(*ir.Name).Class == ir.PEXTERN && n.(*ir.Name).Readonly():
    		// n is a readonly global; use it directly.
    		value = n
    	case conv.Esc() == ir.EscNone && fromType.Size() <= 1024:
    		// n does not escape. Use a stack temporary initialized to n.
    		value = typecheck.TempAt(base.Pos, ir.CurFunc, fromType)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 17:28:22 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/walk/stmt.go

    			// 8 defers in the function, since we use a single
    			// byte to record active defers.
    			// Also don't allow if we need to use deferprocat.
    			ir.CurFunc.SetOpenCodedDeferDisallowed(true)
    		}
    		if n.Esc() != ir.EscNever {
    			// If n.Esc is not EscNever, then this defer occurs in a loop,
    			// so open-coded defers cannot be used in this function.
    			ir.CurFunc.SetOpenCodedDeferDisallowed(true)
    		}
    		fallthrough
    	case ir.OGO:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 15:42:30 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/walk/complit.go

    		}
    		a = initStackTemp(init, x, vstat)
    	} else if n.Esc() == ir.EscNone {
    		a = initStackTemp(init, typecheck.TempAt(base.Pos, ir.CurFunc, t), vstat)
    	} else {
    		a = ir.NewUnaryExpr(base.Pos, ir.ONEW, ir.TypeNode(t))
    	}
    	appendWalkStmt(init, ir.NewAssignStmt(base.Pos, vauto, a))
    
    	if vstat != nil && n.Prealloc == nil && n.Esc() != ir.EscNone {
    		// If we allocated on the heap with ONEW, copy the static to the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:03:54 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/walk/builtin.go

    // walkMakeMap walks an OMAKEMAP node.
    func walkMakeMap(n *ir.MakeExpr, init *ir.Nodes) ir.Node {
    	t := n.Type()
    	hmapType := reflectdata.MapType()
    	hint := n.Len
    
    	// var h *hmap
    	var h ir.Node
    	if n.Esc() == ir.EscNone {
    		// Allocate hmap on stack.
    
    		// var hv hmap
    		// h = &hv
    		h = stackTempAddr(init, hmapType)
    
    		// Allocate one bucket pointed to by hmap.buckets on stack if hint
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
Back to top