Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 270 for substring (0.04 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/StatusLine.kt

          // Parse response code like "200". Always 3 digits.
          if (statusLine.length < codeStart + 3) {
            throw ProtocolException("Unexpected status line: $statusLine")
          }
          val code =
            statusLine.substring(codeStart, codeStart + 3).toIntOrNull()
              ?: throw ProtocolException(
                "Unexpected status line: $statusLine",
              )
    
          // Parse an optional response message like "OK" or "Not Modified". If it
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  2. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java

                        index = i;
                        break;
                    }
                }
    
                stringPart = new StringItem(value.substring(0, index), true);
                digitPart = parseItem(true, value.substring(index));
            }
    
            @Override
            public int compareTo(Item item) {
                if (item == null) {
                    // 1-rc1 < 1, 1-ga1 > 1
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 26.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/dcerpc/DcerpcHandle.java

                    break;
                case 5:
                    if (ch == '=') {
                        key = str.substring(mark, si).trim();
                        mark = si + 1;
                    } else if (ch == ',' || ch == ']') {
                        final String val = str.substring(mark, si).trim();
                        mark = si + 1;
                        if (key == null) {
                            key = "endpoint";
                        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  4. samples/tlssurvey/src/main/kotlin/okhttp3/survey/types/SuiteId.kt

     */
    package okhttp3.survey.types
    
    import okio.ByteString
    
    data class SuiteId(
      val id: ByteString?,
      val name: String,
    ) {
      fun matches(suiteId: SuiteId): Boolean = id == suiteId.id || name.substring(4) == suiteId.name.substring(4)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 834 bytes
    - Viewed (0)
  5. samples/slack/src/main/java/okhttp3/slack/SlackApi.java

          return httpUrl.toString();
        }
    
        @FromJson HttpUrl urlFromJson(String urlString) {
          if (urlString.startsWith("wss:")) urlString = "https:" + urlString.substring(4);
          if (urlString.startsWith("ws:")) urlString = "http:" + urlString.substring(3);
          return HttpUrl.get(urlString);
        }
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jul 06 19:30:55 UTC 2018
    - 4.4K bytes
    - Viewed (0)
  6. compat/maven-artifact/src/main/java/org/apache/maven/artifact/repository/ArtifactRepositoryPolicy.java

                if (cal.getTime().after(lastModified)) {
                    checkForUpdates = true;
                }
            } else if (updatePolicy.startsWith(UPDATE_POLICY_INTERVAL)) {
                String s = updatePolicy.substring(UPDATE_POLICY_INTERVAL.length() + 1);
                int minutes = Integer.parseInt(s);
                Calendar cal = Calendar.getInstance();
                cal.add(Calendar.MINUTE, -minutes);
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/CacheCorruptionTest.kt

      }
    
      @Test
      fun truncatedMetadataEntry() {
        val response =
          testCorruptingCache {
            corruptMetadata {
              // truncate metadata to 1/4 of length
              it.substring(0, it.length / 4)
            }
          }
    
        assertThat(response.body.string()).isEqualTo("ABC.2") // not cached
        assertThat(cache.requestCount()).isEqualTo(2)
        assertThat(cache.networkCount()).isEqualTo(2)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/netbios/Lmhosts.java

                if (line.length() == 0) {
                    continue;
                }
                if (line.charAt(0) == '#') {
                    if (line.startsWith("#INCLUDE ")) {
                        line = line.substring(line.indexOf('\\'));
                        final String url = "smb1:" + line.replace('\\', '/');
    
                        if (alt > 0) {
                            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/api/admin/backup/ApiAdminBackupAction.java

                }
                if (!id.endsWith(NDJSON_EXTENTION)) {
                    final String index;
                    final String filename;
                    if (id.endsWith(".bulk")) {
                        index = id.substring(0, id.length() - 5);
                        filename = id;
                    } else {
                        index = id;
                        filename = id + ".bulk";
                    }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/dcerpc/DcerpcPipeHandle.java

        private String makePipeUrl() {
            final DcerpcBinding binding = getBinding();
            StringBuilder url =
                    new StringBuilder("smb://").append(binding.getServer()).append("/IPC$/").append(binding.getEndpoint().substring(6));
    
            String params = "";
            final String server = (String) binding.getOption("server");
            if (server != null) {
                params += "&server=" + server;
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.6K bytes
    - Viewed (0)
Back to top