Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 732 for str_ (0.05 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/dump_graph_test.cc

    }
    
    // WritableFile that simply concats into string.
    class StringWritableFile : public WritableFile {
     public:
      explicit StringWritableFile(string* str) : str_(*str) {}
    
      Status Append(StringPiece data) override {
        absl::StrAppend(&str_, data);
        return absl::OkStatus();
      }
    
      Status Close() override { return absl::OkStatus(); }
    
      Status Flush() override { return absl::OkStatus(); }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:47:51 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. src/slices/sort_test.go

    		{[]string{}, "", 0, false},
    
    		{str1, "foo", 0, true},
    		{str1, "bar", 0, false},
    		{str1, "zx", 1, false},
    
    		{str2, "aa", 0, false},
    		{str2, "ab", 0, true},
    		{str2, "ad", 1, false},
    		{str2, "ca", 1, true},
    		{str2, "ra", 2, false},
    
    		{str3, "bb", 0, false},
    		{str3, "mo", 0, true},
    		{str3, "nb", 1, false},
    		{str3, "qo", 1, true},
    		{str3, "tr", 2, false},
    		{str3, "vo", 2, true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 19:20:55 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. src/sort/search_test.go

    		{[]string{}, "", 0, false},
    
    		{str1, "foo", 0, true},
    		{str1, "bar", 0, false},
    		{str1, "zx", 1, false},
    
    		{str2, "aa", 0, false},
    		{str2, "ab", 0, true},
    		{str2, "ad", 1, false},
    		{str2, "ca", 1, true},
    		{str2, "ra", 2, false},
    
    		{str3, "bb", 0, false},
    		{str3, "mo", 0, true},
    		{str3, "nb", 1, false},
    		{str3, "qo", 1, true},
    		{str3, "tr", 2, false},
    		{str3, "vo", 2, true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 07 14:42:13 UTC 2022
    - 6.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/reflectdata/alg_test.go

    		a string
    		b int
    	}
    	const size = 1024
    	var (
    		str1 = "foobar"
    		str2 = "foobarz"
    
    		a [size]T2
    		c [size]T2
    	)
    
    	for i := 0; i < size; i++ {
    		a[i].a = str1
    		c[i].a = str1
    	}
    	c[len(c)-1].a = str2
    
    	b.ResetTimer()
    	for j := 0; j < b.N; j++ {
    		_ = a == c
    	}
    }
    
    const size = 16
    
    type T1 struct {
    	a [size]byte
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 21:55:14 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. src/cmd/internal/obj/arm64/doc.go

    Special Cases.
    
    (1) Argument order is the same as in the GNU ARM64 syntax: cbz, cbnz and some store instructions,
    such as str, stur, strb, sturb, strh, sturh stlr, stlrb. stlrh, st1.
    
    Examples:
    
    	MOVD R29, 384(R19)    <=>    str x29, [x19,#384]
    	MOVB.P R30, 30(R4)    <=>    strb w30, [x4],#30
    	STLRH R21, (R19)      <=>    stlrh w21, [x19]
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 00:21:42 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  6. 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)
  7. src/cmd/go/internal/str/str.go

    // Copyright 2017 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package str provides string manipulation utilities.
    package str
    
    import (
    	"fmt"
    	"strings"
    	"unicode"
    	"unicode/utf8"
    )
    
    // StringList flattens its arguments into a single []string.
    // Each argument in args must have type string or []string.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 23 20:08:07 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. docs/ko/docs/tutorial/query-params-str-validations.md

    ```Python hl_lines="9"
    {!../../../docs_src/query_params_str_validations/tutorial001.py!}
    ```
    
    쿼리 매개변수 `q`는 `Optional[str]` 자료형입니다. 즉, `str` 자료형이지만 `None` 역시 될 수 있음을 뜻하고, 실제로 기본값은 `None`이기 때문에 FastAPI는 이 매개변수가 필수가 아니라는 것을 압니다.
    
    !!! note "참고"
        FastAPI는 `q`의 기본값이 `= None`이기 때문에 필수가 아님을 압니다.
    
        `Optional[str]`에 있는 `Optional`은 FastAPI가 사용하는게 아니지만, 편집기에게 더 나은 지원과 오류 탐지를 제공하게 해줍니다.
    
    ## 추가 검증
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Feb 11 13:48:31 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  9. 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)
  10. tools/istio-iptables/pkg/config/types.go

    import (
    	"strings"
    )
    
    func Split(s string) []string {
    	if s == "" {
    		return nil
    	}
    	return filterEmpty(strings.Split(s, ","))
    }
    
    func filterEmpty(strs []string) []string {
    	filtered := make([]string, 0, len(strs))
    	for _, s := range strs {
    		if s == "" {
    			continue
    		}
    		filtered = append(filtered, s)
    	}
    	return filtered
    }
    
    type InterceptFilter struct {
    	Values []string
    	Except bool
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 25 15:43:38 UTC 2022
    - 1.4K bytes
    - Viewed (0)
Back to top