Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 52 for Parts (0.02 seconds)

  1. src/main/java/org/codelibs/core/misc/LocaleUtil.java

            final String[] parts = localeStr.split("_", 3);
    
            switch (parts.length) {
            case 1:
                return new Locale(parts[0]);
            case 2:
                return new Locale(parts[0], parts[1]);
            case 3:
                return new Locale(parts[0], parts[1], parts[2]);
            default:
                return LocaleUtil.getDefault();
            }
        }
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Feb 12 12:10:45 GMT 2026
    - 2.3K bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/MultipartReader.kt

    import okio.Source
    import okio.Timeout
    import okio.buffer
    
    /**
     * Reads a stream of [RFC 2046][rfc_2046] multipart body parts. Callers read parts one-at-a-time
     * until [nextPart] returns null. After calling [nextPart] any preceding parts should not be read.
     *
     * Typical use loops over the parts in sequence:
     *
     * ```kotlin
     * val response: Response = call.execute()
     * val multipartReader = MultipartReader(response.body!!)
     *
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/net/InternetDomainName.java

       */
      private InternetDomainName(String name, ImmutableList<String> parts) {
        checkArgument(!parts.isEmpty(), "Cannot create an InternetDomainName with zero parts.");
        this.name = name;
        this.parts = parts;
      }
    
      /**
       * The index in the {@link #parts()} list at which the public suffix begins. For example, for the
       * domain name {@code myblog.blogspot.co.uk}, the value would be 1 (the index of the {@code
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 21:21:59 GMT 2026
    - 26.2K bytes
    - Click Count (0)
  4. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/ReleasedVersionsHelper.kt

    import org.gradle.util.GradleVersion
    import java.io.File
    
    
    fun bumpPatchVersion(version: String): String {
        val parts = version.split(".")
        require(parts.size == 3 && parts.all { it.toIntOrNull() != null }) {
            "Version '$version' is not a valid x.y.z version."
        }
        return "${parts[0]}.${parts[1]}.${parts[2].toInt() + 1}"
    }
    
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 23 14:47:12 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/net/HttpHeadersTest.java

          return specialCases.get(constantName);
        }
        List<String> parts = new ArrayList<>();
        for (String part : Splitter.on('_').split(constantName)) {
          if (!uppercaseAcronyms.contains(part)) {
            part = part.charAt(0) + Ascii.toLowerCase(part.substring(1));
          }
          parts.add(part);
        }
        return Joiner.on('-').join(parts);
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 20:10:09 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  6. scripts/docs.py

                # (a subdirectory under docs_src/<topic>/)
                parts = py_file.relative_to(docs_src_path).parts
                if len(parts) > 2:
                    # File is inside a sub-package like docs_src/topic/app_xxx/...
                    package_root = docs_src_path / parts[0] / parts[1]
                    used_package_dirs.add(package_root)
        removed = 0
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 17:46:10 GMT 2026
    - 25.4K bytes
    - Click Count (0)
  7. src/cmd/asm/internal/asm/endtoend_test.go

    		// The general form of a test input line is:
    		//	// comment
    		//	INST args [// printed form] [// hex encoding]
    		parts := strings.Split(line, "//")
    		printed := strings.TrimSpace(parts[0])
    		if printed == "" || strings.HasSuffix(printed, ":") { // empty or label
    			continue
    		}
    		seq++
    
    		var hexes string
    		switch len(parts) {
    		default:
    			t.Errorf("%s:%d: unable to understand comments: %s", input, lineno, line)
    		case 1:
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Mar 20 17:02:17 GMT 2026
    - 12.6K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/base/JoinerTest.java

      private static void checkResult(
          Joiner joiner, Iterable<? extends @Nullable Integer> parts, String expected) {
        assertThat(joiner.join(parts)).isEqualTo(expected);
        assertThat(joiner.join(parts.iterator())).isEqualTo(expected);
    
        StringBuilder sb1FromIterable = new StringBuilder().append('x');
        joiner.appendTo(sb1FromIterable, parts);
        assertThat(sb1FromIterable.toString()).isEqualTo("x" + expected);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  9. tests/helper_test.go

    		return false
    	}
    
    	base := strings.SplitN(strings.TrimSpace(version), "-", 2)[0]
    	parts := strings.Split(base, ".")
    	if len(parts) < 2 {
    		return false
    	}
    
    	currentMajor, err := strconv.Atoi(parts[0])
    	if err != nil {
    		return false
    	}
    
    	currentMinor, err := strconv.Atoi(parts[1])
    	if err != nil {
    		return false
    	}
    
    	if currentMajor != major {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:27:38 GMT 2026
    - 8.6K bytes
    - Click Count (0)
  10. scripts/translate.py

                    "- If the original English content has added parts, also add these parts to the translation.",
                    "- If the original English content has removed parts, also remove them from the translation, unless you were instructed earlier to not do that in specific cases.",
                    "- If parts of the original English content have changed, also change those parts in the translation.",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:37:41 GMT 2026
    - 15.8K bytes
    - Click Count (0)
Back to Top