- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for consumeValue (0.22 sec)
-
src/mime/mediatype.go
return "", v } return v[0:notPos], v[notPos:] } // consumeValue consumes a "value" per RFC 2045, where a value is // either a 'token' or a 'quoted-string'. On success, consumeValue // returns the value consumed (and de-quoted/escaped, if a // quoted-string) and the rest of the string. On failure, returns // ("", v). func consumeValue(v string) (value, rest string) { if v == "" { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 9.8K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/internal/component/model/DefaultCompatibilityCheckResult.java
private final T consumerValue; private final T producerValue; private boolean compatible; private boolean done; public DefaultCompatibilityCheckResult(@Nullable T consumerValue, T producerValue) { assert producerValue != null : "Internal contract of the current implementation, can be changed with a motivation"; assert !Objects.equals(consumerValue, producerValue);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 1.9K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/attributes/DefaultCompatibilityRuleChainTest.groovy
static class CompatibilityRule implements AttributeCompatibilityRule<String> { @Override void execute(CompatibilityCheckDetails<String> details) { assert details.consumerValue == "value1" assert details.producerValue == "value2" details.compatible() } } static class CompatibilityRuleWithParams implements AttributeCompatibilityRule<String> {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 4.4K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/internal/component/model/DefaultMultipleCandidateResult.java
private final Set<T> candidateValues; private final T consumerValue; // Match recording is optimized for the general case of a single match private T singleMatch; private Set<T> multipleMatches; public DefaultMultipleCandidateResult(@Nullable T consumerValue, Set<T> candidateValues) { if (candidateValues.isEmpty() || (consumerValue != null && candidateValues.size() == 1)) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 2.8K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/attributes/DefaultOrderedCompatibilityRule.java
this.reverse = reverse; } @Override public void execute(CompatibilityCheckDetails<T> details) { T consumerValue = details.getConsumerValue(); T producerValue = details.getProducerValue(); int cmp = comparator.compare(consumerValue, producerValue); if (reverse) { cmp = -cmp; } if (cmp >= 0) { details.compatible();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 1.5K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/internal/component/resolution/failure/StyledAttributeDescriber.java
} @Override public String describeMissingAttribute(Attribute<?> attribute, Object consumerValue) { return StyledException.style(StyledTextOutput.Style.Info, delegate.describeMissingAttribute(attribute, consumerValue)); } @Override public String describeExtraAttribute(Attribute<?> attribute, Object producerValue) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Feb 01 14:37:51 UTC 2024 - 2.1K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/model/AttributePrecedenceSchemaAttributeMatcherTest.groovy
static class CompatibilityRule implements AttributeCompatibilityRule<String> { @Override void execute(CompatibilityCheckDetails<String> details) { if (details.consumerValue == null) { details.compatible() } else { if (details.producerValue in ["best", "compatible"]) { details.compatible() } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 6K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dsl/dependencies/GradlePluginVariantsSupport.java
@Override public void execute(MultipleCandidatesDetails<GradlePluginApiVersion> details) { GradlePluginApiVersion consumerValue = details.getConsumerValue(); GradleVersion consumer = consumerValue == null ? GradleVersion.current() : GradleVersion.version(consumerValue.getName()); GradleVersion bestMatchVersion = GradleVersion.version("0.0"); GradlePluginApiVersion bestMatchAttribute = null;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Mar 25 19:13:03 UTC 2024 - 3.9K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/external/model/PreferJavaRuntimeVariantTest.groovy
candidates.getConsumerValue() >> consumerValue candidates.getCandidateValues() >> candidateValues.collect { usage(it) } when: rule.execute(candidates) then: count * candidates.closestMatch({ it.name == Usage.JAVA_RUNTIME }) where: consumerValue | candidateValues | choosesRuntime
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 2.5K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/internal/component/model/AttributeDescriberSelector.java
}); return sb.toString(); } @Override public String describeMissingAttribute(Attribute<?> attribute, Object consumerValue) { return attribute.getName() + " (required '" + consumerValue + "')"; } @Override public String describeExtraAttribute(Attribute<?> attribute, Object producerValue) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jan 29 22:29:19 UTC 2024 - 4.7K bytes - Viewed (0)