wngx-filter
Version:
Angular 7 generic components for array filter in *ngFor directive.
43 lines (42 loc) • 1.95 kB
TypeScript
/**
* ascii-folder.js
* https://github.com/mplatt/fold-to-ascii-js
*
* This is a JavaScript port of the Apache Lucene ASCII Folding Filter.
*
* The Apache Lucene ASCII Folding Filter is licensed to the Apache Software
* Foundation (ASF) under one or more contributor license agreements. See the
* NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache
* License, Version 2.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
export declare class ASCIIFolder {
/**
* Sanitize strings by converting alphabetic, numeric, and symbolic Unicode characters which are not contained in
* the first 127 ASCII characters (the "Basic Latin" Unicode block) into a ASCII equivalents.
*
* @param str The string to be sanitized
* @param replacement The character an unmapped character should be replaced with or null should the original
* character be retained
// tslint:disable-next-line:no-redundant-jsdoc
* @returns The sanitized string
*/
static fold(str?: string, replacement?: string): any;
/**
* Replaces a single character
*
* @param char The character to replace
* @param replacement What string unmapped characters should be replaced with
* @returns A string representing the replacement of the character
*/
static replaceChar(char: any, replacement: any): any;
}