- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 58 for Ascii (0.04 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt
* characters. We want to avoid lower casing special chars like U+212A (Kelvin symbol) because * they can return ASCII characters that match real hostnames. */ private fun String.asciiToLowercase(): String = when { isAscii() -> lowercase(Locale.US) // This is an ASCII string. else -> this }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 7.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/FilesTest.java
assertThat(Files.toString(temp, UTF_8)).isEqualTo(ASCII); } public void testCopyIdenticalFiles() throws IOException { File temp1 = createTempFile(); Files.write(ASCII, temp1, UTF_8); File temp2 = createTempFile(); Files.write(ASCII, temp2, UTF_8); Files.copy(temp1, temp2); assertThat(Files.toString(temp2, UTF_8)).isEqualTo(ASCII); } public void testEqual() throws IOException {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 22.8K bytes - Click Count (0) -
android/guava/src/com/google/common/net/InternetDomainName.java
* lookups. * * <p>During construction, names are normalized in two ways: * * <ol> * <li>ASCII uppercase characters are converted to lowercase. * <li>Unicode dot separators other than the ASCII period ({@code '.'}) are converted to the ASCII * period. * </ol> * * <p>The normalized values will be returned from {@link #toString()} and {@link #parts()}, and will
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 21:21:59 GMT 2026 - 26.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/xml/XmlEscapersTest.java
assertThat(xmlEscaper.escape("<tab>")).isEqualTo("<tab>"); // Test all non-escaped ASCII characters. String s = "!@#$%^*()_+=-/?\\|]}[{,.;:" + "abcdefghijklmnopqrstuvwxyz" + "ABCDEFGHIJKLMNOPQRSTUVWXYZ" + "1234567890"; assertThat(xmlEscaper.escape(s)).isEqualTo(s); // Test ASCII control characters. for (char ch = 0; ch < 0x20; ch++) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 5K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/Ints.java
* (<code>'\u002D'</code>) is recognized as the minus sign. * * <p>Unlike {@link Integer#parseInt(String)}, this method returns {@code null} instead of * throwing an exception if parsing fails. Additionally, this method only accepts ASCII digits, * and returns {@code null} if non-ASCII digits are present in the string. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:45:58 GMT 2026 - 31.3K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt
* * Mappings may overlap. * * ASCII-Only * ========== * * Neither the section index nor the ranges data use bit 0x80 anywhere. That means the data is * strictly ASCII. This is intended to make it efficient to encode this data as a string, and to * index into it as a string. * * The mappings data contains non-ASCII characters. */ internal class IdnaMappingTable internal constructor(
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/AsciiTest.java
assertTrue(str, Ascii.isUpperCase(c)); } } public void testTruncate() { assertThat(Ascii.truncate("foobar", 10, "...")).isEqualTo("foobar"); assertThat(Ascii.truncate("foobar", 5, "...")).isEqualTo("fo..."); assertThat(Ascii.truncate("foobar", 6, "...")).isEqualTo("foobar"); assertThat(Ascii.truncate("foobar", 3, "...")).isEqualTo("...");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 5.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/AsciiTest.java
assertTrue(str, Ascii.isUpperCase(c)); } } public void testTruncate() { assertThat(Ascii.truncate("foobar", 10, "...")).isEqualTo("foobar"); assertThat(Ascii.truncate("foobar", 5, "...")).isEqualTo("fo..."); assertThat(Ascii.truncate("foobar", 6, "...")).isEqualTo("foobar"); assertThat(Ascii.truncate("foobar", 3, "...")).isEqualTo("...");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 5.7K bytes - Click Count (0) -
tests/test_security_http_basic_realm_description.py
assert response.json() == {"detail": "Not authenticated"} def test_security_http_basic_non_basic_credentials(): payload = b64encode(b"johnsecret").decode("ascii") auth_header = f"Basic {payload}" response = client.get("/users/me", headers={"Authorization": auth_header}) assert response.status_code == 401, response.text
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 2.9K bytes - Click Count (0) -
tests/test_security_http_basic_optional.py
assert response.headers["WWW-Authenticate"] == "Basic" assert response.json() == {"detail": "Not authenticated"} def test_security_http_basic_non_basic_credentials(): payload = b64encode(b"johnsecret").decode("ascii") auth_header = f"Basic {payload}" response = client.get("/users/me", headers={"Authorization": auth_header}) assert response.status_code == 401, response.text assert response.headers["WWW-Authenticate"] == "Basic"
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 2.7K bytes - Click Count (0)