Standard library / strings

strings.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 string) string

Parameters & Attributes

NameTypeDescription
cunicode.SpecialCaseLanguage-specific single-rune case mapping.
sstringInput text or sequence.

Return Value

string

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

Working Example

Example Snippetgo
package main
import (  "fmt"  "strings"  "unicode")
func main() {  fmt.Println(string(strings.ToTitleSpecial(unicode.TurkishCase, "i")))}
Go Reference