MCPcopy Index your code
hub / github.com/go-dev-frame/sponge / customFirstLetterToLower

Function customFirstLetterToLower

pkg/sql2code/parser/commonParser.go:367–385  ·  view source on GitHub ↗
(str string)

Source from the content-addressed store, hash-verified

365}
366
367func customFirstLetterToLower(str string) string {
368 str = firstLetterToLower(str)
369
370 if len(str) == 2 {
371 if str == "iD" {
372 str = "id"
373 } else if str == "iP" {
374 str = "ip"
375 }
376 } else if len(str) == 3 {
377 if str == "iDs" {
378 str = "ids"
379 } else if str == "iPs" {
380 str = "ips"
381 }
382 }
383
384 return str
385}
386
387func customEndOfLetterToLower(srcStr string, str string) string {
388 l := len(str) - len(srcStr)

Callers 4

newTableInfoFunction · 0.85
getColumnsFunction · 0.85
setCrudInfoFunction · 0.85
newCrudInfoFunction · 0.85

Calls 1

firstLetterToLowerFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…