UNPKG

typesxml

Version:

Open source XML library written in TypeScript

37 lines (36 loc) 1.83 kB
/******************************************************************************* * Copyright (c) 2023-2026 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 isValidXmlChar(version: string, codePoint: number): boolean; static ensureValidXmlCodePoint(version: string, codePoint: number, context: string): void; static ensureValidXmlCharacters(version: string, text: string, context: string): void; static isValidXml11Char(c: number): boolean; static lookingAt(search: string, text: string, start: number): boolean; static isValidXMLName(name: string): boolean; static isNameStartChar(char: string): boolean; static isNameChar(char: string): boolean; static isValidNCName(name: string): boolean; static isNCNameStartChar(char: string): boolean; static isValidNMTOKEN(token: string): boolean; }