UNPKG

@abaplint/runtime

Version:
16 lines 620 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.overlay = overlay; const offset_length_1 = require("../offset_length"); const types_1 = require("../types"); function overlay(value, withh, _only) { const set = value instanceof types_1.Structure ? value.getCharacter() : value.get(); const w = withh.get(); const len = set.length; for (let i = 0; i < len; i++) { if (set.substring(i, i + 1) === " ") { new offset_length_1.OffsetLength(value, { offset: i, length: 1 }).set(w.substring(i, i + 1)); } } } //# sourceMappingURL=overlay.js.map