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

Function tokenize

docs/tests/v2/es6/js/sanddance.js:89339–89351  ·  view source on GitHub ↗
(text, tcase, match)

Source from the content-addressed store, hash-verified

89337};
89338
89339function tokenize(text, tcase, match) {
89340 switch (tcase) {
89341 case 'upper':
89342 text = text.toUpperCase();
89343 break;
89344
89345 case 'lower':
89346 text = text.toLowerCase();
89347 break;
89348 }
89349
89350 return text.match(match);
89351}
89352
89353var prototype = (0, _vegaUtil.inherits)(CountPattern, _vegaDataflow.Transform);
89354

Callers 1

processFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected