Files
powerpoint-toolbox/node_modules/@jsonjoy.com/util/lib/codegen/util/helpers.js
T
2025-03-07 19:22:02 +01:00

11 lines
453 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.emitStringMatch = void 0;
const emitStringMatch = (expression, offset, match) => {
const conditions = [];
for (let i = 0; i < match.length; i++)
conditions.push(`${match.charCodeAt(i)} === ${expression}.charCodeAt(${offset} + ${i})`);
return conditions.join(' && ');
};
exports.emitStringMatch = emitStringMatch;
//# sourceMappingURL=helpers.js.map