Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for copyTest (0.15 sec)

  1. src/text/template/parse/node.go

    	for _, n := range l.Nodes {
    		n.writeTo(sb)
    	}
    }
    
    func (l *ListNode) CopyList() *ListNode {
    	if l == nil {
    		return l
    	}
    	n := l.tr.newList(l.Pos)
    	for _, elem := range l.Nodes {
    		n.append(elem.Copy())
    	}
    	return n
    }
    
    func (l *ListNode) Copy() Node {
    	return l.CopyList()
    }
    
    // TextNode holds plain text.
    type TextNode struct {
    	NodeType
    	Pos
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  2. pkg/ctrlz/assets/static/js/clipboard-1.7.1.min.js

    em),this.selectedText=(0,i.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function t(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function t(){this.selectedText=(0,i.default)(this.target),this.copyText()}},{key:"copyText",value:function t(){var e=void 0;try{e=document.execComm...
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  3. src/main/webapp/js/clipboard.min.js

    Elem),this.selectedText=(0,c.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,c.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(...
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Sat May 28 04:16:16 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  4. src/compress/flate/inflate.go

    			f.err = CorruptInputError(f.roffset)
    			return
    		}
    
    		f.copyLen, f.copyDist = length, dist
    		goto copyHistory
    	}
    
    copyHistory:
    	// Perform a backwards copy according to RFC section 3.2.3.
    	{
    		cnt := f.dict.tryWriteCopy(f.copyDist, f.copyLen)
    		if cnt == 0 {
    			cnt = f.dict.writeCopy(f.copyDist, f.copyLen)
    		}
    		f.copyLen -= cnt
    
    		if f.dict.availWrite() == 0 || f.copyLen > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 23:20:03 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  5. src/syscall/js/js_test.go

    		err := recover()
    		if err == nil {
    			t.Errorf("expected panic")
    		}
    	}()
    	fn()
    }
    
    var copyTests = []struct {
    	srcLen  int
    	dstLen  int
    	copyLen int
    }{
    	{5, 3, 3},
    	{3, 5, 3},
    	{0, 0, 0},
    }
    
    func TestCopyBytesToGo(t *testing.T) {
    	for _, tt := range copyTests {
    		t.Run(fmt.Sprintf("%d-to-%d", tt.srcLen, tt.dstLen), func(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modcmd/vendor.go

    // to nudge people toward more agreement on the naming
    // and also trying to avoid false positives.
    var metaPrefixes = []string{
    	"AUTHORS",
    	"CONTRIBUTORS",
    	"COPYLEFT",
    	"COPYING",
    	"COPYRIGHT",
    	"LEGAL",
    	"LICENSE",
    	"NOTICE",
    	"PATENTS",
    }
    
    // matchMetadata reports whether info is a metadata file.
    func matchMetadata(dir string, info fs.DirEntry) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 14:19:59 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  7. src/text/template/parse/parse.go

    // Copy returns a copy of the [Tree]. Any parsing state is discarded.
    func (t *Tree) Copy() *Tree {
    	if t == nil {
    		return nil
    	}
    	return &Tree{
    		Name:      t.Name,
    		ParseName: t.ParseName,
    		Root:      t.Root.CopyList(),
    		text:      t.text,
    	}
    }
    
    // Parse returns a map from template name to [Tree], created by parsing the
    // templates described in the argument string. The top-level template will be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  8. src/html/template/escape.go

    		// with different top level templates, or clone if necessary.
    		dt := e.template(dname)
    		if dt == nil {
    			dt = template.New(dname)
    			dt.Tree = &parse.Tree{Name: dname, Root: t.Root.CopyList()}
    			e.derived[dname] = dt
    		}
    		t = dt
    	}
    	return e.computeOutCtx(c, t), dname
    }
    
    // computeOutCtx takes a template and its start context and computes the output
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 02 15:18:39 UTC 2023
    - 32.4K bytes
    - Viewed (0)
  9. LICENSE

     Everyone is permitted to copy and distribute verbatim copies
     of this license document, but changing it is not allowed.
    
                                Preamble
    
      The GNU Affero General Public License is a free, copyleft license for
    software and other kinds of works, specifically designed to ensure
    cooperation with the community in the case of network server software.
    
      The licenses for most software and other practical works are designed
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 33.7K bytes
    - Viewed (0)
Back to top