cli-stash
Version:
CLI application to manage and work with Atlassian Stash. Work with your Stash project and repositories from Command lines.
37 lines (36 loc) • 1.54 kB
TypeScript
export declare class StrUtils {
/**
* Method to replace data from a string
* @param {string} str String to replace the data
* @param {string} replace String to replace
* @param {string} replacement String to replacement
*
* @returns {string} Returns the the String with data replaced
*/
static replace(str: string, replace: string, replacement: string): string;
/**
* Method to count the ocurrences into the String
* @param {string} str Source to check
* @param {string} strToCheck String to check if exists on str
*
* @returns {number} true if "strToCheck" exists on "str", false in otherwise
*/
static count(str: string, strToCheck: string): number;
/**
* Method to check if a String contains other String
* @param {string} str Source to check
* @param {string} strToCheck String to check if exists on str
*
* @returns {boolean} true if "strToCheck" exists on "str", false in otherwise
*/
static contains(str: string, strToCheck: string): boolean;
/**
* Method to check if a String contains other String ignoring letter case
* @param {string} str Source to check
* @param {string} strToCheck String to check if exists on str
*
* @returns {boolean} true if "strToCheck" exists on "str", false in otherwise
*/
static containsIgnorecase(str: string, strToCheck: string): boolean;
static normalize(value: string | null, toUpper?: boolean): string;
}