class getcode{
String codebook;
int[] x=new int[10000];
int[] y=new int[10000];
String xml[]=new String[10000];
String com[]=new String[10000];
int tsecode[]=new int[10000];
int s,tsenumber;
int xmlnumber;
void makedata(){
tse tokyo=new tse();
tokyo.makedata();
codebook=tokyo.codebook;
xymaker(codebook);
for(s=1;s<xmlnumber+1;s++){
xml[s]=xmlmaker(s,codebook);
}
tsenumber=xmlnumber/2;
for(s=1;s<tsenumber+1;s++){
com[s]=xml[2*s];
tsecode[s]=Integer.parseInt(xml[2*s-1]);
}
}
void xymaker(String str){
int p1;
int s;
s=1;
p1=str.indexOf("<");
x[1]=p1;
while(p1>-1){
p1=str.indexOf("<",p1+1);
if(p1>-1)s=s+1;
if(p1>-1)x[s]=p1;
}
xmlnumber=s;
for(s=1;s<xmlnumber+1;s++){
y[s]=str.indexOf(">",x[s]);
}
}
String xmlmaker(int s,String str){
int p1,p2;
String bara;
p1=x[s];
p2=y[s];
bara=str.substring(p1+1,p2);
return bara;
}
}
最終更新:2011年04月12日 05:15