UNPKG

@base-framework/base

Version:

This is a javascript framework.

50 lines (49 loc) 1.22 kB
/** * Strings * * This will contain methods for working with strings. * * @module * @name Strings */ export class Strings { /** * This will limit the length of a string. * * @param {string} str * @param {number} [maxLength] * @returns {string} */ static limit(str: string, maxLength?: number): string; /** * This will parse a query string. * * @param {string} [str] The string to parse or the global * location will be parsed. * @param {boolean} [decode] * @returns {object} */ static parseQueryString(str?: string, decode?: boolean, limit?: boolean): object; /** * This will camelCase a string. * * @param {string} str * @returns {string} The string or false. */ static camelCase(str: string): string; /** * This will uncamel-case a string. * * @param {string} str * @param {string} [delimiter] * @returns {string} The string. */ static uncamelCase(str: string, delimiter?: string): string; /** * This will title case a string. * * @param {string} str * @returns {string} The string. */ static titleCase(str: string): string; }