dom/chrome-webidl/MatchGlob.webidl
author Dave Townsend <dtownsend@oxymoronical.com>
Wed, 06 Feb 2019 11:09:06 -0800
changeset 520643 fbef638149b4426032f58903a9abf480341a3ff8
parent 499115 fbfcfc27ab30434eaac667cbbf9d33ded0abb571
permissions -rw-r--r--
Bug 1518639: Add boilerplate support for a windows remote client and server. r=jimm,froydnj Adds build config and stubs for a windows implementation of the remote client and server. Differential Revision: https://phabricator.services.mozilla.com/D19074

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/**
 * Represents a simple glob pattern matcher. Any occurrence of "*" in the glob
 * pattern matches any literal string of characters in the string being
 * compared. Additionally, if created with `allowQuestion = true`, any
 * occurrence of "?" in the glob matches any single literal character.
 */
[Constructor(DOMString glob, optional boolean allowQuestion = true),
 ChromeOnly, Exposed=Window]
interface MatchGlob {
  /**
   * Returns true if the string matches the glob.
   */
  boolean matches(DOMString string);

  /**
   * The glob string this MatchGlob represents.
   */
  [Constant]
  readonly attribute DOMString glob;
};