MCPcopy
hub / github.com/sqldef/sqldef / hasLineCommentPrefix

Function hasLineCommentPrefix

database/mssql/parser.go:365–367  ·  view source on GitHub ↗
(sql string, pos int)

Source from the content-addressed store, hash-verified

363}
364
365func hasLineCommentPrefix(sql string, pos int) bool {
366 return pos+1 < len(sql) && sql[pos] == '-' && sql[pos+1] == '-'
367}
368
369func hasBlockCommentPrefix(sql string, pos int) bool {
370 return pos+1 < len(sql) && sql[pos] == '/' && sql[pos+1] == '*'

Calls

no outgoing calls

Tested by

no test coverage detected