105 lines
2.1 KiB
YAML
105 lines
2.1 KiB
YAML
name: Glob
|
|
class_comment: '# * Glob matches globbing patterns against text.
|
|
|
|
# *
|
|
|
|
# * if match_glob("foo.*", "foo.bar") echo "matched\n";
|
|
|
|
# *
|
|
|
|
# * // prints foo.bar and foo.baz
|
|
|
|
# * $regex = glob_to_regex("foo.*");
|
|
|
|
# * for ([''foo.bar'', ''foo.baz'', ''foo'', ''bar''] as $t)
|
|
|
|
# * {
|
|
|
|
# * if (/$regex/) echo "matched: $car\n";
|
|
|
|
# * }
|
|
|
|
# *
|
|
|
|
# * Glob implements glob(3) style matching that can be used to match
|
|
|
|
# * against text, rather than fetching names from a filesystem.
|
|
|
|
# *
|
|
|
|
# * Based on the Perl Text::Glob module.
|
|
|
|
# *
|
|
|
|
# * @author Fabien Potencier <fabien@symfony.com> PHP port
|
|
|
|
# * @author Richard Clamp <richardc@unixbeard.net> Perl version
|
|
|
|
# * @copyright 2004-2005 Fabien Potencier <fabien@symfony.com>
|
|
|
|
# * @copyright 2002 Richard Clamp <richardc@unixbeard.net>'
|
|
dependencies: []
|
|
properties: []
|
|
methods:
|
|
- name: toRegex
|
|
visibility: public
|
|
parameters:
|
|
- name: glob
|
|
- name: strictLeadingDot
|
|
default: 'true'
|
|
- name: strictWildcardSlash
|
|
default: 'true'
|
|
- name: delimiter
|
|
default: '''#'''
|
|
comment: '# * Glob matches globbing patterns against text.
|
|
|
|
# *
|
|
|
|
# * if match_glob("foo.*", "foo.bar") echo "matched\n";
|
|
|
|
# *
|
|
|
|
# * // prints foo.bar and foo.baz
|
|
|
|
# * $regex = glob_to_regex("foo.*");
|
|
|
|
# * for ([''foo.bar'', ''foo.baz'', ''foo'', ''bar''] as $t)
|
|
|
|
# * {
|
|
|
|
# * if (/$regex/) echo "matched: $car\n";
|
|
|
|
# * }
|
|
|
|
# *
|
|
|
|
# * Glob implements glob(3) style matching that can be used to match
|
|
|
|
# * against text, rather than fetching names from a filesystem.
|
|
|
|
# *
|
|
|
|
# * Based on the Perl Text::Glob module.
|
|
|
|
# *
|
|
|
|
# * @author Fabien Potencier <fabien@symfony.com> PHP port
|
|
|
|
# * @author Richard Clamp <richardc@unixbeard.net> Perl version
|
|
|
|
# * @copyright 2004-2005 Fabien Potencier <fabien@symfony.com>
|
|
|
|
# * @copyright 2002 Richard Clamp <richardc@unixbeard.net>
|
|
|
|
# */
|
|
|
|
# class Glob
|
|
|
|
# {
|
|
|
|
# /**
|
|
|
|
# * Returns a regexp which is the equivalent of the glob pattern.'
|
|
traits: []
|
|
interfaces:
|
|
- glob
|