MCPcopy Index your code
hub / github.com/apache/answer / processID

Function processID

pkg/checker/question_link.go:83–89  ·  view source on GitHub ↗
(content string, left, right *int, uniqueIDs map[string]struct{}, questionLinks *[]QuestionLink)

Source from the content-addressed store, hash-verified

81}
82
83func processID(content string, left, right *int, uniqueIDs map[string]struct{}, questionLinks *[]QuestionLink) {
84 for *right < len(content) && (isDigit(content[*right]) || isLetter(content[*right])) {
85 *right++
86 }
87 id := content[*left:*right]
88 addUniqueID(id, "", QuestionLinkTypeID, uniqueIDs, questionLinks)
89}
90
91func isDigit(c byte) bool {
92 return c >= '0' && c <= '9'

Callers 1

GetQuestionLinkFunction · 0.85

Calls 3

isDigitFunction · 0.85
isLetterFunction · 0.85
addUniqueIDFunction · 0.85

Tested by

no test coverage detected