@abaplint/runtime
Version:
Transpiler - Runtime
14 lines • 502 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.to_upper = to_upper;
const types_1 = require("../types");
function to_upper(input) {
const val = typeof input.val === "string" ? input.val : input.val.get();
if (input.val instanceof types_1.Character) {
return new types_1.Character(input.val.getLength()).set(val.toUpperCase());
}
else {
return new types_1.String().set(val.toUpperCase());
}
}
//# sourceMappingURL=to_upper.js.map