MCPcopy Create free account
hub / github.com/Agelessbaby/BloomBlog / UpperLowerExchange

Function UpperLowerExchange

util/string/string.go:14–16  ·  view source on GitHub ↗

大小写英文字母互相转换

(c byte)

Source from the content-addressed store, hash-verified

12
13// 大小写英文字母互相转换
14func UpperLowerExchange(c byte) byte {
15 return c ^ ' '
16}
17
18// 驼峰转为蛇形。例如userNameAbd转为user_name_abd User user
19func Camel2Snake(s string) string {

Callers 1

Camel2SnakeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected