Search Options

Results per page
Sort
Preferred Languages
Advance

Results 351 - 360 of 1,333 for CASE (0.02 sec)

  1. cmd/api-utils.go

    		copy(t, s)
    		for i := 0; i < len(s); i++ {
    			if s[i] == ' ' {
    				t[i] = '+'
    			}
    		}
    		return string(t)
    	}
    
    	j := 0
    	for i := 0; i < len(s); i++ {
    		switch c := s[i]; {
    		case c == ' ':
    			t[j] = '+'
    			j++
    		case shouldEscape(c):
    			t[j] = '%'
    			t[j+1] = "0123456789ABCDEF"[c>>4]
    			t[j+2] = "0123456789ABCDEF"[c&15]
    			j += 3
    		default:
    			t[j] = s[i]
    			j++
    		}
    	}
    	return string(t)
    }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Mar 04 18:05:56 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. callbacks/callmethod.go

    	tx := db.Session(&gorm.Session{NewDB: true})
    	if called := fc(db.Statement.ReflectValue.Interface(), tx); !called {
    		switch db.Statement.ReflectValue.Kind() {
    		case reflect.Slice, reflect.Array:
    			db.Statement.CurDestIndex = 0
    			for i := 0; i < db.Statement.ReflectValue.Len(); i++ {
    				if value := reflect.Indirect(db.Statement.ReflectValue.Index(i)); value.CanAddr() {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Feb 18 01:20:29 UTC 2023
    - 846 bytes
    - Viewed (0)
  3. internal/bucket/object/lock/lock_test.go

    		//nolint:gocritic
    		if tt.expectedErr == nil {
    			if err != nil {
    				t.Fatalf("Case %d error: expected = <nil>, got = %v", i, err)
    			}
    		} else if err == nil {
    			t.Fatalf("Case %d error: expected = %v, got = <nil>", i, tt.expectedErr)
    		} else if tt.expectedErr.Error() != err.Error() {
    			t.Fatalf("Case %d error: expected = %v, got = %v", i, tt.expectedErr, err)
    		}
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jun 29 01:20:27 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  4. chainable_api.go

    	tx = db.getInstance()
    
    	switch v := query.(type) {
    	case []string:
    		tx.Statement.Selects = v
    
    		for _, arg := range args {
    			switch arg := arg.(type) {
    			case string:
    				tx.Statement.Selects = append(tx.Statement.Selects, arg)
    			case []string:
    				tx.Statement.Selects = append(tx.Statement.Selects, arg...)
    			default:
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  5. internal/bucket/object/lock/lock.go

    )
    
    // Valid - returns if retention mode is valid
    func (r RetMode) Valid() bool {
    	switch r {
    	case RetGovernance, RetCompliance:
    		return true
    	}
    	return false
    }
    
    func parseRetMode(modeStr string) (mode RetMode) {
    	switch strings.ToUpper(modeStr) {
    	case "GOVERNANCE":
    		mode = RetGovernance
    	case "COMPLIANCE":
    		mode = RetCompliance
    	}
    	return mode
    }
    
    // LegalHoldStatus - object legal hold status.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jun 29 01:20:27 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/ProjectDependenciesResolver.java

         * @return The transitive dependencies of the specified project that match the requested scopes, never {@code null}.
         * @throws ArtifactResolutionException in case of resolution issue
         * @throws ArtifactNotFoundException if an artifact is not found
         */
        Set<Artifact> resolve(MavenProject project, Collection<String> scopesToResolve, MavenSession session)
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/endtoend_test.go

    		switch len(parts) {
    		default:
    			t.Errorf("%s:%d: unable to understand comments: %s", input, lineno, line)
    		case 1:
    			// no comment
    		case 2:
    			// might be printed form or hex
    			note := strings.TrimSpace(parts[1])
    			if isHexes(note) {
    				hexes = note
    			} else {
    				printed = note
    			}
    		case 3:
    			// printed form, then hex
    			printed = strings.TrimSpace(parts[1])
    			hexes = strings.TrimSpace(parts[2])
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Dec 07 18:42:59 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  8. internal/kms/secret-key.go

    	var aead cipher.AEAD
    	switch keyType {
    	case kms.AES256:
    		mac := hmac.New(sha256.New, s.key)
    		mac.Write(iv)
    		sealingKey := mac.Sum(nil)
    
    		block, err := aes.NewCipher(sealingKey)
    		if err != nil {
    			return nil, err
    		}
    		aead, err = cipher.NewGCM(block)
    		if err != nil {
    			return nil, err
    		}
    	case kms.ChaCha20:
    		sealingKey, err := chacha20.HChaCha20(s.key, iv)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. compat/maven-embedder/src/main/java/org/apache/maven/cli/logging/impl/Log4j2Configuration.java

        @Override
        public void setRootLoggerLevel(Level level) {
            String value;
            switch (level) {
                case DEBUG:
                    value = "debug";
                    break;
    
                case INFO:
                    value = "info";
                    break;
    
                default:
                    value = "error";
                    break;
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponse.java

            AllocInfo inf;
            switch ( this.informationLevel ) {
            case FileSystemInformation.SMB_INFO_ALLOCATION:
                inf = new SmbInfoAllocation();
                break;
            case FileSystemInformation.FS_SIZE_INFO:
                inf = new FileFsSizeInformation();
                break;
            case FileSystemInformation.FS_FULL_SIZE_INFO:
                inf = new FileFsFullSizeInformation();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 4.2K bytes
    - Viewed (0)
Back to top