Standard library / bytes

bytes.ToUpperSpecial()

Applies the specified special-case uppercase mapping with standard fallback. Expected stdout: 'İ\n'.

Formal Syntax & Structure

go syntaxgo
func ToUpperSpecial(c unicode.SpecialCase, s []byte) []byte

Parameters & Attributes

NameTypeDescription
cunicode.SpecialCaseLanguage-specific single-rune case mapping.
s[]byteInput text or sequence.

Return Value

[]byte

Applies the specified special-case uppercase mapping with standard fallback.

Working Example

Example Snippetgo
package main
import (  "bytes"  "fmt"  "unicode")
func main() {  fmt.Println(string(bytes.ToUpperSpecial(unicode.TurkishCase, []byte("i"))))}
Go Reference