@abaplint/runtime 2.7.40 → 2.7.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,7 +2,7 @@ import { INumeric } from "../types/_numeric";
|
|
|
2
2
|
import { ICharacter } from "../types/_character";
|
|
3
3
|
import { Table } from "../types";
|
|
4
4
|
export interface IConcatenateInput {
|
|
5
|
-
source:
|
|
5
|
+
source: (number | string | INumeric | ICharacter | Table)[];
|
|
6
6
|
target: ICharacter;
|
|
7
7
|
separatedBy?: number | string | INumeric | ICharacter;
|
|
8
8
|
respectingBlanks?: boolean;
|
|
@@ -70,6 +70,9 @@ function createData(target, options) {
|
|
|
70
70
|
else if (options.name.trimEnd() === "F") {
|
|
71
71
|
target.assign(new types_1.Float());
|
|
72
72
|
}
|
|
73
|
+
else if (options.name.trimEnd() === "INT8") {
|
|
74
|
+
target.assign(new types_1.Integer8());
|
|
75
|
+
}
|
|
73
76
|
else {
|
|
74
77
|
(0, throw_error_1.throwError)("CX_SY_CREATE_DATA_ERROR");
|
|
75
78
|
}
|
|
@@ -135,6 +138,9 @@ function createData(target, options) {
|
|
|
135
138
|
case "STRING":
|
|
136
139
|
target.assign(new types_1.String());
|
|
137
140
|
break;
|
|
141
|
+
case "INT8":
|
|
142
|
+
target.assign(new types_1.Integer8());
|
|
143
|
+
break;
|
|
138
144
|
case "XSTRING":
|
|
139
145
|
target.assign(new types_1.XString());
|
|
140
146
|
break;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.replace = void 0;
|
|
4
4
|
const abap_regex_1 = require("../abap_regex");
|
|
5
|
-
const offset_length_1 = require("../offset_length");
|
|
6
5
|
const types_1 = require("../types");
|
|
6
|
+
const concatenate_1 = require("./concatenate");
|
|
7
7
|
function replace(input) {
|
|
8
8
|
if (input.target instanceof types_1.Table) {
|
|
9
9
|
for (const row of input.target.array()) {
|
|
@@ -34,7 +34,9 @@ function replace(input) {
|
|
|
34
34
|
search = new RegExp(regex, ignoreCase + allOccurrences);
|
|
35
35
|
}
|
|
36
36
|
else if (input.sectionLength && input.sectionOffset) {
|
|
37
|
-
|
|
37
|
+
const before = input.target.getOffset({ length: input.sectionOffset });
|
|
38
|
+
const after = input.target.getOffset({ offset: input.sectionLength.get() + input.sectionOffset.get() });
|
|
39
|
+
(0, concatenate_1.concatenate)({ source: [before, input.with, after], target: input.target });
|
|
38
40
|
// @ts-ignore
|
|
39
41
|
abap.builtin.sy.get().subrc.set(0);
|
|
40
42
|
return;
|