Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for matchAtPolyfill (0.07 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/-MediaTypeCommon.kt

     *
     * @throws IllegalArgumentException if this is not a well-formed media type.
     */
    internal fun String.commonToMediaType(): MediaType {
      val typeSubtype: MatchResult =
        TYPE_SUBTYPE.matchAtPolyfill(this, 0)
          ?: throw IllegalArgumentException("No subtype found for: \"$this\"")
      val type = typeSubtype.groupValues[1].lowercase()
      val subtype = typeSubtype.groupValues[2].lowercase()
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

    import okio.FileSystem
    import okio.IOException
    import okio.Options
    import okio.Path
    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
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. okhttp-android/src/main/baseline-prof.txt

    HSPLokhttp3/internal/_UtilCommonKt;->intersect([Ljava/lang/String;[Ljava/lang/String;Ljava/util/Comparator;)[Ljava/lang/String;
    HSPLokhttp3/internal/_UtilCommonKt;->matchAtPolyfill(Lkotlin/text/Regex;Ljava/lang/CharSequence;I)Lkotlin/text/MatchResult;
    HSPLokhttp3/internal/_UtilCommonKt;->readMedium(Lokio/BufferedSource;)I
    HSPLokhttp3/internal/_UtilJvmKt$$ExternalSyntheticLambda0;-><init>(Ljava/lang/String;Z)V
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Mar 21 11:22:00 UTC 2022
    - 127.9K bytes
    - Viewed (0)
Back to top