UNPKG

typesxml

Version:

Open source XML library written in TypeScript

28 lines (27 loc) 1.27 kB
/******************************************************************************* * Copyright (c) 2023 - 2024 Maxprograms. * * This program and the accompanying materials * are made available under the terms of the Eclipse License 1.0 * which accompanies this distribution, and is available at * https://www.eclipse.org/org/documents/epl-v10.html * * Contributors: * Maxprograms - initial API and implementation *******************************************************************************/ export declare class XMLUtils { static readonly SPACES: string; static cleanString(text: string): string; static unquote(text: string): string; static normalizeLines(text: string): string; static isXmlSpace(char: string): boolean; static hasParameterEntity(text: string): boolean; static normalizeSpaces(text: string): string; static replaceAll(text: string, search: string, replacement: string): string; static escapeRegExpChars(text: string): string; static validXml10Chars(text: string): string; static isValidXml10Char(c: number): boolean; static validXml11Chars(text: string): string; static isValidXml11Char(c: number): boolean; static lookingAt(search: string, text: string, start: number): boolean; }