Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for sottile (0.19 sec)

  1. src/bytes/example_test.go

    func ExampleToTitle() {
    	fmt.Printf("%s\n", bytes.ToTitle([]byte("loud noises")))
    	fmt.Printf("%s\n", bytes.ToTitle([]byte("хлеб")))
    	// Output:
    	// LOUD NOISES
    	// ХЛЕБ
    }
    
    func ExampleToTitleSpecial() {
    	str := []byte("ahoj vývojári golang")
    	totitle := bytes.ToTitleSpecial(unicode.AzeriCase, str)
    	fmt.Println("Original : " + string(str))
    	fmt.Println("ToTitle : " + string(totitle))
    	// Output:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  2. src/archive/zip/reader.go

    		i--
    	}
    	if i < 0 {
    		return ".", name, isDir
    	}
    	return name[:i], name[i+1:], isDir
    }
    
    var dotFile = &fileListEntry{name: "./", isDir: true}
    
    func (r *Reader) openLookup(name string) *fileListEntry {
    	if name == "." {
    		return dotFile
    	}
    
    	dir, elem, _ := split(name)
    	files := r.fileList
    	i := sort.Search(len(files), func(i int) bool {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  3. src/bytes/bytes_test.go

    	{"123a456", "123A456"},
    	{"double-blind", "DOUBLE-BLIND"},
    	{"ÿøû", "ŸØÛ"},
    }
    
    func TestToTitle(t *testing.T) {
    	for _, tt := range ToTitleTests {
    		if s := string(ToTitle([]byte(tt.in))); s != tt.out {
    			t.Errorf("ToTitle(%q) = %q, want %q", tt.in, s, tt.out)
    		}
    	}
    }
    
    var EqualFoldTests = []struct {
    	s, t string
    	out  bool
    }{
    	{"abc", "abc", true},
    	{"ABcd", "ABcd", true},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  4. cmd/config-current.go

    	// implicit, for ENVs we cannot make it implicit.
    	if subSysHelp.MultipleTargets {
    		key := madmin.EnableKey
    		if envOnly {
    			key = config.EnvPrefix + strings.ToTitle(subSys) + config.EnvWordDelimiter + strings.ToTitle(madmin.EnableKey)
    		}
    		help = append(help, config.HelpKV{
    			Key:         key,
    			Description: fmt.Sprintf("enable %s target, default is 'off'", subSys),
    			Optional:    false,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 11:33:28 GMT 2024
    - 30.7K bytes
    - Viewed (0)
  5. cmd/erasure-common.go

    			}
    			select {
    			case <-ctx.Done():
    			case gotFile, ok := <-resps[i]:
    				if !ok {
    					continue
    				}
    				if gotFile.Error != "" || !gotFile.Exists {
    					continue
    				}
    				if gotFile.File != wantFile || gotFile.Bucket != req.Bucket || gotFile.Prefix != req.Prefix {
    					continue
    				}
    				quorum++
    				if toAdd.Modtime.After(gotFile.Modtime) || len(gotFile.Data) < len(toAdd.Data) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  6. src/bytes/bytes.go

    				c += 'a' - 'A'
    			}
    			b[i] = c
    		}
    		return b
    	}
    	return Map(unicode.ToLower, s)
    }
    
    // ToTitle treats s as UTF-8-encoded bytes and returns a copy with all the Unicode letters mapped to their title case.
    func ToTitle(s []byte) []byte { return Map(unicode.ToTitle, s) }
    
    // ToUpperSpecial treats s as UTF-8-encoded bytes and returns a copy with all the Unicode letters mapped to their
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
Back to top