Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for xstr (0.04 sec)

  1. src/cmd/vendor/golang.org/x/mod/sumdb/tlog/tile.go

    const pathBase = 1000
    
    // Path returns a tile coordinate path describing t.
    func (t Tile) Path() string {
    	n := t.N
    	nStr := fmt.Sprintf("%03d", n%pathBase)
    	for n >= pathBase {
    		n /= pathBase
    		nStr = fmt.Sprintf("x%03d/%s", n%pathBase, nStr)
    	}
    	pStr := ""
    	if t.W != 1<<uint(t.H) {
    		pStr = fmt.Sprintf(".p/%d", t.W)
    	}
    	var L string
    	if t.L == -1 {
    		L = "data"
    	} else {
    		L = fmt.Sprintf("%d", t.L)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13K bytes
    - Viewed (0)
  2. operator/pkg/validate/common.go

    // get validation function for specified path
    func getValidationFuncForPath(validations map[string]ValidatorFunc, path util.Path) (ValidatorFunc, bool) {
    	pstr := path.String()
    	// fast match
    	if !strings.Contains(pstr, "[") && !strings.Contains(pstr, "]") {
    		vf, ok := validations[pstr]
    		return vf, ok
    	}
    	for p, vf := range validations {
    		ps := strings.Split(p, ".")
    		if len(ps) != len(path) {
    			continue
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Aug 10 15:35:03 UTC 2023
    - 11K bytes
    - Viewed (0)
  3. pkg/wasm/cache.go

    		if d, err := name.NewDigest(key.downloadURL[len(ociURLPrefix):]); err == nil {
    			// If there is no checksum and the digest is suffixed in URL, use the digest.
    			dstr := d.DigestStr()
    			if strings.HasPrefix(dstr, sha256SchemePrefix) {
    				key.checksum = dstr[len(sha256SchemePrefix):]
    			}
    			// For other digest scheme, give up to use cache.
    		}
    	}
    
    	if len(key.checksum) == 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. operator/pkg/translate/translate_value.go

    		if err != nil {
    			return err
    		}
    		if !found {
    			scope.Debugf("path %s not found in helm Value.yaml tree, skip mapping.", inPath)
    			continue
    		}
    
    		if mstr, ok := m.(string); ok && mstr == "" {
    			scope.Debugf("path %s is empty string, skip mapping.", inPath)
    			continue
    		}
    		// Zero int values are due to proto3 compiling to scalars rather than ptrs. Skip these because values of 0 are
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 08 03:52:24 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  5. src/go/doc/testdata/testing.go

    	after()
    }
    
    func (t *T) report() {
    	tstr := fmt.Sprintf("(%.2f seconds)", t.duration.Seconds())
    	format := "--- %s: %s %s\n%s"
    	if t.failed {
    		fmt.Printf(format, "FAIL", t.name, tstr, t.output)
    	} else if *chatty {
    		fmt.Printf(format, "PASS", t.name, tstr, t.output)
    	}
    }
    
    func RunTests(matchString func(pat, str string) (bool, error), tests []InternalTest) (ok bool) {
    	ok = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/query-params-str-validations.md

        ```
    
    The query parameter `q` is of type `Union[str, None]` (or `str | None` in Python 3.10), that means that it's of type `str` but could also be `None`, and indeed, the default value is `None`, so FastAPI will know it's not required.
    
    !!! note
        FastAPI will know that the value of `q` is not required because of the default value `= None`.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri May 31 02:38:05 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SIDCacheImpl.java

                case jcifs.SID.SID_TYPE_DOMAIN:
                case jcifs.SID.SID_TYPE_ALIAS:
                case jcifs.SID.SID_TYPE_WKN_GRP:
                    rpc.unicode_string ustr = rpc.domains.domains[ resp.sid_index ].name;
                    out.domainName = ( new UnicodeString(ustr, false) ).toString();
                    break;
                }
    
                UnicodeString ucstr = new UnicodeString(resp.name, false);
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 12.6K bytes
    - Viewed (0)
  8. pkg/controller/job/indexed_job_utils.go

    		return parseInt32(logger, value)
    	}
    	return 0
    }
    
    func parseInt32(logger klog.Logger, vStr string) int32 {
    	if vInt, err := strconv.Atoi(vStr); err != nil {
    		logger.Error(err, "Failed to parse the value", "value", vStr)
    		return 0
    	} else if vInt < 0 || vInt > math.MaxInt32 {
    		logger.Info("The value is invalid", "value", vInt)
    		return 0
    	} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 00:44:53 UTC 2023
    - 17.5K bytes
    - Viewed (0)
  9. docs/fr/docs/tutorial/query-params-str-validations.md

    ```
    
    Le paramètre de requête `q` a pour type `Union[str, None]` (ou `str | None` en Python 3.10), signifiant qu'il est de type `str` mais pourrait aussi être égal à `None`, et bien sûr, la valeur par défaut est `None`, donc **FastAPI** saura qu'il n'est pas requis.
    
    !!! note
        **FastAPI** saura que la valeur de `q` n'est pas requise grâce à la valeur par défaut `= None`.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Jul 27 18:53:21 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  10. docs/ja/docs/tutorial/query-params-str-validations.md

    以下のアプリケーションを例にしてみましょう:
    
    ```Python hl_lines="9"
    {!../../../docs_src/query_params_str_validations/tutorial001.py!}
    ```
    
    クエリパラメータ `q` は `Optional[str]` 型で、`None` を許容する `str` 型を意味しており、デフォルトは `None` です。そのため、FastAPIはそれが必須ではないと理解します。
    
    !!! note "備考"
        FastAPIは、 `q` はデフォルト値が `=None` であるため、必須ではないと理解します。
    
        `Optional[str]` における `Optional` はFastAPIには利用されませんが、エディターによるより良いサポートとエラー検出を可能にします。
    ## バリデーションの追加
    
    `q`はオプショナルですが、もし値が渡されてきた場合には、**50文字を超えないこと**を強制してみましょう。
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 10.5K bytes
    - Viewed (0)
Back to top