- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 10 for indexOfFirst (0.06 seconds)
-
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/runtimes/CheckTargetRuntimes.kt
val lines = buildFile.readText().lines() val start = lines.indexOfFirst { Regex("\\s+computedRuntimes\\s+\\{").matches(it) } if (start == -1) { return BuildFileMutation.Failure("Missing computedRuntimes block for $projectPath: ${buildFile.asClickableFileUrl()}") } val end = lines.indexOfFirst(start + 1) { Regex("\\s+}").matches(it) }
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Mar 11 22:40:18 GMT 2026 - 13.8K bytes - Click Count (0) -
build-logic-settings/architecture-docs/src/main/kotlin/gradlebuild/GeneratorTask.kt
val content = markdownFile.readText().lines() val markerPos = content.indexOfFirst { it.contains(markerComment) } require(markerPos >= 0) { "Could not locate the generated diagram in $markdownFile" } val endPos = content.subList(markerPos, content.size).indexOfFirst { it.contains(endDiagram) && !it.contains(startDiagram) }
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Jan 30 15:37:56 GMT 2026 - 3.8K bytes - Click Count (0) -
.teamcity/src/main/kotlin/model/FunctionalTestBucketProvider.kt
unknownSubprojects: List<GradleSubproject>, ): MutableList<BuildTypeBucket> = buckets.toMutableList().apply { val firstAvailableBucketIndex = indexOfFirst { it is SmallSubprojectBucket && ( it.parallelizationMethod !is ParallelizationMethod.TeamCityParallelTests ||
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Feb 12 14:43:33 GMT 2026 - 8.1K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilCommon.kt
if (comparator.compare(a, b) == 0) { return true } } } return false } internal fun Array<String>.indexOf( value: String, comparator: Comparator<String>, ): Int = indexOfFirst { comparator.compare(it, value) == 0 } @Suppress("UNCHECKED_CAST") internal fun Array<String>.concat(value: String): Array<String> { val result = copyOf(size + 1) result[result.lastIndex] = value
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon May 05 16:01:00 GMT 2025 - 10.1K bytes - Click Count (0) -
samples/tlssurvey/src/main/kotlin/okhttp3/survey/CipherSuiteSurvey.kt
ianaSuites.suites.sortedBy { ianaSuite -> val index = orderBy.indexOfFirst { it.matches(ianaSuite) } if (index == -1) Integer.MAX_VALUE else index } for (suiteId in sortedSuites) { print(suiteId.name) for (client in clients) { print("\t") val index = client.enabled.indexOfFirst { it.matches(suiteId) } if (index != -1) { print(index + 1) }Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Apr 02 01:44:15 GMT 2024 - 1.6K bytes - Click Count (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/FixProjectHealthTask.kt
val file = File(filePath) if (!file.exists()) return@forEach val lines = file.readLines().toMutableList() val dependenciesIndex = lines.indexOfFirst { it.contains("dependencies {") } val whitespace = lines.drop(dependenciesIndex + 1).find { it.isNotBlank() }?.takeWhile { it.isWhitespace() } ?: ""
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Mon Mar 03 06:57:08 GMT 2025 - 6.2K bytes - Click Count (1) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/TaskQueue.kt
"scheduled after ${formatDuration(executeNanoTime - now)}" } } // Insert in chronological order. Always compare deltas because nanoTime() is permitted to wrap. var insertAt = futureTasks.indexOfFirst { it.nextExecuteNanoTime - now > delayNanos } if (insertAt == -1) insertAt = futureTasks.size futureTasks.add(insertAt, task) // Impact the coordinator if we inserted at the front.Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed May 28 23:28:25 GMT 2025 - 7.3K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt
} /** Returns the task that was started, or null if there were no tasks to start. */ private fun startNextTask(): SerialTask? { taskRunner.assertLockHeld() val index = serialTaskQueue.indexOfFirst { it.isReady() } if (index == -1) return null val nextTask = serialTaskQueue.removeAt(index) currentTask = nextTask contextSwitchCount++ nextTask.start() return nextTask }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed May 28 23:28:25 GMT 2025 - 11.9K bytes - Click Count (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/AbstractCheckOrUpdateContributorsInReleaseNotes.kt
fun parseReleaseNotes(): Triple<List<String>, List<String>, List<String>> { val releaseNotesLines: List<String> = releaseNotes.asFile.get().readLines() val contributorSectionBeginIndex = releaseNotesLines.indexOfFirst { it.startsWith("We would like to thank the following community members for their contributions to this release of Gradle:") } + 1 if (contributorSectionBeginIndex == 0) {
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Tue Jun 24 07:54:08 GMT 2025 - 5.7K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealCall.kt
* should close. */ internal fun releaseConnectionNoEvents(): Socket? { val connection = this.connection!! connection.assertLockHeld() val calls = connection.calls val index = calls.indexOfFirst { it.get() == this@RealCall } check(index != -1) calls.removeAt(index) this.connection = null if (calls.isEmpty()) { connection.idleAtNs = System.nanoTime()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Jan 11 12:06:21 GMT 2026 - 19.5K bytes - Click Count (0)