/[classpath]/classpath/java/text/RuleBasedCollator.java
ViewVC logotype

Diff of /classpath/java/text/RuleBasedCollator.java

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

revision 1.9 by mkoch, Tue Jun 24 07:12:15 2003 UTC revision 1.10 by mkoch, Thu Jun 26 18:03:21 2003 UTC
# Line 199  public class RuleBasedCollator extends C Line 199  public class RuleBasedCollator extends C
199          if (c == '<')          if (c == '<')
200            {            {
201              ignore_chars = false;              ignore_chars = false;
202                CollationElement e = new CollationElement(sb.toString(), primary_seq,
203                                                          secondary_seq,
204                                                          tertiary_seq);
205              secondary_seq = 0;              secondary_seq = 0;
206              tertiary_seq = 0;              tertiary_seq = 0;
207              ++primary_seq;              ++primary_seq;
208    
             CollationElement e = new CollationElement(sb.toString(), primary_seq,  
                                                       secondary_seq,  
                                                       tertiary_seq);  
209              v.add(e);              v.add(e);
210              sb.setLength(0);              sb.setLength(0);
211              continue;              continue;
# Line 217  public class RuleBasedCollator extends C Line 217  public class RuleBasedCollator extends C
217              if (primary_seq == 0)              if (primary_seq == 0)
218                throw new ParseException(rules, i);                throw new ParseException(rules, i);
219    
             ++secondary_seq;  
             tertiary_seq = 0;  
   
220              CollationElement e = new CollationElement(sb.toString(), primary_seq,              CollationElement e = new CollationElement(sb.toString(), primary_seq,
221                                                        secondary_seq,                                                        secondary_seq,
222                                                        tertiary_seq);                                                        tertiary_seq);
223                ++secondary_seq;
224                tertiary_seq = 0;
225    
226              v.add(e);              v.add(e);
227              sb.setLength(0);              sb.setLength(0);
228              continue;              continue;
# Line 234  public class RuleBasedCollator extends C Line 234  public class RuleBasedCollator extends C
234              if (primary_seq == 0)              if (primary_seq == 0)
235                throw new ParseException(rules, i);                throw new ParseException(rules, i);
236    
             ++tertiary_seq;  
   
237              CollationElement e = new CollationElement(sb.toString(), primary_seq,              CollationElement e = new CollationElement(sb.toString(), primary_seq,
238                                                        secondary_seq,                                                        secondary_seq,
239                                                        tertiary_seq);                                                        tertiary_seq);
240                ++tertiary_seq;
241    
242              v.add(e);              v.add(e);
243              sb.setLength(0);              sb.setLength(0);
244              continue;              continue;
# Line 282  public class RuleBasedCollator extends C Line 282  public class RuleBasedCollator extends C
282          sb.append(c);          sb.append(c);
283        }        }
284    
285        if (sb.length() > 0)
286          {
287            CollationElement e = new CollationElement (sb.toString(), primary_seq,
288                                                       secondary_seq, tertiary_seq);
289            v.add (e);
290          }
291    
292      ce_table = v.toArray();      ce_table = v.toArray();
293    }    }
294    

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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