Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for prefix (0.21 sec)

  1. src/cmd/cgo/gcc.go

    	// exported so that they become global symbols
    	// that the C code can refer to.
    	prefix := "_C"
    	if *gccgo && n.IsVar() {
    		prefix = "C"
    	}
    	n.Mangle = prefix + n.Kind + "_" + n.Go
    }
    
    func (f *File) isMangledName(s string) bool {
    	prefix := "_C"
    	if strings.HasPrefix(s, prefix) {
    		t := s[len(prefix):]
    		for _, k := range nameKinds {
    			if strings.HasPrefix(t, k+"_") {
    				return true
    			}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  2. src/bufio/bufio_test.go

    	for i, e := range expect {
    		line, isPrefix, err := b.ReadLine()
    		if !bytes.Equal(line, e.line) {
    			t.Errorf("%q call %d, line == %q, want %q", input, i, line, e.line)
    			return
    		}
    		if isPrefix != e.isPrefix {
    			t.Errorf("%q call %d, isPrefix == %v, want %v", input, i, isPrefix, e.isPrefix)
    			return
    		}
    		if err != e.err {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  3. src/archive/zip/reader_test.go

    				Name:     "gophercolor16x16.png",
    				File:     "gophercolor16x16.png",
    				Modified: time.Date(2010, 9, 5, 15, 52, 58, 0, timeZone(+10*time.Hour)),
    				Mode:     0644,
    			},
    		},
    	},
    	{
    		Name:    "test-prefix.zip",
    		Comment: "This is a zipfile comment.",
    		File: []ZipTestFile{
    			{
    				Name:     "test.txt",
    				Content:  []byte("This is a test text file.\n"),
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
Back to top