- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for Char (0.12 sec)
-
okhttp/src/test/java/okhttp3/HeadersTest.kt
assertThat(expected.message) .isEqualTo("Unexpected char 0xe9 at 1 in header name: héader1") } } @Test fun builderRejectsUnicodeInHeaderValue() { assertFailsWith<IllegalArgumentException> { Headers.Builder().add("header1", "valué1") }.also { expected -> assertThat(expected.message) .isEqualTo("Unexpected char 0xe9 at 4 in header1 value: valué1") } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 8.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-HeadersCommon.kt
val c = name[i] require(c in '\u0021'..'\u007e') { "Unexpected char 0x${c.charCode()} at $i in header name: $name" } } } internal fun headersCheckValue( value: String, name: String, ) { for (i in value.indices) { val c = value[i] require(c == '\t' || c in '\u0020'..'\u007e') { "Unexpected char 0x${c.charCode()} at $i in $name value" +
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.9K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/evaluate/FirCompileTimeConstantEvaluator.kt
ConstantValueKind.Boolean -> KtConstantValue.KtBooleanConstantValue(value as Boolean, psi) ConstantValueKind.Char -> KtConstantValue.KtCharConstantValue(value as Char, psi) ConstantValueKind.String -> KtConstantValue.KtStringConstantValue(value as String, psi) ConstantValueKind.Null -> KtConstantValue.KtNullConstantValue(psi)
Plain Text - Registered: Fri Apr 26 08:18:10 GMT 2024 - Last Modified: Wed Mar 20 14:53:27 GMT 2024 - 16.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt
*/ private fun assertWildcardRule(rule: String) { check(rule.startsWith(WILDCARD_CHAR)) { """Wildcard Assertion Failure: '$rule' A wildcard rule was added with a wildcard that is not in leftmost position! We'll need to change the ${PublicSuffixDatabase::class.java.name} to handle this.""" } check(rule.indexOf(WILDCARD_CHAR, 1) == -1) { """Wildcard Assertion Failure: '$rule'
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 18 01:24:38 GMT 2024 - 6K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/KotlinSourceQueries.kt
Plain Text - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Wed Dec 20 20:38:19 GMT 2023 - 11.1K bytes - Viewed (0) -
build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/ApiTypeProvider.kt
} } private fun boundOf(wildcard: Char) = when (wildcard) { '+' -> Variance.COVARIANT '-' -> Variance.CONTRAVARIANT else -> Variance.INVARIANT } } private fun binaryNameOfBaseType(descriptor: Char) = Type.getType(descriptor.toString()).className private
Plain Text - Registered: Wed Feb 28 11:36:09 GMT 2024 - Last Modified: Tue Feb 06 19:56:10 GMT 2024 - 20.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt
return endIndex } /** * Returns the index of the first character in this string that is [delimiter]. Returns [endIndex] * if there is no such character. */ fun String.delimiterOffset( delimiter: Char, startIndex: Int = 0, endIndex: Int = length, ): Int { for (i in startIndex until endIndex) { if (this[i] == delimiter) return i } return endIndex } /**
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 11K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/HeadersJvmTest.kt
assertFailsWith<IllegalArgumentException> { Headers.Builder() .addUnsafeNonAscii("héader1", "value1") .build() }.also { expected -> assertThat(expected.message).isEqualTo("Unexpected char 0xe9 at 1 in header name: héader1") } } @Test fun addUnsafeNonAsciiAcceptsUnicodeValue() { val headers = Headers.Builder() .addUnsafeNonAscii("header1", "valué1") .build()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.6K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/TestUtilJvm.kt
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 11 22:09:35 GMT 2024 - 4.3K bytes - Viewed (0) -
.teamcity/src/main/kotlin/model/FunctionalTestBucketProvider.kt
val name = truncateName(subprojects.joinToString(",")) private fun truncateName(str: String) = // Can't exceed Linux file name limit 255 char on TeamCity if (str.length > 200) { str.substring(0, 200) + "..." } else { str }
Plain Text - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Thu Jan 18 05:14:09 GMT 2024 - 9K bytes - Viewed (0)