UNPKG

@abaplint/runtime

Version:
34 lines 845 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.co = co; const types_1 = require("../types"); function co(left, right) { let l = ""; if (typeof left === "number" || typeof left === "string") { l = left.toString(); } else { l = left.get().toString(); } let r = ""; if (typeof right === "string") { r = right.toString(); } else if (right instanceof types_1.Structure) { r = right.getCharacter(); } else { r = right.get().toString(); } let fdpos = 0; for (const c of l) { if (r.includes(c) === false) { abap.builtin.sy.get().fdpos.set(fdpos); return false; } fdpos++; } abap.builtin.sy.get().fdpos.set(fdpos); return true; } //# sourceMappingURL=co.js.map