- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 2,996 for switch (0.78 seconds)
-
android/guava-tests/test/com/google/common/collect/SortedListsTest.java
void assertModelAgrees( List<Integer> list, Integer key, int answer, KeyPresentBehavior presentBehavior, KeyAbsentBehavior absentBehavior) { switch (presentBehavior) { case FIRST_PRESENT: if (list.contains(key)) { assertEquals(list.indexOf(key), answer); return; } break; case LAST_PRESENT:
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 4K bytes - Click Count (0) -
internal/logger/target/testlogger/testlogger.go
tb := t.current.Load() var logf func(format string, args ...any) if tb != nil { tbb := *tb tbb.Helper() switch t.action.Load() { case errorMessage: logf = tbb.Errorf case fatalMessage: logf = tbb.Fatalf default: logf = tbb.Logf } } else { switch t.action.Load() { case errorMessage: logf = func(format string, args ...any) {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 4K bytes - Click Count (0) -
callbacks/create.go
if !insertOk { if !supportReturning { db.AddError(err) } return } // append @id column with value for auto-increment primary key // the @id value is correct, when: 1. without setting auto-increment primary key, 2. database AutoIncrementIncrement = 1 switch values := db.Statement.Dest.(type) { case map[string]interface{}: values[pkFieldName] = insertID case *map[string]interface{}:Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Tue Jul 29 11:06:13 GMT 2025 - 13K bytes - Click Count (0) -
cmd/data-usage-cache_gen.go
if err != nil { err = msgp.WrapError(err) return } for zb0001 > 0 { zb0001-- field, err = dc.ReadMapKeyPtr() if err != nil { err = msgp.WrapError(err) return } switch msgp.UnsafeString(field) { case "ts": var zb0002 uint32 zb0002, err = dc.ReadMapHeader() if err != nil { err = msgp.WrapError(err, "Tiers") return } if z.Tiers == nil {Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 85.5K bytes - Click Count (0) -
src/cmd/asm/internal/asm/asm.go
return } p.dataAddr[name] = nameAddr.Offset + int64(sz) switch valueAddr.Type { case obj.TYPE_CONST: switch sz { case 1, 2, 4, 8: nameAddr.Sym.WriteInt(p.ctxt, nameAddr.Offset, sz, valueAddr.Offset) default: p.errorf("bad int size for DATA argument: %d", sz) } case obj.TYPE_FCONST: switch sz { case 4:
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Fri Mar 20 17:02:17 GMT 2026 - 27.5K bytes - Click Count (0) -
internal/bucket/object/lock/lock.go
RetCompliance RetMode = "COMPLIANCE" ) // 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 }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 17.9K bytes - Click Count (0) -
android/guava/src/com/google/common/math/IntMath.java
* deal with the cases where rounding towards 0 is wrong, which typically depends on the sign of * p / q. * * signum is 1 if p and q are both nonnegative or both negative, and -1 otherwise. */ int signum = 1 | ((p ^ q) >> (Integer.SIZE - 1)); boolean increment; switch (mode) { case UNNECESSARY:Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 26.1K bytes - Click Count (0) -
logger/sql.go
func isNumeric(k reflect.Kind) bool { switch k { case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: return true case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64: return true case reflect.Float32, reflect.Float64: return true default: return false } }
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Thu Mar 21 08:00:02 GMT 2024 - 5K bytes - Click Count (0) -
cmd/site-replication-utils.go
} // update overall site resync state func (sm *siteResyncMetrics) updateState(s SiteResyncStatus) error { if !globalSiteReplicationSys.isEnabled() { return nil } sm.Lock() defer sm.Unlock() switch s.Status { case ResyncStarted: sm.peerResyncMap[s.DeplID] = resyncState{resyncID: s.ResyncID, LastSaved: time.Time{}} sm.resyncStatus[s.ResyncID] = s case ResyncCompleted, ResyncCanceled, ResyncFailed:
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 8.8K bytes - Click Count (0) -
cmd/os_windows.go
} return err } name := syscall.UTF16ToString(data.FileName[0:]) if name == "" || name == "." || name == ".." { // Useless names continue } var typ os.FileMode // regular file switch { case data.FileAttributes&syscall.FILE_ATTRIBUTE_REPARSE_POINT != 0: // Reparse point is a symlink fi, err := os.Stat(pathJoin(dirPath, name)) if err != nil { // It got deleted in the meantime, not found
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Feb 18 16:25:55 GMT 2025 - 5K bytes - Click Count (0)