@abaplint/runtime 2.6.3 → 2.6.4
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.
|
@@ -4,7 +4,12 @@ exports.to_lower = void 0;
|
|
|
4
4
|
const types_1 = require("../types");
|
|
5
5
|
function to_lower(input) {
|
|
6
6
|
const val = typeof input.val === "string" ? input.val : input.val.get();
|
|
7
|
-
|
|
7
|
+
if (input.val instanceof types_1.Character) {
|
|
8
|
+
return new types_1.Character(input.val.getLength()).set(val.toLowerCase());
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
return new types_1.String().set(val.toLowerCase());
|
|
12
|
+
}
|
|
8
13
|
}
|
|
9
14
|
exports.to_lower = to_lower;
|
|
10
15
|
//# sourceMappingURL=to_lower.js.map
|
|
@@ -4,7 +4,12 @@ exports.to_upper = void 0;
|
|
|
4
4
|
const types_1 = require("../types");
|
|
5
5
|
function to_upper(input) {
|
|
6
6
|
const val = typeof input.val === "string" ? input.val : input.val.get();
|
|
7
|
-
|
|
7
|
+
if (input.val instanceof types_1.Character) {
|
|
8
|
+
return new types_1.Character(input.val.getLength()).set(val.toUpperCase());
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
return new types_1.String().set(val.toUpperCase());
|
|
12
|
+
}
|
|
8
13
|
}
|
|
9
14
|
exports.to_upper = to_upper;
|
|
10
15
|
//# sourceMappingURL=to_upper.js.map
|
package/build/src/compare/eq.js
CHANGED
|
@@ -28,15 +28,15 @@ function eq(left, right) {
|
|
|
28
28
|
return eq(left.getPointer(), right);
|
|
29
29
|
}
|
|
30
30
|
// for performance, do the typicaly/easy cases first
|
|
31
|
-
|
|
31
|
+
/*
|
|
32
|
+
if (right instanceof Character && left instanceof Character && right.getLength() === left.getLength()) {
|
|
32
33
|
return right.get() === left.get();
|
|
33
|
-
|
|
34
|
-
else if (right instanceof types_1.Numc && left instanceof types_1.Numc && right.getLength() === left.getLength()) {
|
|
34
|
+
} else if (right instanceof Numc && left instanceof Numc && right.getLength() === left.getLength()) {
|
|
35
35
|
return right.get() === left.get();
|
|
36
|
-
|
|
37
|
-
else if (right instanceof types_1.Integer && left instanceof types_1.Integer) {
|
|
36
|
+
} else if (right instanceof Integer && left instanceof Integer) {
|
|
38
37
|
return right.get() === left.get();
|
|
39
|
-
|
|
38
|
+
}
|
|
39
|
+
*/
|
|
40
40
|
if (left instanceof types_1.Table || right instanceof types_1.Table || left instanceof types_1.HashedTable || right instanceof types_1.HashedTable) {
|
|
41
41
|
if ((left instanceof types_1.Table || left instanceof types_1.HashedTable)
|
|
42
42
|
&& (right instanceof types_1.Table || right instanceof types_1.HashedTable)) {
|