Lines Matching refs:str
3 * @param {string} str - The string which to be verified.
6 export function isReserved(str) {
7 const c = (str + '').charCodeAt(0);
18 return function cachedFn(str) {
19 const hit = cache[str];
20 return hit || (cache[str] = func(str));
26 * @param {string} str - A hyphen-delmited string.
29 export const camelize = cached(str => {
30 return str.replace(/-(\w)/g, (_, s) => s ? s.toUpperCase() : '');
93 export function removeApplicationPrefix(str) {
94 const result = str.replace(APPLICATION_REG, '');
103 export function removePrefix(str) {
104 const result = str.replace(COMPONENT_REG, '').replace(MODULE_REG, '');