Standard library / bytes
bytes.ToTitleSpecial()
Applies the specified special-case title mapping with standard fallback. Expected stdout: 'İ\n'.
Formal Syntax & Structure
go syntaxgo
func ToTitleSpecial(c unicode.SpecialCase, s []byte) []byteParameters & Attributes
| Name | Type | Description |
|---|---|---|
| c | unicode.SpecialCase | Language-specific single-rune case mapping. |
| s | []byte | Input text or sequence. |
Return Value
[]byte
Applies the specified special-case title mapping with standard fallback.
Working Example
Example Snippetgo
package main
import ( "bytes" "fmt" "unicode")
func main() { fmt.Println(string(bytes.ToTitleSpecial(unicode.TurkishCase, []byte("i"))))}