1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 * Represents a simple glob pattern matcher. Any occurrence of "*" in the glob
7 * pattern matches any literal string of characters in the string being
8 * compared. Additionally, if created with `allowQuestion = true`, any
9 * occurrence of "?" in the glob matches any single literal character.
11 [ChromeOnly, Exposed=Window]
14 constructor(UTF8String glob, optional boolean allowQuestion = true);
17 * Returns true if the string matches the glob.
19 boolean matches(UTF8String string);
22 * The glob string this MatchGlob represents.
25 readonly attribute UTF8String glob;