/[gzz]/gzz/gzz/vob/DefaultVobMatcher.java
ViewVC logotype

Diff of /gzz/gzz/vob/DefaultVobMatcher.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by benja, Thu Sep 26 11:13:04 2002 UTC revision 1.7 by tjl, Sun Sep 29 14:47:35 2002 UTC
# Line 47  public class DefaultVobMatcher implement Line 47  public class DefaultVobMatcher implement
47              Key k = (Key)o;              Key k = (Key)o;
48              return parent == k.parent && key.equals(k.key);              return parent == k.parent && key.equals(k.key);
49          }          }
50            public String toString() {
51                return "DefaultVobMatcher key: "+key+" parent: "+parent;
52            }
53      }      }
54      void ensure(int n) {      void ensure(int n) {
55          if(n+1 > keyByCs.length) {          if(n+1 > keyByCs.length) {
56              Key[] nu = new Key[2*n+1];              Key[] nu = new Key[2*n+1];
57              System.arraycopy(keyByCs, 0, nu, 0, maxcs);              System.arraycopy(keyByCs, 0, nu, 0, maxcs+1);
58              keyByCs = nu;              keyByCs = nu;
59          }          }
60          if(n > maxcs) maxcs = n;          if(n > maxcs) maxcs = n;
# Line 89  public class DefaultVobMatcher implement Line 92  public class DefaultVobMatcher implement
92          return k == NULL ? null : k;          return k == NULL ? null : k;
93      }      }
94    
95        public void dump() {
96            for(int i=1; i<=maxcs; i++) {
97                if(keyByCs[i] != null) {
98                    pa("CS "+i+": key: "+keyByCs[i]);
99                } else {
100                    pa("CS "+i+" ----------");
101                }
102            }
103        }
104    
105      public int[] interpList(VobMatcher other0) {      public int[] interpList(VobMatcher other0) {
106          DefaultVobMatcher other = (DefaultVobMatcher)other0;          DefaultVobMatcher other = (DefaultVobMatcher)other0;
107          int[] interpList = new int[maxcs+1];          int[] interpList = new int[maxcs+1];

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26