Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for Strip (0.28 sec)

  1. src/go/doc/example.go

    		text := last.Text()
    		if loc := outputPrefix.FindStringSubmatchIndex(text); loc != nil {
    			if loc[2] != -1 {
    				unordered = true
    			}
    			text = text[loc[1]:]
    			// Strip zero or more spaces followed by \n or a single space.
    			text = strings.TrimLeft(text, " ")
    			if len(text) > 0 && text[0] == '\n' {
    				text = text[1:]
    			}
    			return text, unordered, true
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  2. src/net/http/cookiejar/jar.go

    // host name.
    func canonicalHost(host string) (string, error) {
    	var err error
    	if hasPort(host) {
    		host, _, err = net.SplitHostPort(host)
    		if err != nil {
    			return "", err
    		}
    	}
    	// Strip trailing dot from fully qualified domain names.
    	host = strings.TrimSuffix(host, ".")
    	encoded, err := toASCII(host)
    	if err != nil {
    		return "", err
    	}
    	// We know this is ascii, no need to check.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 15K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

      }
    }
    
    /** Returns a [Locale.US] formatted [String]. */
    internal fun format(
      format: String,
      vararg args: Any,
    ): String {
      return String.format(Locale.US, format, *args)
    }
    
    /**
     * will also strip BOM from the source
     */
    @Throws(IOException::class)
    internal fun BufferedSource.readBomAsCharset(default: Charset): Charset {
      return when (select(UNICODE_BOMS)) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/telemetry/internal/upload/reports.go

    	var latest string
    	for name := range uploaded {
    		if strings.HasSuffix(name, ".json") {
    			if name > latest {
    				latest = name
    			}
    		}
    	}
    	if latest == "" {
    		return ""
    	}
    	// strip off the .json
    	return latest[:len(latest)-len(".json")]
    }
    
    // notNeeded returns true if the report for date has already been created
    func notNeeded(date string, todo work) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 14:52:56 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  5. cluster/images/etcd/Makefile

    		etcd_release_tmp_dir=$(shell mktemp -d); \
    		curl -sSL --retry 5 https://github.com/etcd-io/etcd/releases/download/v$$version/etcd-v$$version-linux-amd64.tar.gz | tar -xz -C $$etcd_release_tmp_dir --strip-components=1; \
    		$(BIN_INSTALL) $$etcd_release_tmp_dir/etcd $$etcd_release_tmp_dir/etcdctl $(TEMP_DIR)/; \
    		$(BIN_INSTALL) $(TEMP_DIR)/etcd $(TEMP_DIR)/etcd-$$version; \
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 16:13:15 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  6. src/crypto/rsa/pss.go

    	// of the modulus. The spec would have us wire emLen into the encoding
    	// function, but we'd rather always encode to the size of the modulus and
    	// then strip leading zeroes if necessary. This only happens for weird
    	// modulus sizes anyway.
    	for len(em) > emLen && len(em) > 0 {
    		if em[0] != 0 {
    			return ErrVerification
    		}
    		em = em[1:]
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 11K bytes
    - Viewed (0)
  7. src/crypto/tls/boring_test.go

    						}
    						if reachableFIPS[c.org] && c.fipsOK {
    							shouldVerifyFIPS = true
    						}
    					}
    				}
    				addRoot(r&1, R1)
    				addRoot(r&2, R2)
    				rootName = rootName[1:] // strip leading comma
    				testServerCert(t, listName+"->"+rootName[1:], pool, leaf.key, list, shouldVerify)
    				testClientCert(t, listName+"->"+rootName[1:]+"(client cert)", pool, leaf.key, list, shouldVerify)
    				fipstls.Force()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:45:37 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  8. src/debug/buildinfo/buildinfo.go

    		mod = readString(x, ptrSize, readPtr, readPtr(data[16+ptrSize:]))
    	}
    	if vers == "" {
    		return "", "", errNotGoExe
    	}
    	if len(mod) >= 33 && mod[len(mod)-17] == '\n' {
    		// Strip module framing: sentinel strings delimiting the module info.
    		// These are cmd/go/internal/modload.infoStart and infoEnd.
    		mod = mod[16 : len(mod)-16]
    	} else {
    		mod = ""
    	}
    
    	return vers, mod, nil
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  9. src/log/slog/value.go

    	if v.Equal(t) {
    		// UnixNano correctly represents the time, so use a zero-alloc representation.
    		return Value{num: uint64(nsec), any: timeLocation(v.Location())}
    	}
    	// Fall back to the general form.
    	// Strip the monotonic portion to match the other representation.
    	return Value{any: timeTime(v.Round(0))}
    }
    
    // DurationValue returns a [Value] for a [time.Duration].
    func DurationValue(v time.Duration) Value {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  10. src/net/http/cookie.go

    // parsing was successful, and a boolean indicating whether the parsed
    // value was enclosed in double quotes.
    func parseCookieValue(raw string, allowDoubleQuote bool) (value string, quoted, ok bool) {
    	// Strip the quotes, if present.
    	if allowDoubleQuote && len(raw) > 1 && raw[0] == '"' && raw[len(raw)-1] == '"' {
    		raw = raw[1 : len(raw)-1]
    		quoted = true
    	}
    	for i := 0; i < len(raw); i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:33:05 UTC 2024
    - 13.9K bytes
    - Viewed (0)
Back to top