MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / ApplyColorPattern

Function ApplyColorPattern

internal/colorpatterns/colorpatterns.go:55–65  ·  view source on GitHub ↗
(input string, pattern string, method ...ColorizeStyle)

Source from the content-addressed store, hash-verified

53}
54
55func ApplyColorPattern(input string, pattern string, method ...ColorizeStyle) string {
56 if pattern == `` {
57 return input
58 }
59 patternValues, ok := numericPatterns[pattern]
60 if !ok {
61 return input
62 }
63
64 return ApplyColors(input, patternValues, method...)
65}
66
67func ApplyCharacterWarping(input string) string {
68

Callers 15

onGetFormattedNameMethod · 0.92
DisplayNameMethod · 0.92
CompileAdjectiveSwapsFunction · 0.92
GetCellMethod · 0.92
GetDetailsFunction · 0.92
DisplayNameMethod · 0.92
UtilApplyColorPatternFunction · 0.92
AddTemporaryExitMethod · 0.92
WrapMethod · 0.92
PortalFunction · 0.92
ZapFunction · 0.92

Calls 1

ApplyColorsFunction · 0.85

Tested by

no test coverage detected