1 |
/* AttributedStringIterator.java -- Class to iterate over AttributedString |
/* AttributedStringIterator.java -- Class to iterate over AttributedString |
2 |
Copyright (C) 1998, 1999, 2004 Free Software Foundation, Inc. |
Copyright (C) 1998, 1999, 2004, 2005 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
228 |
for (int i = 0; i < attribs.length; ++i) |
for (int i = 0; i < attribs.length; ++i) |
229 |
{ |
{ |
230 |
if (pos >= attribs[i].begin_index && |
if (pos >= attribs[i].begin_index && |
231 |
pos <= attribs[i].end_index) |
pos < attribs[i].end_index) |
232 |
{ |
{ |
233 |
Iterator iter = attribute_set.iterator(); |
Iterator iter = attribute_set.iterator(); |
234 |
while(iter.hasNext()) |
while(iter.hasNext()) |
242 |
if (hit) |
if (hit) |
243 |
return runLimit; |
return runLimit; |
244 |
else |
else |
245 |
return -1; |
return ci.getEndIndex(); |
246 |
} |
} |
247 |
|
|
248 |
/*************************************************************************/ |
/*************************************************************************/ |