Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 10 for utf8 (0.02 seconds)

  1. src/bytes/bytes_test.go

    			o += copy(buf[o:], uchars)
    		}
    
    		// Make space for the needle rune at the end of buf.
    		m := utf8.RuneLen(needle)
    		for o := m; o > 0; {
    			_, sz := utf8.DecodeLastRune(buf)
    			copy(buf[len(buf)-sz:], "\x00\x00\x00\x00")
    			buf = buf[:len(buf)-sz]
    			o -= sz
    		}
    		buf = utf8.AppendRune(buf[:n-m], needle)
    
    		n -= m // adjust for rune len
    		for i := 0; i < b.N; i++ {
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Dec 23 23:54:14 GMT 2025
    - 62.9K bytes
    - Click Count (0)
  2. src/archive/zip/reader_test.go

    				// Name is valid UTF-8, but format does not have UTF-8 flag set.
    				// We don't do UTF-8 detection for multi-byte runes due to
    				// false-positives with other encodings (e.g., Shift-JIS).
    				// Format says encoding is not UTF-8, so we trust it.
    				NonUTF8:  true,
    				Modified: time.Date(2017, 11, 6, 13, 9, 27, 0, timeZone(-8*time.Hour)),
    			},
    		},
    	},
    	{
    		Name: "utf8-osx.zip",
    		File: []ZipTestFile{
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Fri Oct 17 20:10:27 GMT 2025
    - 56.5K bytes
    - Click Count (0)
  3. 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 {
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Fri Feb 07 01:08:54 GMT 2025
    - 51.6K bytes
    - Click Count (0)
  4. cmd/admin-handlers-users.go

    package cmd
    
    import (
    	"bytes"
    	"context"
    	"encoding/json"
    	"errors"
    	"fmt"
    	"io"
    	"maps"
    	"net/http"
    	"os"
    	"slices"
    	"sort"
    	"strconv"
    	"strings"
    	"time"
    	"unicode/utf8"
    
    	"github.com/klauspost/compress/zip"
    	"github.com/minio/madmin-go/v3"
    	"github.com/minio/minio/internal/auth"
    	"github.com/minio/minio/internal/config/dns"
    	"github.com/minio/minio/internal/logger"
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 90.6K bytes
    - Click Count (0)
  5. internal/s3select/select_test.go

    			wantResult: `{"id":0,"title":"Test Record","desc":"Some text","synonyms":["foo","bar","whatever"]}`,
    		},
    		{
    			name: "select-output-field-as-csv",
    			requestXML: []byte(`<?xml version="1.0" encoding="UTF-8"?>
    <SelectObjectContentRequest>
        <Expression>SELECT s.synonyms from s3object s WHERE 'whatever' IN s.synonyms</Expression>
        <ExpressionType>SQL</ExpressionType>
        <InputSerialization>
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 76.1K bytes
    - Click Count (0)
  6. tests/test_application.py

        assert response.headers["content-type"] == "text/html; charset=utf-8"
        assert "window.opener.swaggerUIRedirectOauth2" in response.text
    
    
    def test_redoc():
        response = client.get("/redoc")
        assert response.status_code == 200, response.text
        assert response.headers["content-type"] == "text/html; charset=utf-8"
        assert "redoc@2" in response.text
    
    
    def test_enum_status_code_response():
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 51.9K bytes
    - Click Count (0)
  7. cmd/api-errors.go

    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrFilterValueInvalid: {
    		Code:           "InvalidArgument",
    		Description:    "Size of filter rule value cannot exceed 1024 bytes in UTF-8 representation",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrOverlappingConfigs: {
    		Code:           "InvalidArgument",
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Apr 16 07:34:24 GMT 2025
    - 93K bytes
    - Click Count (3)
  8. impl/maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java

            assertEquals(4, ((Map<?, ?>) pom.getValue("properties")).size());
            assertEquals("project-property", pom.getValue("properties[1]/itProperty"));
            assertEquals("UTF-8", pom.getValue("properties[1]/project.build.sourceEncoding"));
            assertEquals("UTF-8", pom.getValue("properties[1]/project.reporting.outputEncoding"));
            assertEquals("1980-02-01T00:00:00Z", pom.getValue("properties[1]/project.build.outputTimestamp"));
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 94.8K bytes
    - Click Count (0)
  9. impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                return null;
            }
    
            @Override
            @Nonnull
            public InputStream openStream() throws IOException {
                return new ByteArrayInputStream(xml.getBytes(StandardCharsets.UTF_8));
            }
    
            @Override
            @Nonnull
            public String getLocation() {
                return artifact.getId();
            }
    
            @Override
            @Nullable
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 17:20:31 GMT 2025
    - 51.8K bytes
    - Click Count (0)
  10. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

                File configFile = new File(cliRequest.multiModuleProjectDirectory, MVN_MAVEN_CONFIG);
    
                if (configFile.isFile()) {
                    try (Stream<String> lines = Files.lines(configFile.toPath(), StandardCharsets.UTF_8)) {
                        String[] args = lines.filter(arg -> !arg.isEmpty() && !arg.startsWith("#"))
                                .toArray(String[]::new);
                        mavenConfig = cliManager.parse(args);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Oct 27 13:24:03 GMT 2025
    - 78.1K bytes
    - Click Count (0)
Back to Top