MCPcopy
hub / github.com/russross/blackfriday / ispunct

Function ispunct

markdown.go:805–812  ·  view source on GitHub ↗

Miscellaneous helper functions Test if a character is a punctuation symbol. Taken from a private function in regexp in the stdlib.

(c byte)

Source from the content-addressed store, hash-verified

803// Test if a character is a punctuation symbol.
804// Taken from a private function in regexp in the stdlib.
805func ispunct(c byte) bool {
806 for _, r := range []byte("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~") {
807 if c == r {
808 return true
809 }
810 }
811 return false
812}
813
814// Test if a character is a whitespace character.
815func isspace(c byte) bool {

Callers 3

wordBoundaryFunction · 0.85
smartQuoteHelperFunction · 0.85
helperEmphasisFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…