Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for suffix (0.17 sec)

  1. src/cmd/asm/internal/asm/line_test.go

    		// Test AVX512 suffixes.
    		{"VADDPD.A X0, X1, X2", `unknown suffix "A"`},
    		{"VADDPD.A.A X0, X1, X2", `unknown suffix "A"; duplicate suffix "A"`},
    		{"VADDPD.A.A.A X0, X1, X2", `unknown suffix "A"; duplicate suffix "A"`},
    		{"VADDPD.A.B X0, X1, X2", `unknown suffix "A"; unknown suffix "B"`},
    		{"VADDPD.Z.A X0, X1, X2", `Z suffix should be the last; unknown suffix "A"`},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  2. cmd/iam-etcd-store_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"testing"
    )
    
    func TestExtractPrefixAndSuffix(t *testing.T) {
    	specs := []struct {
    		path, prefix, suffix string
    		expected             string
    	}{
    		{"config/iam/groups/foo.json", "config/iam/groups/", ".json", "foo"},
    		{"config/iam/groups/./foo.json", "config/iam/groups/", ".json", "foo"},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 1.5K bytes
    - Viewed (0)
  3. internal/event/config.go

    }
    
    // Pattern - returns pattern using prefix and suffix values.
    func (ruleList FilterRuleList) Pattern() string {
    	var prefix string
    	var suffix string
    
    	for _, rule := range ruleList.Rules {
    		switch rule.Name {
    		case "prefix":
    			prefix = rule.Value
    		case "suffix":
    			suffix = rule.Value
    		}
    	}
    
    	return NewPattern(prefix, suffix)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 16 17:28:29 GMT 2021
    - 8.4K bytes
    - Viewed (0)
  4. internal/event/rules.go

    )
    
    // NewPattern - create new pattern for prefix/suffix.
    func NewPattern(prefix, suffix string) (pattern string) {
    	if prefix != "" {
    		if !strings.HasSuffix(prefix, "*") {
    			prefix += "*"
    		}
    
    		pattern = prefix
    	}
    
    	if suffix != "" {
    		if !strings.HasPrefix(suffix, "*") {
    			suffix = "*" + suffix
    		}
    
    		pattern += suffix
    	}
    
    	pattern = strings.ReplaceAll(pattern, "**", "*")
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  5. cmd/iam-etcd-store.go

    // Extract path string by stripping off the `prefix` value and the suffix,
    // value, usually in the following form.
    //
    //	s := "config/iam/users/foo/config.json"
    //	prefix := "config/iam/users/"
    //	suffix := "config.json"
    //	result is foo
    func extractPathPrefixAndSuffix(s string, prefix string, suffix string) string {
    	return pathClean(strings.TrimSuffix(strings.TrimPrefix(s, prefix), suffix))
    }
    
    // IAMEtcdStore implements IAMStorageAPI
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  6. cmd/object-api-utils.go

    	return strings.HasPrefix(s, prefix)
    }
    
    // HasSuffix - Suffix matcher string matches suffix in a platform specific way.
    // For example on windows since its case insensitive we are supposed
    // to do case insensitive checks.
    func HasSuffix(s string, suffix string) bool {
    	if runtime.GOOS == globalWindowsOSName {
    		return strings.HasSuffix(strings.ToLower(s), strings.ToLower(suffix))
    	}
    	return strings.HasSuffix(s, suffix)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
  7. src/bytes/bytes.go

    // CutSuffix returns s without the provided ending suffix byte slice
    // and reports whether it found the suffix.
    // If s doesn't end with suffix, CutSuffix returns s, false.
    // If suffix is the empty byte slice, CutSuffix returns s, true.
    //
    // CutSuffix returns slices of the original slice s, not copies.
    func CutSuffix(s, suffix []byte) (before []byte, found bool) {
    	if !HasSuffix(s, suffix) {
    		return s, false
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  8. cmd/listen-notification-handlers.go

    			writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    			return
    		}
    
    		suffix = values[peerRESTListenSuffix][0]
    	}
    
    	pattern := event.NewPattern(prefix, suffix)
    
    	var eventNames []event.Name
    	var mask pubsub.Mask
    	for _, s := range values[peerRESTListenEvents] {
    		eventName, err := event.ParseName(s)
    		if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6K bytes
    - Viewed (0)
  9. src/archive/tar/writer.go

    	default:
    		return err // Non-fatal error
    	}
    }
    
    func (tw *Writer) writeUSTARHeader(hdr *Header) error {
    	// Check if we can use USTAR prefix/suffix splitting.
    	var namePrefix string
    	if prefix, suffix, ok := splitUSTARPath(hdr.Name); ok {
    		namePrefix, hdr.Name = prefix, suffix
    	}
    
    	// Pack the main header.
    	var f formatter
    	blk := tw.templateV7Plus(hdr, f.formatString, f.formatOctal)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  10. src/archive/zip/zip_test.go

    		if !generatesZip64(t, gen(0xffff)) {
    			t.Error("expected zip64")
    		}
    	})
    }
    
    // suffixSaver is an io.Writer & io.ReaderAt that remembers the last 0
    // to 'keep' bytes of data written to it. Call Suffix to get the
    // suffix bytes.
    type suffixSaver struct {
    	keep  int
    	buf   []byte
    	start int
    	size  int64
    }
    
    func (ss *suffixSaver) Size() int64 { return ss.size }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
Back to top