@uswriting/exiftool
Version:
ExifTool powered by WebAssembly to extract and write metadata from files in browsers and Node.js environments using zeroperl
39 lines (38 loc) • 1.08 kB
TypeScript
/**
* A lightweight StringBuilder
*/
export declare class StringBuilder {
private parts;
/**
* Creates a new StringBuilder instance
* @param initialValue Optional initial string value
*/
constructor(initialValue?: string);
/**
* Appends a string to the builder
* @param str The string to append
* @returns The StringBuilder instance for chaining
*/
append(str: string): StringBuilder;
/**
* Appends a string followed by a newline character
* @param str The string to append
* @returns The StringBuilder instance for chaining
*/
appendLine(str?: string): StringBuilder;
/**
* Returns the current length of the string
*/
get length(): number;
/**
* Converts the StringBuilder to a string
* @returns The built string
*/
toString(): string;
/**
* Checks if a string contains or ends with line breaks
* @param str The string to check
* @returns True if the string contains any line breaks
*/
static isMultiline(str: string): boolean;
}