Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TrimPrefix (0.18 sec)

  1. src/bytes/bytes_test.go

    	{"TrimRight", []byte{'a'}, "ab", []byte{}},
    	{"TrimRight", []byte{'a', 'b'}, "ab", []byte{}},
    	{"TrimRight", []byte("☺"), "☺", []byte{}},
    	{"TrimPrefix", nil, "", nil},
    	{"TrimPrefix", []byte{}, "", []byte{}},
    	{"TrimPrefix", []byte{'a'}, "a", []byte{}},
    	{"TrimPrefix", []byte("☺"), "☺", []byte{}},
    	{"TrimSuffix", nil, "", nil},
    	{"TrimSuffix", []byte{}, "", []byte{}},
    	{"TrimSuffix", []byte{'a'}, "a", []byte{}},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  2. src/cmd/cgo/gcc.go

    	var goname string
    	switch fun := call.Call.Fun.(type) {
    	case *ast.SelectorExpr:
    		goname = fun.Sel.Name
    	case *ast.Ident:
    		goname = strings.TrimPrefix(fun.Name, "_C2func_")
    		goname = strings.TrimPrefix(goname, "_Cfunc_")
    	}
    	if goname == "" || goname == "malloc" {
    		return "", false
    	}
    	name := f.Name[goname]
    	if name == nil || name.Kind != "func" {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
Back to top