Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for UTF16FromString (0.23 sec)

  1. src/os/path_windows.go

    	} else if isDevice {
    		// Don't add the extended prefix to device paths, as it would
    		// change its meaning.
    	} else {
    		prefix = []uint16{'\\', '\\', '?', '\\'}
    	}
    
    	p, err := syscall.UTF16FromString(path)
    	if err != nil {
    		return path
    	}
    	// Estimate the required buffer size using the path length plus the null terminator.
    	// pathLength includes the working directory. This should be accurate unless
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. src/syscall/syscall_windows.go

    // function panics instead of returning an error.
    //
    // Deprecated: Use [UTF16FromString] instead.
    func StringToUTF16(s string) []uint16 {
    	a, err := UTF16FromString(s)
    	if err != nil {
    		panic("syscall: string with NUL passed to StringToUTF16")
    	}
    	return a
    }
    
    // UTF16FromString returns the UTF-16 encoding of the UTF-8 string
    // s, with a terminating NUL added. If s contains a NUL byte at any
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 52.7K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go

    )
    
    // StringToUTF16 is deprecated. Use UTF16FromString instead.
    // If s contains a NUL byte this function panics instead of
    // returning an error.
    func StringToUTF16(s string) []uint16 {
    	a, err := UTF16FromString(s)
    	if err != nil {
    		panic("windows: string with NUL passed to StringToUTF16")
    	}
    	return a
    }
    
    // UTF16FromString returns the UTF-16 encoding of the UTF-8 string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  4. src/os/os_windows_test.go

    	// Create a file whose name contains unpaired surrogates.
    	// Use syscall.CreateFile instead of os.Create to simulate a file that is created by
    	// a non-Go program so the file name hasn't gone through syscall.UTF16FromString.
    	dirw := utf16.Encode([]rune(dir))
    	pathw := append(dirw, namew...)
    	fd, err := syscall.CreateFile(&pathw[0], syscall.GENERIC_ALL, 0, nil, syscall.CREATE_NEW, 0, 0)
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"TransmitFileBuffers.TailLength", Field, 0},
    		{"Truncate", Func, 0},
    		{"UNIX_PATH_MAX", Const, 12},
    		{"USAGE_MATCH_TYPE_AND", Const, 0},
    		{"USAGE_MATCH_TYPE_OR", Const, 0},
    		{"UTF16FromString", Func, 1},
    		{"UTF16PtrFromString", Func, 1},
    		{"UTF16ToString", Func, 0},
    		{"Ucred", Type, 0},
    		{"Ucred.Gid", Field, 0},
    		{"Ucred.Pid", Field, 0},
    		{"Ucred.Uid", Field, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top