coersystem
Version:
Library for Angular projects
26 lines (25 loc) • 1.44 kB
TypeScript
/** Provides several methods for string manipulation */
export declare class Strings {
/** Sets the first character to lowercase */
static FirstCharToLower(value: string | number | null | undefined): string;
/** Sets the first character to uppercase */
static FirstCharToUpper(value: string | number | null | undefined): string;
/** Clean extra whitespaces */
static CleanUpBlanks(value: string | number | null | undefined): string;
/** Apply title formatting */
static ToTitle(value: string | number | null | undefined): string;
/** Remove whitespaces */
static RemoveWhiteSpaces(value: string | number | null | undefined): string;
/** Removes the last character */
static RemoveLastChar(value: string | number | null | undefined): string;
/** Removes accents */
static RemoveAccents(value: string | number | null | undefined, except?: string[]): string;
/** Removes special characters */
static RemoveSpecialCharacters(value: string | number | null | undefined): string;
/** Only Alphanumeric */
static OnlyAlphanumeric(value: string | number | null | undefined): string;
/** Only Alphanumeric */
static OnlyNumbers(value: string | number | null | undefined): string;
/** Validates if both strings are equal */
static Equals(value: string | number | null | undefined, value2: string | number | null | undefined, sensitive?: boolean): boolean;
}