export {};
declare global {
interface String {
/**
*
* Determines whether the beginning of this string instance matches a specified string.
* @param {string} searchTerm the specified string
* @param {boolean} ignoreCase if true (default) than the case will be ignored, otherwise not
* @returns {boolean} true if this strings starts with the specified searchTerm, otherwise false
* @since 1.0.0
*/
StartsWith(searchTerm: string, ignoreCase?: boolean): boolean;
/**
*
* Determines whether the ending of this string instance matches a specified string.
* @param {string} searchTerm the specified string
* @param {boolean} ignoreCase if true (default) than the case will be ignored, otherwise not
* @returns {boolean} true if this strings ends with the specified searchTerm, otherwise false
* @since 1.0.0
*/
EndsWith(searchTerm: string, ignoreCase?: boolean): boolean;
/**
*
* Returns a value indicating whether a specified substring occurs within this string.
* @param {string} searchTerm the specified string
* @param {boolean} ignoreCase if true (default) than the case will be ignored, otherwise not
* @returns {boolean} true if this strings contains the specified searchTerm, otherwise false
* @since 1.0.0
*/
Contains(searchTerm: string, ignoreCase?: boolean): boolean;
/**
*
* Reports the zero-based index of the first occurrence of a specified Unicode
* character or string within this instance. The method returns -1 if the
* character or string is not found in this instance.
* @param {string} searchTerm the specified string
* @param {boolean} ignoreCase if true (default) than the case will be ignored, otherwise not
* @returns {number} the zero-based index of the position or -1 if not exists
* @since 1.0.0
*/
IndexOf(searchTerm: string, ignoreCase?: boolean): number;
/**
*
* Returns a new string in which a specified string is inserted
* at a specified index position in this instance.
* @param {number} startIndex the specified index position
* @param {string} valueToInsert the string to insert
* @returns {string} the new generated string
* @since 1.0.0
*/
Insert(startIndex: number, valueToInsert: string): string;
/**
*
* Determines whether two String objects have the same value.
* @param {string} value The string to compare to this instance
* @param {boolean} ignoreCase if true (default) than the case will be ignored, otherwise not
* @returns {boolean} true if the value of the value parameter
* is the same as this string; otherwise, false.
* @since 1.0.0
*/
Equals(value: string, ignoreCase?: boolean): boolean;
/**
*
* Determines whether a String is empty or whitespace.
* @returns {boolean} true if the value of this string is empty or whitespace; otherwise, false.
* @since 1.0.0
*/
IsEmpty(): boolean;
/**
*
* Replaces all occurrences of searchTerm with replaceWith
* @returns {boolean} true if the value of this string is empty or whitespace; otherwise, false.
* @since 1.2.0
*/
ReplaceAll(searchTerm: string, replaceWith: string): string;
}
}
//# sourceMappingURL=StringExtensions.d.ts.map