CoolFace
Apppublic

Pinsave/counterstrike

sourceHugging Faceupdated 3mo agoView on Hugging Face
1likes
lib.es2020.string.d.ts45 linesDownload Raw Back to lib
1/*! *****************************************************************************2Copyright (c) Microsoft Corporation. All rights reserved.3Licensed under the Apache License, Version 2.0 (the "License"); you may not use4this file except in compliance with the License. You may obtain a copy of the5License at http://www.apache.org/licenses/LICENSE-2.06 7THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY8KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED9WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,10MERCHANTABLITY OR NON-INFRINGEMENT.11 12See the Apache Version 2.0 License for specific language governing permissions13and limitations under the License.14***************************************************************************** */15 16 17/// <reference no-default-lib="true"/>18 19/// <reference lib="es2015.iterable" />20/// <reference lib="es2020.intl" />21/// <reference lib="es2020.symbol.wellknown" />22 23interface String {24    /**25     * Matches a string with a regular expression, and returns an iterable of matches26     * containing the results of that search.27     * @param regexp A variable name or string literal containing the regular expression pattern and flags.28     */29    matchAll(regexp: RegExp): RegExpStringIterator<RegExpExecArray>;30 31    /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */32    toLocaleLowerCase(locales?: Intl.LocalesArgument): string;33 34    /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */35    toLocaleUpperCase(locales?: Intl.LocalesArgument): string;36 37    /**38     * Determines whether two strings are equivalent in the current or specified locale.39     * @param that String to compare to target string40     * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.41     * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.42     */43    localeCompare(that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;44}45