All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.butterfaces-dist-js.butterfaces-util-string.js Maven / Gradle / Ivy

There is a newer version: 3.5.0
Show newest version
///
var ButterFaces;
(function (ButterFaces) {
    var String = /** @class */ (function () {
        function String() {
        }
        String.format = function (format, params) {
            return format.replace(/{(\d+)}/g, function (match, num) {
                return ButterFaces.Object.isNullOrUndefined(params[num]) ? match : params[num];
            });
        };
        return String;
    }());
    ButterFaces.String = String;
})(ButterFaces || (ButterFaces = {}));

//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImJ1dHRlcmZhY2VzLXV0aWwtc3RyaW5nLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGlEQUFpRDtBQUVqRCxJQUFVLFdBQVcsQ0FRcEI7QUFSRCxXQUFVLFdBQVc7SUFDakI7UUFBQTtRQU1BLENBQUM7UUFMVSxhQUFNLEdBQWIsVUFBYyxNQUFjLEVBQUUsTUFBa0I7WUFDNUMsTUFBTSxDQUFDLE1BQU0sQ0FBQyxPQUFPLENBQUMsVUFBVSxFQUFFLFVBQUMsS0FBYSxFQUFFLEdBQVc7Z0JBQ3pELE1BQU0sQ0FBQyxXQUFXLENBQUMsTUFBTSxDQUFDLGlCQUFpQixDQUFDLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQztZQUNuRixDQUFDLENBQUMsQ0FBQztRQUNQLENBQUM7UUFDTCxhQUFDO0lBQUQsQ0FOQSxBQU1DLElBQUE7SUFOWSxrQkFBTSxTQU1sQixDQUFBO0FBQ0wsQ0FBQyxFQVJTLFdBQVcsS0FBWCxXQUFXLFFBUXBCIiwiZmlsZSI6ImJ1dHRlcmZhY2VzLXV0aWwtc3RyaW5nLmpzIiwic291cmNlc0NvbnRlb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