Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 193 for IsSpace (0.05 sec)

  1. src/bytes/iter.go

    				isSpace = unicode.IsSpace(r)
    			}
    			if isSpace {
    				if start >= 0 {
    					if !yield(s[start:i:i]) {
    						return
    					}
    					start = -1
    				}
    			} else if start < 0 {
    				start = i
    			}
    			i += size
    		}
    		if start >= 0 {
    			yield(s[start:len(s):len(s)])
    		}
    	}
    }
    
    // FieldsFuncSeq returns an iterator over subslices of s split around runs of
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Sep 03 14:04:47 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  2. src/bufio/scan.go

    	}
    	// Request more data.
    	return 0, nil, nil
    }
    
    // isSpace reports whether the character is a Unicode white space character.
    // We avoid dependency on the unicode package, but check validity of the implementation
    // in the tests.
    func isSpace(r rune) bool {
    	if r <= '\u00FF' {
    		// Obvious ASCII ones: \t through \r plus space. Plus two Latin-1 oddballs.
    		switch r {
    		case ' ', '\t', '\n', '\v', '\f', '\r':
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed May 21 18:05:26 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  3. src/bytes/bytes_test.go

    	return predicate{
    		func(r rune) bool {
    			return !p.f(r)
    		},
    		"not " + p.name,
    	}
    }
    
    var trimFuncTests = []TrimFuncTest{
    	{isSpace, space + " hello " + space,
    		[]byte("hello"),
    		[]byte("hello " + space),
    		[]byte(space + " hello")},
    	{isDigit, "\u0e50\u0e5212hello34\u0e50\u0e51",
    		[]byte("hello"),
    		[]byte("hello34\u0e50\u0e51"),
    		[]byte("\u0e50\u0e5212hello")},
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Jul 28 18:13:58 UTC 2025
    - 62.9K bytes
    - Viewed (0)
  4. src/bytes/bytes.go

    	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.
    		return FieldsFunc(s, unicode.IsSpace)
    	}
    
    	// ASCII fast path
    	a := make([][]byte, n)
    	na := 0
    	fieldStart := 0
    	i := 0
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Sep 03 14:04:47 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  5. cmd/generic-handlers.go

    			i++
    		}
    
    		// Trim whitespace of segment
    		segmentStart, segmentEnd := start, i
    		for segmentStart < segmentEnd && unicode.IsSpace(rune(path[segmentStart])) {
    			segmentStart++
    		}
    		for segmentEnd > segmentStart && unicode.IsSpace(rune(path[segmentEnd-1])) {
    			segmentEnd--
    		}
    
    		// Check for ".." or "."
    		switch {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 20.7K bytes
    - Viewed (1)
  6. cmd/signature-v4-utils.go

    }
    
    // Trim leading and trailing spaces and replace sequential spaces with one space, following Trimall()
    // in http://docs.aws.amazon.com/general/latest/gr/sigv4-create-canonical-request.html
    func signV4TrimAll(input string) string {
    	// Compress adjacent spaces (a space is determined by
    	// unicode.IsSpace() internally here) to one space and return
    	return strings.Join(strings.Fields(input), " ")
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Mon Nov 25 17:10:22 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  7. src/bytes/example_test.go

    	// "of"
    	// "spaces"
    }
    
    func ExampleFieldsFuncSeq() {
    	text := []byte("The quick brown fox")
    	fmt.Println("Split on whitespace(similar to FieldsSeq):")
    	for word := range bytes.FieldsFuncSeq(text, unicode.IsSpace) {
    		fmt.Printf("%q\n", word)
    	}
    
    	mixedText := []byte("abc123def456ghi")
    	fmt.Println("\nSplit on digits:")
    	for word := range bytes.FieldsFuncSeq(mixedText, unicode.IsDigit) {
    		fmt.Printf("%q\n", word)
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon May 12 16:07:54 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/msrpc/netdfsTest.java

            netdfs.DfsInfo1 info1 = new netdfs.DfsInfo1();
            info1.entry_path = "test_path";
    
            ByteArrayOutputStream bos = new ByteArrayOutputStream();
            // Create buffer for encoding - initially allocate some space
            byte[] encodeBuffer = new byte[1024];
            NdrBuffer dst = new NdrBuffer(encodeBuffer, 0);
            info1.encode(dst);
    
            ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  9. docs/erasure/storage-class/README.md

    redundancy or better drive space utilization.
    
    To get an idea of how various combinations of data and parity drives affect the storage usage, let’s take an example of a 100 MiB file stored
    on 16 drive MinIO deployment. If you use eight data and eight parity drives, the file space usage will be approximately twice, i.e. 100 MiB
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Aug 12 18:20:36 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/AllocInfoTest.java

            @ParameterizedTest
            @DisplayName("Should handle various capacity and free space values")
            @CsvSource({ "0, 0", "1024, 512", "1048576, 524288", "1073741824, 536870912", "9223372036854775807, 4611686018427387903", // Long.MAX_VALUE and half
                    "-1, -1", // Negative values (edge case)
                    "100, 200" // Free space greater than capacity (edge case)
            })
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
Back to top