Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 453 for pieces (0.18 sec)

  1. pkg/log/options.go

    }
    
    func convertScopedLevel(sl string) (string, Level, error) {
    	var s string
    	var l string
    
    	pieces := strings.Split(sl, ":")
    	if len(pieces) == 1 {
    		s = DefaultScopeName
    		l = pieces[0]
    	} else if len(pieces) == 2 {
    		s = pieces[0]
    		l = pieces[1]
    	} else {
    		return "", NoneLevel, fmt.Errorf("invalid output level format '%s'", sl)
    	}
    
    	level, ok := stringToLevel[l]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 07 04:04:34 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  2. src/cmd/cgo/ast.go

    func commentText(g *ast.CommentGroup) string {
    	var pieces []string
    	for _, com := range g.List {
    		c := com.Text
    		// Remove comment markers.
    		// The parser has given us exactly the comment text.
    		switch c[1] {
    		case '/':
    			//-style comment (no newline at the end)
    			c = c[2:] + "\n"
    		case '*':
    			/*-style comment */
    			c = c[2 : len(c)-2]
    		}
    		pieces = append(pieces, c)
    	}
    	return strings.Join(pieces, "")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:27 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Splitter.java

      /**
       * Returns a splitter that divides strings into pieces of the given length. For example, {@code
       * Splitter.fixedLength(2).split("abcde")} returns an iterable containing {@code ["ab", "cd",
       * "e"]}. The last piece can be smaller than {@code length} but will never be empty.
       *
       * <p><b>Note:</b> if {@link #fixedLength} is used in conjunction with {@link #limit}, the final
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 23.7K bytes
    - Viewed (0)
  4. src/bufio/bufio.go

    func (b *Reader) ReadBytes(delim byte) ([]byte, error) {
    	full, frag, n, err := b.collectFragments(delim)
    	// Allocate new buffer to hold the full pieces and the fragment.
    	buf := make([]byte, n)
    	n = 0
    	// Copy full pieces and fragment in.
    	for i := range full {
    		n += copy(buf[n:], full[i])
    	}
    	copy(buf[n:], frag)
    	return buf, err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 14:39:08 UTC 2023
    - 21.8K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/docs/userguide/native/swift_testing.adoc

    In order to operate, the link:{groovyDslPath}/org.gradle.nativeplatform.test.xctest.tasks.XCTest.html[XCTest] task type requires three pieces of information:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/Splitter.java

      /**
       * Returns a splitter that divides strings into pieces of the given length. For example, {@code
       * Splitter.fixedLength(2).split("abcde")} returns an iterable containing {@code ["ab", "cd",
       * "e"]}. The last piece can be smaller than {@code length} but will never be empty.
       *
       * <p><b>Note:</b> if {@link #fixedLength} is used in conjunction with {@link #limit}, the final
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  7. platforms/core-runtime/build-operations/src/test/groovy/org/gradle/internal/operations/DefaultBuildOperationRunnerTest.groovy

            then:
            1 * buildOperation.run(_) >> { BuildOperationContext context ->
                context.progress("progress 1")
                context.progress("progress 2")
                context.progress(2, 4, "gold pieces", "progress 3")
            }
    
            then:
            1 * listener.progress(_, _) >> { BuildOperationDescriptor descriptor, String status ->
                assert status == "progress 1"
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 15:56:07 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  8. cmd/object-api-utils.go

    	}
    
    	// Split on dot and check each piece conforms to rules.
    	allNumbers := true
    	pieces := strings.Split(bucket, dnsDelimiter)
    	for _, piece := range pieces {
    		if len(piece) == 0 || piece[0] == '-' ||
    			piece[len(piece)-1] == '-' {
    			// Current piece has 0-length or starts or
    			// ends with a hyphen.
    			return false
    		}
    		// Now only need to check if each piece is a valid
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  9. pkg/volume/configmap/configmap.go

    			ObjectMeta: metav1.ObjectMeta{
    				Namespace: b.pod.Namespace,
    				Name:      b.source.Name,
    			},
    		}
    	}
    
    	totalBytes := totalBytes(configMap)
    	klog.V(3).Infof("Received configMap %v/%v containing (%v) pieces of data, %v total bytes",
    		b.pod.Namespace,
    		b.source.Name,
    		len(configMap.Data)+len(configMap.BinaryData),
    		totalBytes)
    
    	payload, err := MakePayload(b.source.Items, configMap, b.source.DefaultMode, optional)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 10K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/egressselector/egress_selector_test.go

    					validateDirectDialer,
    					nil,
    					nil,
    				},
    			},
    			expectedError: nil,
    		},
    	}
    
    	for _, tc := range testcases {
    		t.Run(tc.name, func(t *testing.T) {
    			// Setup the various pieces such as the fake dialer prior to initializing the egress selector.
    			// Go doesn't allow function pointer comparison, nor does its reflect package
    			// So overriding the default dialer to detect if it is returned.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 26 22:41:29 UTC 2023
    - 12.3K bytes
    - Viewed (0)
Back to top