Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for StringList (0.13 sec)

  1. platforms/core-runtime/functional/src/main/java/org/gradle/internal/RenderingUtils.java

                switch (stringList.size()) {
                    case 0:
                        return "";
                    case 1:
                        return stringList.get(0);
                    case 2:
                        return join(" " + conjunction + " ", stringList);
                    default:
                        int bound = stringList.size() - 1;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 09 14:11:31 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. src/cmd/go/internal/str/str_test.go

    	"runtime"
    	"strings"
    	"testing"
    )
    
    var foldDupTests = []struct {
    	list   []string
    	f1, f2 string
    }{
    	{StringList("math/rand", "math/big"), "", ""},
    	{StringList("math", "strings"), "", ""},
    	{StringList("strings"), "", ""},
    	{StringList("strings", "strings"), "strings", "strings"},
    	{StringList("Rand", "rand", "math", "math/rand", "math/Rand"), "Rand", "rand"},
    }
    
    func TestFoldDup(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 25 16:49:13 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  3. src/cmd/go/internal/str/str.go

    	"unicode"
    	"unicode/utf8"
    )
    
    // StringList flattens its arguments into a single []string.
    // Each argument in args must have type string or []string.
    func StringList(args ...any) []string {
    	var x []string
    	for _, arg := range args {
    		switch arg := arg.(type) {
    		case []string:
    			x = append(x, arg...)
    		case string:
    			x = append(x, arg)
    		default:
    			panic("stringList: invalid argument of type " + fmt.Sprintf("%T", arg))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 23 20:08:07 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/resolver/ResolverEnvironment.kt

    
    /**
     * Gradle options as configured in IntelliJ.
     */
    internal
    val Environment.gradleOptions: List<String>
        get() = stringList("gradleOptions")
    
    
    /**
     * Gradle JVM options as configured in IntelliJ.
     */
    internal
    val Environment.gradleJvmOptions: List<String>
        get() = stringList("gradleJvmOptions")
    
    
    /**
     * Gradle environment variables as configured in IntelliJ.
     */
    internal
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/extensibility/ExtensionsStorageTest.groovy

            storage.add new TypeOf<List<String>>() {}, 'stringList', ['string']
    
            expect:
            storage.findByType(typeOf(Number)) == 42
            storage.findByType(new TypeOf<List<String>>() {}) == ['string']
        }
    
        def "get schema"() {
            given:
            storage.add new TypeOf<List<String>>() {}, 'stringList', ['string']
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/precompile/PrecompiledScriptDependenciesResolver.kt

                environment.stringList(EnvironmentProperties.kotlinDslImplicitImports)
    
            private
            fun precompiledScriptPluginImportsFrom(environment: Environment?, scriptText: CharSequence): List<String> =
                environment.stringList(hashOfNormalisedString(scriptText))
    
            private
            fun Environment?.stringList(key: String) =
                string(key)?.split(':')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  7. maven-core/src/test/java/org/apache/maven/lifecycle/internal/builder/multithreaded/ThreadOutputMuxerTest.java

            final List<String> stringList = Arrays.asList(
                    "Thinkin", "of", "a", "master", "plan", "Cuz", "ain’t", "nuthin", "but", "sweat", "inside", "my",
                    "hand");
            Iterator<String> lyrics = stringList.iterator();
    
            ExecutorService executor = Executors.newFixedThreadPool(10);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/annotations/DefaultTypeMetadataStore.java

            return Collectors.collectingAndThen(Collectors.toList(), stringList -> {
                if (stringList.isEmpty()) {
                    return "";
                }
                if (stringList.size() == 1) {
                    return stringList.get(0);
                }
                int bound = stringList.size() - 1;
                return String.join(", ", stringList.subList(0, bound)) + " or " + stringList.get(bound);
            });
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 21:54:36 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/cli-runtime/pkg/printers/json_test.go

    	Map:        map[string]int{"TestSubkey": 1},
    	StringList: []string{"a", "b", "c"},
    	IntList:    []int{1, 2, 3},
    }
    
    type TestStruct struct {
    	metav1.TypeMeta   `json:",inline"`
    	metav1.ObjectMeta `json:"metadata,omitempty"`
    	Key               string         `json:"Key"`
    	Map               map[string]int `json:"Map"`
    	StringList        []string       `json:"StringList"`
    	IntList           []int          `json:"IntList"`
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 4K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/logging/comparison/DiffUtils.java

        }
    
        /** Calculate an incremental Id for a given string. */
        private Integer getIdByLine(String line) {
            int newId = stringList.size();
            Integer existingId = stringToId.put(line, newId);
            if (existingId == null) {
                stringList.add(line);
                return newId;
            } else {
                stringToId.put(line, existingId);
                return existingId;
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top