@obliczeniowo/elementary
Version:
Library made in Angular version 19
34 lines (33 loc) • 1.08 kB
TypeScript
export declare class ParseString {
/**
* Parse string and remove pair of double quotes from begin and and of string
* @param value string to parse
* @returns parsed string
*
* @example
*
* "\"some \"dummy text\"\"" => "some \"dummy text\""
*/
static readonly parseStringRemoveDblQuotes: (value: string) => string;
/**
* Parse string and remove pair of single quotes from begin and and of string
* @param value string to parse
* @returns parsed string
*
* @example
*
* "'some 'dummy text''" => "some 'dummy text'"
*/
static readonly parseStringRemoveSingleQuotes: (value: string) => string;
/**
* Parse string and remove pair of double quotes or single quotes from begin and and of string
* @param value string to parse
* @returns parsed string
*
* @example
*
* "\"some \"dummy text\"\"" => "some \"dummy text\""
* "'some 'dummy text''" => "some 'dummy text'"
*/
static readonly parseStringRemoveQuotes: (value: string) => string;
}