MCPcopy Create free account
hub / github.com/TruthHun/BookStack / prefix

Function prefix

static/editor.md/lib/codemirror/mode/perl/perl.js:809–816  ·  view source on GitHub ↗
(stream, c)

Source from the content-addressed store, hash-verified

807
808// return a part of prefix of current stream from current position
809function prefix(stream, c){
810 if(c){
811 var x=stream.pos-c;
812 return stream.string.substr((x>=0?x:0),c);}
813 else{
814 return stream.string.substr(0,stream.pos-1);
815 }
816}
817
818// return a part of suffix of current stream from current position
819function suffix(stream, c){

Callers 1

tokenPerlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected