Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of about 10,000 for String3 (0.17 sec)

  1. android/guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java

    import java.util.Random;
    
    /** Benchmarks for the hashing of UTF-8 strings. */
    public class HashStringBenchmark {
      static class MaxCodePoint {
        final int value;
    
        /**
         * Convert the input string to a code point. Accepts regular decimal numerals, hex strings, and
         * some symbolic names meaningful to humans.
         */
        private static int decode(String userFriendly) {
          try {
            return Integer.decode(userFriendly);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 5.3K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/test/groovy/org/gradle/api/internal/cache/StringInternerTest.groovy

        }
    
        def "should return first instance when multiple strings with similar contents are interned"() {
            given:
            def strings = (1..5).collect { new String('hello') }
            assert strings.collect { System.identityHashCode(it) }.unique().size() == 5
            def firstInstance = strings.first()
            when:
            def internedStrings = strings.collect { stringInterner.intern(it) }
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. src/cmd/go/internal/base/goflags.go

    package base
    
    import (
    	"flag"
    	"fmt"
    	"runtime"
    	"strings"
    
    	"cmd/go/internal/cfg"
    	"cmd/internal/quoted"
    )
    
    var goflags []string // cached $GOFLAGS list; can be -x or --x form
    
    // GOFLAGS returns the flags from $GOFLAGS.
    // The list can be assumed to contain one string per flag,
    // with each string either beginning with -name or --name.
    func GOFLAGS() []string {
    	InitGOFLAGS()
    	return goflags
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 14:42:39 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  4. src/cmd/vet/vet_test.go

    	var res []string
    	for _, line := range strings.Split(out, "\n") {
    		line = strings.TrimSuffix(line, "\r") // normalize Windows output
    		if strings.HasPrefix(line, "\t") {
    			res[len(res)-1] += "\n" + line
    		} else if strings.HasPrefix(line, "go tool") || strings.HasPrefix(line, "#") || !wantAuto && strings.HasPrefix(line, "<autogenerated>") {
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  5. platforms/core-execution/workers/src/main/java/org/gradle/workers/internal/FilteringClassLoaderSpecSerializer.java

        private void encodeStrings(Encoder encoder, Set<String> strings) throws Exception {
            encoder.writeInt(strings.size());
            for (String string : strings) {
                encoder.writeString(string);
            }
        }
    
        @Override
        public FilteringClassLoader.Spec read(Decoder decoder) throws Exception {
            List<String> classNames = decodeStrings(decoder);
            List<String> disallowedClassNames = decodeStrings(decoder);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. src/cmd/go/internal/vcs/discovery.go

    		}
    		if e, ok := t.(xml.StartElement); ok && strings.EqualFold(e.Name.Local, "body") {
    			break
    		}
    		if e, ok := t.(xml.EndElement); ok && strings.EqualFold(e.Name.Local, "head") {
    			break
    		}
    		e, ok := t.(xml.StartElement)
    		if !ok || !strings.EqualFold(e.Name.Local, "meta") {
    			continue
    		}
    		if attrValue(e.Attr, "name") != "go-import" {
    			continue
    		}
    		if f := strings.Fields(attrValue(e.Attr, "content")); len(f) == 3 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 11 18:14:49 UTC 2020
    - 2.6K bytes
    - Viewed (0)
  7. pkg/apis/core/validation/names.go

    // to the rules documented on the type.
    func ValidateClusterTrustBundleName(signerName string) func(name string, prefix bool) []string {
    	return func(name string, isPrefix bool) []string {
    		if signerName == "" {
    			if strings.Contains(name, ":") {
    				return []string{"ClusterTrustBundle without signer name must not have \":\" in its name"}
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:48 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/RuleSourceAppliedAsProjectPluginIntegrationTest.groovy

                        @Model
                        List<String> strings() {
                          []
                        }
    
                        @Mutate
                        void addTasks(ModelMap<Task> tasks, List<String> strings) {
                            tasks.create("value") {
                                it.doLast {
                                    println "value: $strings"
                                }
                            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  9. src/internal/types/testdata/fixedbugs/issue58611.go

    package p
    
    import (
    	"sort"
    	"strings"
    )
    
    func f[int any](x int) {
    	x = 0 /* ERRORx "cannot use 0.*(as int.*with int declared at|type parameter)" */
    }
    
    // test case from issue
    
    type Set[T comparable] map[T]struct{}
    
    func (s *Set[string]) String() string {
    	keys := make([]string, 0, len(*s))
    	for k := range *s {
    		keys = append(keys, k)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 22 00:40:19 UTC 2023
    - 742 bytes
    - Viewed (0)
  10. platforms/core-configuration/input-tracking/src/test/groovy/org/gradle/internal/configuration/inputs/AccessTrackingPropertiesNonStringTest.groovy

        }
    
        def "getProperty(String) is tracked for non-string values"() {
            when:
            def result = getMapUnderTestToRead().getProperty('keyWithNonStringValue')
    
            then:
            result == null
            1 * listener.onAccess('keyWithNonStringValue', NON_STRING_VALUE)
        }
    
        def "getProperty(String, String) is tracked for non-string values"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 14.5K bytes
    - Viewed (0)
Back to top