Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for has_space (0.17 sec)

  1. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

      fun validateKey(parameters: Pair<FileSystem, Boolean>) {
        setUp(parameters.first, parameters.second)
        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> {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 75.8K bytes
    - Viewed (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.
    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)
  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()
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Mar 02 05:11:03 GMT 2024
    - 37.3K bytes
    - Viewed (0)
Back to top