Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 681 - 690 of 1,083 for str (0.06 seconds)

  1. src/bytes/buffer_test.go

    func check(t *testing.T, testname string, buf *Buffer, s string) {
    	bytes := buf.Bytes()
    	str := buf.String()
    	if buf.Len() != len(bytes) {
    		t.Errorf("%s: buf.Len() == %d, len(buf.Bytes()) == %d", testname, buf.Len(), len(bytes))
    	}
    
    	if buf.Len() != len(str) {
    		t.Errorf("%s: buf.Len() == %d, len(buf.String()) == %d", testname, buf.Len(), len(str))
    	}
    
    	if buf.Len() != len(s) {
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Nov 14 19:01:17 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb1/smb1/SmbFile.java

                    sb.append('/');
                }
    
                str = sb.toString();
    
                int i = str.length() - 2;
                while (str.charAt(i) != '/') {
                    i--;
                }
    
                return str.substring(0, i + 1);
            }
    
            return "smb1://";
        }
    
        /**
         * Returns the full uncanonicalized URL of this SMB resource. An
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 112.2K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/dict/mapping/CharMappingItemTest.java

            item.setNewOutput("newOutput");
    
            String str = item.toString();
            assertTrue(str.contains("id=1"));
            assertTrue(str.contains("inputs=[a, b]"));
            assertTrue(str.contains("output=output"));
            assertTrue(str.contains("newInputs=[x, y]"));
            assertTrue(str.contains("newOutput=newOutput"));
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 16K bytes
    - Click Count (0)
  4. docs/zh-hant/docs/tutorial/response-model.md

    你的回應模型可能有預設值,例如:
    
    {* ../../docs_src/response_model/tutorial004_py310.py hl[9,11:12] *}
    
    * `description: Union[str, None] = None`(或在 Python 3.10 中的 `str | None = None`)預設為 `None`。
    * `tax: float = 10.5` 預設為 `10.5`。
    * `tags: List[str] = []` 預設為空的 list:`[]`。
    
    但如果這些值其實沒有被儲存,你可能想要在結果中省略它們。
    
    例如,如果你在 NoSQL 資料庫中有包含許多選擇性屬性的模型,但你不想傳送充滿預設值的冗長 JSON 回應。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 14.5K bytes
    - Click Count (0)
  5. docs/zh-hant/docs/tutorial/body-multiple-params.md

    }
    ```
    
    同樣地,它會進行型別轉換、驗證、文件化等。
    
    ## 多個 Body 參數與 Query { #multiple-body-params-and-query }
    
    當然,你也可以在任何 Body 參數之外,視需要宣告額外的查詢參數。
    
    由於預設情況下,單一值會被解讀為查詢參數,你不必明確使用 `Query`,直接這樣寫即可:
    
    ```Python
    q: str | None = None
    ```
    
    例如:
    
    {* ../../docs_src/body_multiple_params/tutorial004_an_py310.py hl[28] *}
    
    /// info | 注意
    
    `Body` 也具有與 `Query`、`Path` 以及之後你會看到的其他工具相同的額外驗證與中繼資料參數。
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:15:26 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  6. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

      }
    
      static class WithStreamParameter {
        private final List<?> list;
    
        // This should be ignored.
        public WithStreamParameter(Stream<?> s, String str) {
          this.list = s.collect(Collectors.toList());
          checkNotNull(str);
        }
      }
    
      static class UsesReferentialEquality {
        private final ReferentialEquality s;
    
        public UsesReferentialEquality(ReferentialEquality s) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 36.3K bytes
    - Click Count (0)
  7. docs/en/docs/environment-variables.md

    That means that **any value** read in Python from an environment variable **will be a `str`**, and any conversion to a different type or any validation has to be done in code.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 7.9K bytes
    - Click Count (0)
  8. docs/en/docs/release-notes.md

    ```Python
    from fastapi import FastAPI
    from pydantic import BaseModel as BaseModelV2
    from pydantic.v1 import BaseModel
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
    
    
    class ItemV2(BaseModelV2):
        title: str
        summary: str | None = None
    
    
    app = FastAPI()
    
    
    @app.post("/items/", response_model=ItemV2)
    def create_item(item: Item):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Apr 03 12:07:04 GMT 2026
    - 631K bytes
    - Click Count (0)
  9. docs/en/mkdocs.yml

      - Tutorial - User Guide:
        - tutorial/index.md
        - tutorial/first-steps.md
        - tutorial/path-params.md
        - tutorial/query-params.md
        - tutorial/body.md
        - tutorial/query-params-str-validations.md
        - tutorial/path-params-numeric-validations.md
        - tutorial/query-param-models.md
        - tutorial/body-multiple-params.md
        - tutorial/body-fields.md
        - tutorial/body-nested-models.md
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Apr 01 16:16:24 GMT 2026
    - 9.9K bytes
    - Click Count (0)
  10. cmd/object-api-utils.go

    // Comparison is case insensitive. Explicit short-circuit if
    // the list contains the wildcard "*".
    func hasStringSuffixInSlice(str string, list []string) bool {
    	str = strings.ToLower(str)
    	for _, v := range list {
    		if v == "*" {
    			return true
    		}
    
    		if strings.HasSuffix(str, strings.ToLower(v)) {
    			return true
    		}
    	}
    	return false
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Jun 25 15:08:54 GMT 2025
    - 37.3K bytes
    - Click Count (0)
Back to Top