MCPcopy
hub / github.com/DHTMLX/gantt / cased

Function cased

samples/common/codehighlight/codemirror.js:862–862  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

860 StringStream.prototype.match = function (pattern, consume, caseInsensitive) {
861 if (typeof pattern == "string") {
862 var cased = function (str) { return caseInsensitive ? str.toLowerCase() : str; };
863 var substr = this.string.substr(this.pos, pattern.length);
864 if (cased(substr) == cased(pattern)) {
865 if (consume !== false) { this.pos += pattern.length; }

Callers 1

codemirror.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected