MCPcopy
hub / github.com/microsoft/SandDance / tokenize

Function tokenize

docs/app/js/sanddance-app.js:116592–116602  ·  view source on GitHub ↗
(text, tcase, match)

Source from the content-addressed store, hash-verified

116590 ]
116591};
116592function tokenize(text, tcase, match) {
116593 switch(tcase){
116594 case "upper":
116595 text = text.toUpperCase();
116596 break;
116597 case "lower":
116598 text = text.toLowerCase();
116599 break;
116600 }
116601 return text.match(match);
116602}
116603(0, _vegaUtil.inherits)(CountPattern, (0, _vegaDataflow.Transform), {
116604 transform (_, pulse) {
116605 const process = (update1)=>(tuple)=>{

Callers 1

processFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected