UNPKG

stash-connector

Version:

Module to handle and work with Atlassian Stash projects and repositories throug REST API. Admin your repositories and projects in Stash easy. This project is not an Atlassian official project but use the Atlassian Stash REST API

37 lines (36 loc) 1.54 kB
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; }