Sha256: 1830f46b0314d304972707b80798058b11263cb7e95227d49ce9fbf24ebad259
Contents?: true
Size: 863 Bytes
Versions: 3
Compression:
Stored size: 863 Bytes
Contents
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2018 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define([], function() { "use strict"; var rCamelCase = /-(.)/ig; /** * Transforms a hyphen separated string to a camel case string. * * @example * sap.ui.require(["sap/base/strings/camelize"], function(camelize){ * camelize("foo-bar"); // "fooBar" * }); * * @function * @since 1.58 * @alias module:sap/base/strings/camelize * @param {string} sString Hyphen separated string * @returns {string} The transformed string * @public * @SecPassthrough {0|return} */ var fnCamelize = function (sString) { return sString.replace( rCamelCase, function( sMatch, sChar ) { return sChar.toUpperCase(); }); }; return fnCamelize; });
Version data entries
3 entries across 3 versions & 1 rubygems