Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for splitPkg (0.12 sec)

  1. src/cmd/compile/internal/ir/func_test.go

    		},
    	}
    
    	for _, tc := range tests {
    		t.Run(tc.in, func(t *testing.T) {
    			pkg, sym := splitPkg(tc.in)
    			if pkg != tc.pkg {
    				t.Errorf("splitPkg(%q) got pkg %q want %q", tc.in, pkg, tc.pkg)
    			}
    			if sym != tc.sym {
    				t.Errorf("splitPkg(%q) got sym %q want %q", tc.in, sym, tc.sym)
    			}
    		})
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 13:56:32 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ir/func.go

    			'a' <= r && r <= 'z'
    	}
    	return false
    }
    
    func escapedImportPathOK(r rune) bool {
    	return modPathOK(r) || r == '+' || r == '/' || r == '%'
    }
    
    // splitPkg splits the full linker symbol name into package and local symbol
    // name.
    func splitPkg(name string) (pkgpath, sym string) {
    	// package-sym split is at first dot after last the / that comes before
    	// any characters illegal in a package path.
    
    	lastSlashIdx := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
Back to top