MCPcopy
hub / github.com/sqlc-dev/sqlc / isValidDollarTagChar

Function isValidDollarTagChar

internal/sql/sqlfile/split.go:239–241  ·  view source on GitHub ↗

isValidDollarTagChar returns true if ch is a valid character in a dollar tag. Valid characters are alphanumeric and underscore.

(ch byte)

Source from the content-addressed store, hash-verified

237// isValidDollarTagChar returns true if ch is a valid character in a dollar tag.
238// Valid characters are alphanumeric and underscore.
239func isValidDollarTagChar(ch byte) bool {
240 return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || (ch >= '0' && ch <= '9') || ch == '_'
241}

Callers 2

extractDollarTagFunction · 0.85
isValidDollarTagContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected