MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / next

Function next

src/pkg/utils/regex_to_glob.ts:89–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87 }
88 // Consume current char / 取当前字符并前进
89 function next(): string {
90 return reStr[i++] || "";
91 }
92 // If next is ch, consume it and return true; else false
93 // 若下一个字符为 ch,则消费并返回 true,否则返回 false
94 function eatIf(ch: string): boolean {

Callers 13

executeMethod · 0.85
wrappedHandlerMethod · 0.85
onMethod · 0.85
server.test.tsFile · 0.85
releaseMethod · 0.85
eatQuantModFunction · 0.85
parseCharClassFunction · 0.85
parseGroupFunction · 0.85
parseUnitFunction · 0.85
applyQuantifierFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected