Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 79 for UTF8 (0.05 sec)

  1. src/bufio/bufio_test.go

    }
    
    func TestReadWriteRune(t *testing.T) {
    	const NRune = 1000
    	byteBuf := new(bytes.Buffer)
    	w := NewWriter(byteBuf)
    	// Write the runes out using WriteRune
    	buf := make([]byte, utf8.UTFMax)
    	for r := rune(0); r < NRune; r++ {
    		size := utf8.EncodeRune(buf, r)
    		nbytes, err := w.WriteRune(r)
    		if err != nil {
    			t.Fatalf("WriteRune(0x%x) error: %s", r, err)
    		}
    		if nbytes != size {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  2. src/archive/zip/reader_test.go

    				Mode:     0666,
    			},
    		},
    	},
    	{
    		Name: "utf8-7zip.zip",
    		File: []ZipTestFile{
    			{
    				Name:     "世界",
    				Content:  []byte{},
    				Mode:     0666,
    				Modified: time.Date(2017, 11, 6, 13, 9, 27, 867862500, timeZone(-8*time.Hour)),
    			},
    		},
    	},
    	{
    		Name: "utf8-infozip.zip",
    		File: []ZipTestFile{
    			{
    				Name:    "世界",
    				Content: []byte{},
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 25 00:25:45 UTC 2024
    - 55.6K bytes
    - Viewed (0)
  3. cmd/object-api-utils.go

    package cmd
    
    import (
    	"bytes"
    	"context"
    	"encoding/hex"
    	"errors"
    	"fmt"
    	"io"
    	"math/rand"
    	"net"
    	"net/http"
    	"path"
    	"runtime"
    	"strconv"
    	"strings"
    	"sync"
    	"time"
    	"unicode/utf8"
    	"unsafe"
    
    	"github.com/google/uuid"
    	"github.com/klauspost/compress/s2"
    	"github.com/klauspost/readahead"
    	"github.com/minio/minio-go/v7/pkg/s3utils"
    	"github.com/minio/minio/internal/config/compress"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  4. cmd/iam-object-store.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"bytes"
    	"context"
    	"errors"
    	"fmt"
    	"path"
    	"strings"
    	"sync"
    	"time"
    	"unicode/utf8"
    
    	jsoniter "github.com/json-iterator/go"
    	"github.com/minio/madmin-go/v3"
    	"github.com/minio/minio/internal/config"
    	xioutil "github.com/minio/minio/internal/ioutil"
    	"github.com/minio/minio/internal/kms"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 23:40:37 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

                writer: DerWriter,
                value: String,
              ) = writer.writeObjectIdentifier(value)
            },
        )
    
      val UTF8_STRING =
        BasicDerAdapter(
          name = "UTF8",
          tagClass = DerHeader.TAG_CLASS_UNIVERSAL,
          tag = 12L,
          codec =
            object : BasicDerAdapter.Codec<String> {
              override fun decode(reader: DerReader): String = reader.readUtf8String()
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt

      }
    
      private fun checkEntry(
        entry: Header,
        name: String,
        value: String,
        size: Int,
      ) {
        assertThat(entry.name.utf8()).isEqualTo(name)
        assertThat(entry.value.utf8()).isEqualTo(value)
        assertThat(entry.hpackSize).isEqualTo(size)
      }
    
      private fun assertBytes(vararg bytes: Int) {
        val expected = intArrayToByteArray(bytes)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt

        for (i in 0 until name.size) {
          if (name[i] in 'A'.code.toByte()..'Z'.code.toByte()) {
            throw IOException("PROTOCOL_ERROR response malformed: mixed case name: ${name.utf8()}")
          }
        }
        return name
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  8. docs/debugging/xl-meta/main.go

    	"encoding/base64"
    	"encoding/binary"
    	"encoding/hex"
    	"encoding/json"
    	"errors"
    	"fmt"
    	"io"
    	"log"
    	"os"
    	"path/filepath"
    	"regexp"
    	"sort"
    	"strconv"
    	"strings"
    	"time"
    	"unicode/utf8"
    
    	"github.com/google/uuid"
    	"github.com/klauspost/compress/zip"
    	"github.com/klauspost/filepathx"
    	"github.com/klauspost/reedsolomon"
    	"github.com/minio/cli"
    	"github.com/minio/highwayhash"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 05 11:57:44 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  9. src/archive/tar/reader_test.go

    		// GNU and BSD tar utilities.
    		// The archive generated by GNU is nearly byte-for-byte identical
    		// to the Go version except the Go version sets a negative Devminor
    		// just to force the GNU format.
    		file: "testdata/gnu-utf8.tar",
    		headers: []*Header{{
    			Name: "☺☻☹☺☻☹☺☻☹☺☻☹☺☻☹☺☻☹☺☻☹☺☻☹☺☻☹☺☻☹☺☻☹☺☻☹☺☻☹☺☻☹☺☻☹☺☻☹☺☻☹☺☻☹",
    			Mode: 0644,
    			Uid:  1000, Gid: 1000,
    			ModTime:  time.Unix(0, 0),
    			Typeflag: '0',
    			Uname:    "☺",
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 03 15:48:09 UTC 2024
    - 46.9K bytes
    - Viewed (0)
  10. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

        assertThat(Adapters.INTEGER_AS_BIG_INTEGER.fromDer(bytes)).isEqualTo(bigInteger)
        assertThat(Adapters.INTEGER_AS_BIG_INTEGER.toDer(bigInteger)).isEqualTo(bytes)
      }
    
      @Test fun `utf8 string`() {
        val bytes = "0c04f09f988e".decodeHex()
        assertThat(Adapters.UTF8_STRING.fromDer(bytes)).isEqualTo("\uD83D\uDE0E")
        assertThat(Adapters.UTF8_STRING.toDer("\uD83D\uDE0E")).isEqualTo(bytes)
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 31.7K bytes
    - Viewed (0)
Back to top