MCPcopy
hub / github.com/cli/cli / Title

Function Title

internal/text/text.go:24–27  ·  view source on GitHub ↗

Title returns a copy of the string s with all Unicode letters that begin words mapped to their Unicode title case.

(s string)

Source from the content-addressed store, hash-verified

22
23// Title returns a copy of the string s with all Unicode letters that begin words mapped to their Unicode title case.
24func Title(s string) string {
25 c := cases.Title(language.English)
26 return c.String(s)
27}
28
29// RemoveExcessiveWhitespace returns a copy of the string s with excessive whitespace removed.
30func RemoveExcessiveWhitespace(s string) string {

Callers 6

TitleMethod · 0.92
formattedReviewerStateFunction · 0.92
StateTitleWithColorFunction · 0.92
formatCommentFunction · 0.92
formatHiddenCommentFunction · 0.92
StringMethod · 0.92

Calls 2

TitleMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected