Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,064 for Estr (0.23 sec)

  1. src/unicode/utf8/example_test.go

    	// 界 3
    	// 世 3
    	//   1
    	// , 1
    	// o 1
    	// l 1
    	// l 1
    	// e 1
    	// H 1
    }
    
    func ExampleDecodeLastRuneInString() {
    	str := "Hello, 世界"
    
    	for len(str) > 0 {
    		r, size := utf8.DecodeLastRuneInString(str)
    		fmt.Printf("%c %v\n", r, size)
    
    		str = str[:len(str)-size]
    	}
    	// Output:
    	// 界 3
    	// 世 3
    	//   1
    	// , 1
    	// o 1
    	// l 1
    	// l 1
    	// e 1
    	// H 1
    
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 05 21:29:18 UTC 2021
    - 3.6K bytes
    - Viewed (0)
  2. docs_src/security/tutorial004_an.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)
  3. test/slice3err.go

    	_ = slice[:j:k]
    	_ = slice[i:j:k]
    	
    	_ = str[:]
    	_ = str[i:]
    	_ = str[:j]
    	_ = str[i:j]
    	_ = str[::] // ERROR "3-index slice of string" "middle index required in 3-index slice" "final index required in 3-index slice"
    	_ = str[i::] // ERROR "3-index slice of string" "middle index required in 3-index slice" "final index required in 3-index slice"
    	_ = str[:j:] // ERROR "3-index slice of string" "final index required in 3-index slice"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 14 21:28:48 UTC 2020
    - 5.2K bytes
    - Viewed (0)
  4. docs_src/body_nested_models/tutorial007_py39.py

    app = FastAPI()
    
    
    class Image(BaseModel):
        url: HttpUrl
        name: str
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
        tags: set[str] = set()
        images: Union[list[Image], None] = None
    
    
    class Offer(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        items: list[Item]
    
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 570 bytes
    - Viewed (0)
  5. docs_src/security/tutorial005.py

    class Token(BaseModel):
        access_token: str
        token_type: str
    
    
    class TokenData(BaseModel):
        username: Union[str, None] = None
        scopes: List[str] = []
    
    
    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
    - 5.2K bytes
    - Viewed (0)
  6. docs_src/security/tutorial005_an.py

    class Token(BaseModel):
        access_token: str
        token_type: str
    
    
    class TokenData(BaseModel):
        username: Union[str, None] = None
        scopes: List[str] = []
    
    
    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
    - 5.3K bytes
    - Viewed (0)
  7. docs_src/extra_models/tutorial001.py

    app = FastAPI()
    
    
    class UserIn(BaseModel):
        username: str
        password: str
        email: EmailStr
        full_name: Union[str, None] = None
    
    
    class UserOut(BaseModel):
        username: str
        email: EmailStr
        full_name: Union[str, None] = None
    
    
    class UserInDB(BaseModel):
        username: str
        hashed_password: str
        email: EmailStr
        full_name: Union[str, None] = None
    
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 943 bytes
    - Viewed (0)
  8. src/go/doc/testdata/example.go

    		out := <-outC
    
    		// report any errors
    		tstr := fmt.Sprintf("(%.2f seconds)", dt.Seconds())
    		if g, e := strings.TrimSpace(out), strings.TrimSpace(eg.Output); g != e {
    			fmt.Printf("--- FAIL: %s %s\ngot:\n%s\nwant:\n%s\n",
    				eg.Name, tstr, g, e)
    			ok = false
    		} else if *chatty {
    			fmt.Printf("--- PASS: %s %s\n", eg.Name, tstr)
    		}
    	}
    
    	return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  9. src/crypto/internal/boring/bcache/cache_test.go

    			break
    		}
    	}
    
    	// Check results.
    	for k, v := range m {
    		if cv := c.Get(k); cv != v {
    			t.Fatalf("c.Get(%v) = %v, want %v", str(k), str(cv), str(v))
    		}
    	}
    
    	c.Clear()
    	for k := range m {
    		if cv := c.Get(k); cv != nil {
    			t.Fatalf("after GC, c.Get(%v) = %v, want nil", str(k), str(cv))
    		}
    	}
    
    	// Check that registered cache is cleared at GC.
    	c = &registeredCache
    	for k, v := range m {
    		c.Put(k, v)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 18 00:30:19 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  10. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/TextUtil.java

         * is absent from Java 6.
         */
        public static String capitalize(String str) {
            if (str == null || str.length() == 0) {
                return str;
            }
            return Character.toTitleCase(str.charAt(0)) + str.substring(1);
        }
    
        /**
         * Escapes the toString() representation of {@code obj} for use in a literal string.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 12.8K bytes
    - Viewed (0)
Back to top