Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 192 for trimhex (1.46 sec)

  1. pkg/util/iptables/iptables.go

    		return runner.checkRuleUsingCheck(makeFullArgs(table, chain, args...))
    	}
    	return runner.checkRuleWithoutCheck(table, chain, args...)
    }
    
    var hexnumRE = regexp.MustCompile("0x0+([0-9])")
    
    func trimhex(s string) string {
    	return hexnumRE.ReplaceAllString(s, "0x$1")
    }
    
    // Executes the rule check without using the "-C" flag, instead parsing iptables-save.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 28.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Splitter.java

       *
       * @param trimmer a {@link CharMatcher} that determines whether a character should be removed from
       *     the beginning/end of a subsequence
       * @return a splitter with the desired configuration
       */
      // TODO(kevinb): throw if a trimmer was already specified!
      public Splitter trimResults(CharMatcher trimmer) {
        checkNotNull(trimmer);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 23.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Splitter.java

       *
       * @param trimmer a {@link CharMatcher} that determines whether a character should be removed from
       *     the beginning/end of a subsequence
       * @return a splitter with the desired configuration
       */
      // TODO(kevinb): throw if a trimmer was already specified!
      public Splitter trimResults(CharMatcher trimmer) {
        checkNotNull(trimmer);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  4. src/crypto/dsa/dsa_test.go

    	}
    
    	for i, test := range badKeys {
    		priv := PrivateKey{
    			PublicKey: PublicKey{
    				Parameters: Parameters{
    					P: fromHex(test.p),
    					Q: fromHex(test.q),
    					G: fromHex(test.g),
    				},
    				Y: fromHex(test.y),
    			},
    			X: fromHex(test.x),
    		}
    
    		hashed := []byte("testing")
    		if _, _, err := Sign(rand.Reader, &priv, hashed); err == nil {
    			t.Errorf("#%d: unexpected success", i)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 15 21:04:43 UTC 2019
    - 4.7K bytes
    - Viewed (0)
  5. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/DefaultConfigurableFilePermissions.java

        private static String normalizeUnixPermissions(String permissions) {
            String trimmed = permissions.trim();
            if (trimmed.length() == 4 && trimmed.startsWith("0")) {
                return trimmed.substring(1);
            }
            if (trimmed.length() != 3 && trimmed.length() != 9) {
                throw new IllegalArgumentException("Trimmed length must be either 3 (for numeric notation) or 9 (for symbolic notation).");
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  6. src/hash/marshal_test.go

    	{"fnv32", func() hash.Hash { return fnv.New32() }, fromHex("666e760171ba3d77")},
    	{"fnv32a", func() hash.Hash { return fnv.New32a() }, fromHex("666e76027439f86f")},
    	{"fnv64", func() hash.Hash { return fnv.New64() }, fromHex("666e7603cc64e0e97692c637")},
    	{"fnv64a", func() hash.Hash { return fnv.New64a() }, fromHex("666e7604c522af9b0dede66f")},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 06 07:45:46 UTC 2017
    - 5.4K bytes
    - Viewed (0)
  7. src/crypto/rsa/boring_test.go

    		E: 65537,
    	}
    
    	hash := fromHex("019c5571724fb5d0e47a4260c940e9803ba05a44")
    	paddedHash := fromHex("3021300906052b0e03021a05000414019c5571724fb5d0e47a4260c940e9803ba05a44")
    
    	// signature is one byte shorter than key.N.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 00:16:30 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/GradleVersionSpec.java

            String trimmed = constraint.trim();
            if (trimmed.equals("current")) {
                return new Spec<GradleVersion>() {
                    @Override
                    public boolean isSatisfiedBy(GradleVersion element) {
                        return element.equals(GradleVersion.current());
                    }
                };
            }
            if (trimmed.equals("!current")) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 06:17:20 UTC 2024
    - 6K bytes
    - Viewed (0)
  9. src/cmd/go/internal/str/path.go

    		// (Trim("/tmp/foo", "") should give "/tmp/foo", not "tmp/foo".)
    		return s
    	}
    	if !HasFilePathPrefix(s, prefix) {
    		return s
    	}
    
    	trimmed := s[len(prefix):]
    	if len(trimmed) > 0 && os.IsPathSeparator(trimmed[0]) {
    		if runtime.GOOS == "windows" && prefix == filepath.VolumeName(prefix) && len(prefix) == 2 && prefix[1] == ':' {
    			// Joining a relative path to a bare Windows drive letter produces a path
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 31 20:33:02 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  10. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/events/BooleanQuestionPromptEvent.java

            if (text.isEmpty()) {
                return PromptResult.response(defaultValue);
            }
            String trimmed = text.toLowerCase(Locale.US).trim();
            if (LENIENT_YES_NO_CHOICES.contains(trimmed)) {
                return PromptResult.response(BooleanUtils.toBoolean(trimmed));
            }
            String defaultString = defaultValue ? "yes" : "no";
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:05 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top