Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,387 for sltr (0.05 sec)

  1. src/strings/replace_test.go

    func BenchmarkByteByteNoMatch(b *testing.B) {
    	str := Repeat("A", 100) + Repeat("B", 100)
    	for i := 0; i < b.N; i++ {
    		capitalLetters.Replace(str)
    	}
    }
    
    func BenchmarkByteByteMatch(b *testing.B) {
    	str := Repeat("a", 100) + Repeat("b", 100)
    	for i := 0; i < b.N; i++ {
    		capitalLetters.Replace(str)
    	}
    }
    
    func BenchmarkByteStringMatch(b *testing.B) {
    	str := "<" + Repeat("a", 99) + Repeat("b", 99) + ">"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 22:53:05 UTC 2017
    - 14.1K bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/metadata.md

    | Parameter | Typ | Beschreibung |
    |------------|------|-------------|
    | `title` | `str` | Der Titel der API. |
    | `summary` | `str` | Eine kurze Zusammenfassung der API. <small>Verfügbar seit OpenAPI 3.1.0, FastAPI 0.99.0.</small> |
    | `description` | `str` | Eine kurze Beschreibung der API. Kann Markdown verwenden. |
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 20:25:38 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. docs_src/dependencies/tutorial005_py310.py

    app = FastAPI()
    
    
    def query_extractor(q: str | None = None):
        return q
    
    
    def query_or_cookie_extractor(
        q: str = Depends(query_extractor), last_query: str | None = Cookie(default=None)
    ):
        if not q:
            return last_query
        return q
    
    
    @app.get("/items/")
    async def read_query(query_or_default: str = Depends(query_or_cookie_extractor)):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 443 bytes
    - Viewed (0)
  4. docs_src/body_nested_models/tutorial007_py310.py

    app = FastAPI()
    
    
    class Image(BaseModel):
        url: HttpUrl
        name: str
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
        tags: set[str] = set()
        images: list[Image] | None = None
    
    
    class Offer(BaseModel):
        name: str
        description: str | None = None
        price: float
        items: list[Item]
    
    
    @app.post("/offers/")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 520 bytes
    - Viewed (0)
  5. docs_src/security/tutorial004_an_py39.py

    }
    
    
    class Token(BaseModel):
        access_token: str
        token_type: str
    
    
    class TokenData(BaseModel):
        username: Union[str, None] = None
    
    
    class User(BaseModel):
        username: str
        email: Union[str, None] = None
        full_name: Union[str, None] = None
        disabled: Union[bool, None] = None
    
    
    class UserInDB(User):
        hashed_password: str
    
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. docs_src/security/tutorial003_an_py310.py

    
    def fake_hash_password(password: str):
        return "fakehashed" + password
    
    
    oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")
    
    
    class User(BaseModel):
        username: str
        email: str | None = None
        full_name: str | None = None
        disabled: bool | None = None
    
    
    class UserInDB(User):
        hashed_password: str
    
    
    def get_user(db, username: str):
        if username in db:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Mar 26 16:56:53 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/lang/StringUtil.java

        /**
         * ブランクかどうか返します。
         *
         * @param str
         *            文字列
         * @return ブランクなら{@literal true}
         */
        public static boolean isBlank(final String str) {
            if (str == null || str.length() == 0) {
                return true;
            }
            for (int i = 0; i < str.length(); i++) {
                if (!Character.isWhitespace(str.charAt(i))) {
                    return false;
                }
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/TextUtil.java

         */
        public static String normaliseLineSeparators(String str) {
            return str == null ? null : convertLineSeparators(str, "\n");
        }
    
        /**
         * Converts all line separators in the specified string to the specified line separator.
         */
        public static String convertLineSeparators(String str, String sep) {
            return str == null ? null : str.replaceAll("\r\n|\r|\n", sep);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  9. platforms/core-runtime/logging/src/main/java/org/gradle/util/TextUtil.java

         */
        @Nullable
        public static String normaliseLineSeparators(@Nullable String str) {
            logDeprecation();
            return normaliseLineSeparatorsInternal(str);
        }
    
        private static String normaliseLineSeparatorsInternal(@Nullable String str) {
            return str == null ? null : convertLineSeparatorsToUnixInternal(str);
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  10. docs_src/dependencies/tutorial005.py

    app = FastAPI()
    
    
    def query_extractor(q: Union[str, None] = None):
        return q
    
    
    def query_or_cookie_extractor(
        q: str = Depends(query_extractor),
        last_query: Union[str, None] = Cookie(default=None),
    ):
        if not q:
            return last_query
        return q
    
    
    @app.get("/items/")
    async def read_query(query_or_default: str = Depends(query_or_cookie_extractor)):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 486 bytes
    - Viewed (0)
Back to top