Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ToLower (0.21 sec)

  1. src/bytes/example_test.go

    func ExampleToLower() {
    	fmt.Printf("%s", bytes.ToLower([]byte("Gopher")))
    	// Output: gopher
    }
    
    func ExampleToLowerSpecial() {
    	str := []byte("AHOJ VÝVOJÁRİ GOLANG")
    	totitle := bytes.ToLowerSpecial(unicode.AzeriCase, str)
    	fmt.Println("Original : " + string(str))
    	fmt.Println("ToLower : " + string(totitle))
    	// Output:
    	// Original : AHOJ VÝVOJÁRİ GOLANG
    	// ToLower : ahoj vývojári golang
    }
    
    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/bytes/bytes.go

    			c := s[i]
    			if 'a' <= c && c <= 'z' {
    				c -= 'a' - 'A'
    			}
    			b[i] = c
    		}
    		return b
    	}
    	return Map(unicode.ToUpper, s)
    }
    
    // ToLower returns a copy of the byte slice s with all Unicode letters mapped to
    // their lower case.
    func ToLower(s []byte) []byte {
    	isASCII, hasUpper := true, false
    	for i := 0; i < len(s); i++ {
    		c := s[i]
    		if c >= utf8.RuneSelf {
    			isASCII = false
    			break
    		}
    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