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 PHP port # * @author Richard Clamp Perl version # * @copyright 2004-2005 Fabien Potencier # * @copyright 2002 Richard Clamp ' 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 PHP port # * @author Richard Clamp Perl version # * @copyright 2004-2005 Fabien Potencier # * @copyright 2002 Richard Clamp # */ # class Glob # { # /** # * Returns a regexp which is the equivalent of the glob pattern.' traits: [] interfaces: - glob