Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 434 for indexOf (0.16 sec)

  1. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/SimpleIdnaMappingTable.kt

        sink: BufferedSink,
      ): Boolean {
        val index =
          mappings.binarySearch {
            when {
              it.sourceCodePoint1 < codePoint -> -1
              it.sourceCodePoint0 > codePoint -> 1
              else -> 0
            }
          }
    
        // Code points must be in 0..0x10ffff.
        require(index in mappings.indices) { "unexpected code point: $codePoint" }
    
        val mapping = mappings[index]
        var result = true
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskQueue.kt

        val now = taskRunner.backend.nanoTime()
        val executeNanoTime = now + delayNanos
    
        // If the task is already scheduled, take the earlier of the two times.
        val existingIndex = futureTasks.indexOf(task)
        if (existingIndex != -1) {
          if (task.nextExecuteNanoTime <= executeNanoTime) {
            taskRunner.logger.taskLog(task, this) { "already scheduled" }
            return false
          }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

    import okio.use
    
    // TODO: migrate callers to [Regex.matchAt] when that API is not experimental.
    internal fun Regex.matchAtPolyfill(
      input: CharSequence,
      index: Int,
    ): MatchResult? {
      val candidate = find(input, index) ?: return null
      if (candidate.range.first != index) return null // Didn't match where it should have.
      return candidate
    }
    
    @JvmField
    val EMPTY_BYTE_ARRAY: ByteArray = ByteArray(0)
    
    /** Byte order marks. */
    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)
  4. okhttp/src/main/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt

        //    sub.test.example.com.
        // 3. Wildcard patterns for single-label domain names are not permitted.
    
        if (!pattern.startsWith("*.") || pattern.indexOf('*', 1) != -1) {
          // Asterisk (*) is only permitted in the left-most domain name label and must be the only
          // character in that label
          return false
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  5. .teamcity/src/test/kotlin/CIConfigIntegrationTests.kt

                buckets.forEachIndexed { index: Int, startEndVersion: List<String> ->
                    assertTrue(functionalTests[index].name.contains("(${startEndVersion[0]} <= gradle <${startEndVersion[1]})"))
                    assertEquals("clean ${testType}Test", functionalTests[index].getGradleTasks())
                    assertTrue(
                        functionalTests[index].getGradleParams().apply {
                            println(this)
    Plain Text
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Tue Jan 02 10:00:06 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/CallHandshakeTest.kt

        val socketOrderedByDefaults =
          handshakeEnabledCipherSuites.sortedBy { ConnectionSpec.MODERN_TLS.cipherSuitesAsString!!.indexOf(it) }
    
        assertThat(handshakeEnabledCipherSuites).containsExactly(
          *socketOrderedByDefaults.toTypedArray(),
        )
      }
    
      @Test
      fun advertisedOrderInRestricted() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

        fun edit(): Editor? = ******@****.***(key, sequenceNumber)
    
        /** Returns the unbuffered stream with the value for [index]. */
        fun getSource(index: Int): Source = sources[index]
    
        /** Returns the byte length of the value for [index]. */
        fun getLength(index: Int): Long = lengths[index]
    
        override fun close() {
          for (source in sources) {
            source.closeQuietly()
          }
        }
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  8. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10TypeProvider.kt

            val typeProjection = call.typeArguments.find { it.typeReference == ktTypeReference } ?: return null
            val index = call.typeArguments.indexOf(typeProjection)
            val paramDescriptor = resolvedCall.candidateDescriptor.typeParameters.find { it.index == index } ?: return null
            return resolvedCall.typeArguments[paramDescriptor]
        }
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Mon Jan 29 09:37:59 GMT 2024
    - 23.3K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/Cookie.kt

            set(Calendar.SECOND, second)
            set(Calendar.MILLISECOND, 0)
            return timeInMillis
          }
        }
    
        /**
         * Returns the index of the next date character in `input`, or if `invert` the index
         * of the next non-date character in `input`.
         */
        private fun dateCharacterOffset(
          input: String,
          pos: Int,
          limit: Int,
          invert: Boolean,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:12:05 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/KtSymbolByFirBuilder.kt

                functionSymbol.fir.unwrapSubstitutionOverrideIfNeeded()?.let { unwrappedFunction ->
                    val originalIndex = functionSymbol.valueParameterSymbols.indexOf(firSymbol)
                    if (originalIndex == -1) {
                        errorWithAttachment("Containing function doesn't have the corresponding parameter") {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Mar 28 09:06:28 GMT 2024
    - 32.4K bytes
    - Viewed (0)
Back to top