GRAYBYTE WORDPRESS FILE MANAGER9412

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/ruby19/lib64/ruby/1.9.1/syck/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/ruby19/lib64/ruby/1.9.1/syck//ypath.rb
#
# YAML::YPath
#

warn "#{caller[0]}: YAML::YPath is deprecated" if $VERBOSE

module Syck

    class YPath
        attr_accessor :segments, :predicates, :flags
        def initialize( str )
            @segments = []
            @predicates = []
            @flags = nil
            while str =~ /^\/?(\/|[^\/\[]+)(?:\[([^\]]+)\])?/
                @segments.push $1
                @predicates.push $2
                str = $'
            end
            unless str.to_s.empty?
                @segments += str.split( "/" )
            end
            if @segments.length == 0
                @segments.push "."
            end
        end
        def self.each_path( str )
            #
            # Find choices
            #
            paths = []
            str = "(#{ str })"
            while str.sub!( /\(([^()]+)\)/, "\n#{ paths.length }\n" )
                paths.push $1.split( '|' )
            end

            #
            # Construct all possible paths
            #
            all = [ str ]
            ( paths.length - 1 ).downto( 0 ) do |i|
                all = all.collect do |a|
                    paths[i].collect do |p|
                        a.gsub( /\n#{ i }\n/, p )
                    end
                end.flatten.uniq
            end
            all.collect do |path|
                yield YPath.new( path )
            end
        end
    end

end

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 03 2024 22:50:37
root / root
0755
baseemitter.rb
4.847 KB
April 03 2010 21:50:47
root / linksafe
0644
basenode.rb
6.466 KB
July 19 2010 04:54:06
root / linksafe
0644
constants.rb
1.156 KB
April 03 2010 21:50:47
root / linksafe
0644
encoding.rb
0.733 KB
April 03 2010 21:50:47
root / linksafe
0644
error.rb
1.04 KB
April 03 2010 21:50:47
root / linksafe
0644
loader.rb
0.289 KB
April 03 2010 21:50:47
root / linksafe
0644
rubytypes.rb
14.491 KB
March 06 2012 02:43:21
root / linksafe
0644
stream.rb
0.75 KB
April 03 2010 21:50:47
root / linksafe
0644
stringio.rb
1.979 KB
April 03 2010 21:50:47
root / linksafe
0644
syck.rb
0.189 KB
May 15 2011 11:55:52
root / linksafe
0644
tag.rb
3.164 KB
April 16 2010 20:31:59
root / linksafe
0644
types.rb
4.879 KB
April 03 2010 21:50:47
root / linksafe
0644
yamlnode.rb
1.19 KB
April 03 2010 21:50:47
root / linksafe
0644
ypath.rb
1.354 KB
April 03 2010 21:50:47
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF