"use strict";
const constants = require("./constants-DxId_i-P.js");
const startCase = (str) => str.replace(constants.RX_UNDERSCORE, " ").replace(constants.RX_LOWER_UPPER, (_, $1, $2) => `${$1} ${$2}`).replace(constants.RX_FIRST_START_SPACE_WORD, (_, $1, $2) => $1 + $2.toUpperCase());
const titleCase = (str) => str.replace(constants.RX_UNDERSCORE, " ").replace(constants.RX_LOWER_UPPER, (_, $1, $2) => `${$1} ${$2}`).replace(constants.RX_START_SPACE_WORD, (_, $1, $2) => $1 + $2.toUpperCase());
const upperFirst = (str) => {
  const trim = str.trim();
  return trim.charAt(0).toUpperCase() + trim.slice(1);
};
const escapeRegExp = (str) => str.replace(constants.RX_REGEXP_REPLACE, "\\$&");
const escapeRegExpChars = (str) => escapeRegExp(str).replace(constants.RX_SPACES, "\\s");
const toPascalCase = (str) => str.replace(/-./g, (match) => match.charAt(1).toUpperCase()).replace(/\b\w/g, (match) => match.toUpperCase()).replace(/\s+/g, "");
exports.escapeRegExpChars = escapeRegExpChars;
exports.startCase = startCase;
exports.titleCase = titleCase;
exports.toPascalCase = toPascalCase;
exports.upperFirst = upperFirst;
//# sourceMappingURL=stringUtils-DVq7fDaW.js.map
