Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for has_space (0.05 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt

        val snapshot = cache["k1"]
        assertThat(snapshot).isNull()
      }
    
      @Test
      fun validateKey() {
        var key = ""
        assertFailsWith<IllegalArgumentException> {
          key = "has_space "
          cache.edit(key)
        }.also { expected ->
          assertThat(expected.message).isEqualTo("keys must match regex [a-z0-9_-]{1,120}: \"$key\"")
        }
        assertFailsWith<IllegalArgumentException> {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Nov 01 12:18:11 GMT 2025
    - 59.4K bytes
    - Click Count (0)
  2. src/bytes/bytes.go

    	// This is an exact count if s is ASCII, otherwise it is an approximation.
    	n := 0
    	wasSpace := 1
    	// setBits is used to track which bits are set in the bytes of s.
    	setBits := uint8(0)
    	for i := 0; i < len(s); i++ {
    		r := s[i]
    		setBits |= r
    		isSpace := int(asciiSpace[r])
    		n += wasSpace & ^isSpace
    		wasSpace = isSpace
    	}
    
    	if setBits >= utf8.RuneSelf {
    		// Some runes in the input slice are not ASCII.
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Sep 16 16:42:15 GMT 2025
    - 35.5K bytes
    - Click Count (0)
  3. internal/config/config.go

    	Value string `json:"value"`
    
    	HiddenIfEmpty bool `json:"-"`
    }
    
    func (kv KV) String() string {
    	var s strings.Builder
    	s.WriteString(kv.Key)
    	s.WriteString(KvSeparator)
    	spc := madmin.HasSpace(kv.Value)
    	if spc {
    		s.WriteString(KvDoubleQuote)
    	}
    	s.WriteString(kv.Value)
    	if spc {
    		s.WriteString(KvDoubleQuote)
    	}
    	return s.String()
    }
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 37.7K bytes
    - Click Count (0)
Back to Top