Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for 68656C6C6F (0.06 sec)

  1. okhttp/src/test/java/okhttp3/ResponseBodyJvmTest.kt

      }
    
      @Test
      fun stringLooksLikeBomButTooShort() {
        val body = body("000048")
        assertThat(body.string()).isEqualTo("\u0000\u0000H")
      }
    
      @Test
      fun stringDefaultsToUtf8() {
        val body = body("68656c6c6f")
        assertThat(body.string()).isEqualTo("hello")
      }
    
      @Test
      fun stringExplicitCharset() {
        val body = body("00000068000000650000006c0000006c0000006f", "utf-32be")
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 13K bytes
    - Viewed (0)
  2. src/fmt/fmt_test.go

    	{"%x", byteStringerSlice, "68656c6c6f"},
    	{"%X", byteStringerSlice, "68656C6C6F"},
    	{"%#v", byteStringerSlice, "[]fmt_test.byteStringer{0x68, 0x65, 0x6c, 0x6c, 0x6f}"},
    
    	// And the same for Formatter.
    	{"%v", byteFormatterSlice, "[X X X X X]"},
    	{"%s", byteFormatterSlice, "hello"},
    	{"%q", byteFormatterSlice, "\"hello\""},
    	{"%x", byteFormatterSlice, "68656c6c6f"},
    	{"%X", byteFormatterSlice, "68656C6C6F"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
Back to top