Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
// 大小写英文字母互相转换
14
func
UpperLowerExchange(c byte) byte {
15
return
c ^
' '
16
}
17
18
// 驼峰转为蛇形。例如userNameAbd转为user_name_abd User user
19
func
Camel2Snake(s string) string {
Callers
1
Camel2Snake
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected