- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 14 for EqualFold (0.05 seconds)
-
src/bytes/bytes.go
// for a k-rune slice. func ReplaceAll(s, old, new []byte) []byte { return Replace(s, old, new, -1) } // EqualFold reports whether s and t, interpreted as UTF-8 strings, // are equal under simple Unicode case-folding, which is a more general // form of case-insensitivity. func EqualFold(s, t []byte) bool { // ASCII fast path i := 0 for n := min(len(s), len(t)); i < n; i++ { sr := s[i] tr := t[i]
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Thu Mar 12 17:56:55 GMT 2026 - 36.3K bytes - Click Count (0) -
cmd/bucket-listobjects-handlers.go
// Max keys cannot be negative. if maxKeys < 0 { return ErrInvalidMaxKeys } if encodingType != "" { // AWS S3 spec only supports 'url' encoding type if !strings.EqualFold(encodingType, "url") { return ErrInvalidEncodingMethod } } if !IsValidObjectPrefix(prefix) { return ErrInvalidObjectName } if marker != "" && !HasPrefix(marker, prefix) {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 11.6K bytes - Click Count (0) -
internal/s3select/select.go
rc = newLimitedReadCloser(rsc, length) } s3Select.progressReader, err = newProgressReader(rc, s3Select.Input.CompressionType) if err != nil { rsc.Close() return err } if strings.EqualFold(s3Select.Input.JSONArgs.ContentType, "lines") { if simdjson.SupportedCPU() { s3Select.recordReader = simdj.NewReader(s3Select.progressReader, &s3Select.Input.JSONArgs) } else {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Feb 18 16:25:55 GMT 2025 - 21.2K bytes - Click Count (0) -
internal/s3select/sql/parser.go
// Boolean is a type for a parsed Boolean literal type Boolean bool // Capture interface used by participle func (b *Boolean) Capture(values []string) error { *b = Boolean(strings.EqualFold(values[0], "true")) return nil } // LiteralString is a type for parsed SQL string literals type LiteralString string // Capture interface used by participle
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 12.9K bytes - Click Count (0) -
cmd/postpolicyform.go
if _, ok := formValues[xhttp.AmzSignatureV2]; ok { delete(mustFindInPolicy, xhttp.AmzSignatureV2) for k := range mustFindInPolicy { // case-insensitivity for AWSAccessKeyId if strings.EqualFold(k, xhttp.AmzAccessKeyID) { delete(mustFindInPolicy, k) break } } } // Check mustFindInPolicy to see if any key is left, if so, it was not found in policy and we return an error.
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Thu Oct 23 15:10:12 GMT 2025 - 12.1K bytes - Click Count (0) -
callbacks/create.go
if v, ok := selectColumns[field.DBName]; (ok && v) || (!ok && !restricted) { if !field.PrimaryKey && (!field.HasDefaultValue || field.DefaultValueInterface != nil || strings.EqualFold(field.DefaultValue, "NULL")) && field.AutoCreateTime == 0 { if field.AutoUpdateTime > 0 { assignment := clause.Assignment{Column: clause.Column{Name: field.DBName}, Value: curTime}
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Tue Jul 29 11:06:13 GMT 2025 - 13K bytes - Click Count (0) -
migrator/migrator.go
alterColumn = true } } // check default value if !field.PrimaryKey { currentDefaultNotNull := field.HasDefaultValue && (field.DefaultValueInterface != nil || !strings.EqualFold(field.DefaultValue, "NULL")) dv, dvNotNull := columnType.DefaultValue() if dvNotNull && !currentDefaultNotNull { // default value -> null alterColumn = true } else if !dvNotNull && currentDefaultNotNull {Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:49:01 GMT 2026 - 29.8K bytes - Click Count (0) -
src/bytes/example_test.go
fmt.Println(bytes.Equal([]byte("Go"), []byte("Go"))) fmt.Println(bytes.Equal([]byte("Go"), []byte("C++"))) // Output: // true // false } func ExampleEqualFold() { fmt.Println(bytes.EqualFold([]byte("Go"), []byte("go"))) // Output: true } func ExampleFields() { fmt.Printf("Fields are: %q", bytes.Fields([]byte(" foo bar baz "))) // Output: Fields are: ["foo" "bar" "baz"] }
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Mon May 12 16:07:54 GMT 2025 - 16.5K bytes - Click Count (0) -
internal/hash/checksum.go
if trailing := h.Values(xhttp.AmzTrailer); len(trailing) > 0 { var res *Checksum for _, header := range trailing { var duplicates bool for _, t := range BaseChecksumTypes { if strings.EqualFold(t.Key(), header) { duplicates = res != nil res = NewChecksumWithType(t|ChecksumTrailing, "") } } if duplicates { return nil, ErrInvalidChecksum } } if res != nil {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 22 14:15:21 GMT 2025 - 18.3K bytes - Click Count (0) -
internal/bucket/object/lock/lock.go
return ok } // IsObjectLockGovernanceBypassSet returns true if object lock governance bypass header is set. func IsObjectLockGovernanceBypassSet(h http.Header) bool { return strings.EqualFold(h.Get(AmzObjectLockBypassRetGovernance), "true") } // IsObjectLockRequested returns true if legal hold or object lock retention headers are requested. func IsObjectLockRequested(h http.Header) bool {
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)