- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 29 for consumeValue (0.18 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) -
src/mime/mediatype_test.go
{`"\" rest`, "", `"\" rest`}, {`"C:\dev\go\robots.txt"`, `C:\dev\go\robots.txt`, ""}, {`"C:\新建文件夹\中文第二次测试.mp4"`, `C:\新建文件夹\中文第二次测试.mp4`, ""}, } for _, test := range tests { value, rest := consumeValue(test[0]) expectedValue := test[1] expectedRest := test[2] if value != expectedValue { t.Errorf("expected to consume value [%s], not [%s] from [%s]", expectedValue, value, test[0])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 26 17:58:37 UTC 2022 - 18.1K bytes - Viewed (0) -
platforms/jvm/jvm-services/src/main/java/org/gradle/api/internal/artifacts/JavaEcosystemSupport.java
@Override public void execute(MultipleCandidatesDetails<TargetJvmEnvironment> details) { TargetJvmEnvironment consumerValue = details.getConsumerValue(); if (consumerValue != null && details.getCandidateValues().contains(consumerValue)) { details.closestMatch(consumerValue); // exact match } else {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Mar 25 19:13:00 UTC 2024 - 18.1K 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/jvm/jvm-services/src/main/java/org/gradle/api/internal/artifacts/JavaEcosystemAttributesDescriber.java
} @Override @Nullable public String describeMissingAttribute(Attribute<?> attribute, Object consumerValue) { StringBuilder sb = new StringBuilder(); if (haveSameName(Usage.USAGE_ATTRIBUTE, attribute)) { sb.append("its usage (required "); describeUsage(consumerValue, sb); sb.append(")");
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Mar 25 19:13:00 UTC 2024 - 14.5K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/internal/component/resolution/failure/ResolutionCandidateAssessor.java
} else { incompatible.add(new AssessedAttribute<>(attribute, Cast.uncheckedCast(consumerValue.get()), Cast.uncheckedCast(producerValue.get()))); } } else if (consumerValue.isPresent()) { onlyOnConsumer.add(new AssessedAttribute<>(attribute, Cast.uncheckedCast(consumerValue.get()), null));
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 22 19:04:04 UTC 2024 - 11.4K 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)