Method
addUrls
(String text, String addString, Vector urlList)
Source from the content-addressed store, hash-verified
| 175 | } |
| 176 | |
| 177 | private void addUrls(String text, String addString, Vector urlList) { |
| 178 | int pos=0; |
| 179 | int len=text.length(); |
| 180 | while (pos<len) { |
| 181 | int head=text.indexOf(addString, pos); |
| 182 | if (head>=0) { |
| 183 | pos=head; |
| 184 | |
| 185 | while (pos<len) { |
| 186 | char c=text.charAt(pos); |
| 187 | if (c==' ' || c==0x09 || c==0x0d || c==0x0a || c==0xa0 || c==')' || c == '\"' ) |
| 188 | break; |
| 189 | pos++; |
| 190 | } |
| 191 | urlList.addElement(new ListItem(text.substring(head, pos))); |
| 192 | |
| 193 | } else break; |
| 194 | } |
| 195 | } |
| 196 | |
| 197 | public void setEven(boolean even) { |
| 198 | this.even = even; |
Tested by
no test coverage detected