Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 243 for gstring (1.76 sec)

  1. src/cmd/vendor/golang.org/x/sys/plan9/dir_plan9.go

    	return uint64(lo) | uint64(hi)<<32, b[8:]
    }
    
    // gstring reads a string from b, prefixed with a 16-bit length in little-endian order.
    // It returns the string with the remaining slice of b and a boolean. If the length is
    // greater than the number of bytes in b, the boolean will be false.
    func gstring(b []byte) (string, []byte, bool) {
    	n, b := gbit16(b)
    	if int(n) > len(b) {
    		return "", b, false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 15 19:02:39 UTC 2021
    - 5.6K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/ChainingTransformer.java

                    if (type.isInstance(value)) {
                        return type.cast(value);
                    }
                    if (type == String.class && value instanceof GString) {
                        return type.cast(value.toString());
                    }
                    return original;
                }
            });
        }
    
        public boolean hasTransformers() {
            return !transformers.isEmpty();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 10:39:11 UTC 2019
    - 2.1K bytes
    - Viewed (0)
  3. src/syscall/dir_plan9.go

    func gbit64(b []byte) (uint64, []byte) {
    	return byteorder.LeUint64(b), b[8:]
    }
    
    // gstring reads a string from b, prefixed with a 16-bit length in little-endian order.
    // It returns the string with the remaining slice of b and a boolean. If the length is
    // greater than the number of bytes in b, the boolean will be false.
    func gstring(b []byte) (string, []byte, bool) {
    	n, b := gbit16(b)
    	if int(n) > len(b) {
    		return "", b, false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:32:38 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/ValueSanitizers.java

    import groovy.lang.GString;
    import org.gradle.internal.Cast;
    
    import javax.annotation.Nullable;
    
    public class ValueSanitizers {
        private static final ValueSanitizer<Object> STRING_VALUE_SANITIZER = new ValueSanitizer<Object>() {
            @Override
            @Nullable
            public Object sanitize(@Nullable Object value) {
                if (value instanceof GString) {
                    return value.toString();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/api/internal/tasks/properties/InputParameterUtils.java

     */
    
    package org.gradle.api.internal.tasks.properties;
    
    import groovy.lang.GString;
    import org.gradle.api.Task;
    import org.gradle.util.internal.DeferredUtil;
    
    import javax.annotation.Nullable;
    
    public class InputParameterUtils {
        @Nullable
        public static Object prepareInputParameterValue(InputPropertySpec inputProperty, Task task) {
            String propertyName = inputProperty.getPropertyName();
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Sep 14 08:05:31 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/annotations/NestedValidationUtil.java

                return Optional.of("Type is in 'kotlin.*' package that is reserved for Kotlin stdlib types");
            } else if (type.getName().startsWith("groovy.lang.GString")) {
                return Optional.of("Groovy's GString type is not supported as a nested type");
            } else {
                return Optional.empty();
            }
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 09:10:37 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/notations/DependencyStringNotationConverterTest.groovy

            }
        }
    
        def "with 3-element GString"() {
            when:
            def descriptor = 'org.gradle:gradle-core:1.0'
            def gstring = "$descriptor"
            def d = parse(parser, gstring)
    
            then:
            d.group == 'org.gradle'
            d.name == 'gradle-core'
            d.version == '1.0'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 8K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/ChainingTransformerTest.groovy

        private final ChainingTransformer<String> transformer = new ChainingTransformer<String>(String.class)
    
        def 'does nothing when no transformers added'() {
            expect:
            transformer.transform('value') == 'value'
        }
    
        def 'passes object to each Transformer in turn'() {
            given:
            Transformer<String, String> transformerA = Mock()
            Transformer<String, String> transformerB = Mock()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 27 15:36:08 UTC 2018
    - 2.4K bytes
    - Viewed (0)
  9. subprojects/core-api/src/test/groovy/org/gradle/internal/typeconversion/CharSequenceNotationConverterTest.groovy

            when:
            converter.convert(value, result)
    
            then:
            1 * target.convert("12", result)
    
            where:
            type          | value
            String        | "12"
            StringBuilder | new StringBuilder("12")
            GString       | "${6 * 2}"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/CollectionPropertyIntegrationTest.groovy

            where:
            type            | value                                                                | display
            "String"        | '["a", "b", "c"]'                                                    | '[a, b, c]'
            "Param<String>" | '[new Param<String>(display: "a"), new Param<String>(display: "b")]' | '[a, b]'
        }
    
        def "can finalize the value of a property using API"() {
            given:
            buildFile """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 19:57:00 UTC 2024
    - 15K bytes
    - Viewed (0)
Back to top