function $UrlMatcherFactory() {
  /**
   * Creates a {@link UrlMatcher} for the specified pattern.
   * @function
   * @name $urlMatcherFactory#compile
   * @methodOf $urlMatcherFactory
   * @param {string} pattern  The URL pattern.
   * @return {UrlMatcher}  The UrlMatcher.
   */
  this.compile = function (pattern) {
    return new UrlMatcher(pattern);
  };

  /**
   * Returns true if the specified object is a UrlMatcher, or false otherwise.
   * @function
   * @name $urlMatcherFactory#isMatcher
   * @methodOf $urlMatcherFactory
   * @param {Object} o
   * @return {boolean}
   */
  this.isMatcher = function (o) {
    return isObject(o) && isFunction(o.exec) && isFunction(o.format) && isFunction(o.concat);
  };

  this.$get = function () {
    return this;
  };
}
/**
 * Service. Factory for {@link UrlMatcher} instances. The factory is also available to providers
 * under the name `$urlMatcherFactoryProvider`.
 * @constructor
 * @name $urlMatcherFactory
 */
Service. Factory for  UrlMatcher instances. The factory is also available to providers
under the name `$urlMatcherFactoryProvider`.
Service . Factory for UrlMatcher instances . The factory is also available to providers under the name ` $urlMatcherFactoryProvider ` .
function $UrlMatcherFactory() {
  this.compile = function (pattern) {
    return new UrlMatcher(pattern);
  };
  this.isMatcher = function (o) {
    return isObject(o) && isFunction(o.exec) && isFunction(o.format) && isFunction(o.concat);
  };
  this.$get = function () {
    return this;
  };
}
function $UrlMatcherFactory ( ) { this . compile = function ( pattern ) { return new UrlMatcher ( pattern ) ; } ; this . isMatcher = function ( o ) { return isObject ( o ) && isFunction ( o . exec ) && isFunction ( o . format ) && isFunction ( o . concat ) ; } ; this . $get = function ( ) { return this ; } ; }
Service.
Service .
/**
   * Creates a {@link UrlMatcher} for the specified pattern.
   * @function
   * @name $urlMatcherFactory#compile
   * @methodOf $urlMatcherFactory
   * @param {string} pattern  The URL pattern.
   * @return {UrlMatcher}  The UrlMatcher.
   */ /**
   * Returns true if the specified object is a UrlMatcher, or false otherwise.
   * @function
   * @name $urlMatcherFactory#isMatcher
   * @methodOf $urlMatcherFactory
   * @param {Object} o
   * @return {boolean}
   */