(String src)
| 174 | } |
| 175 | |
| 176 | public static String toLowerCase(String src){ |
| 177 | StringBuffer dst=new StringBuffer(src); |
| 178 | int len=dst.length(); |
| 179 | for (int i=0; i<len; i++) { |
| 180 | char c=dst.charAt(i); |
| 181 | if (c>'A'-1 && c<'Z'+1) c+='a'-'A'; // default latin chars |
| 182 | // if (c>0x40f && c<0x430) c+=0x430-0x410; // cyrillic chars |
| 183 | // TODO: other schemes by request |
| 184 | dst.setCharAt(i, c); |
| 185 | } |
| 186 | return dst.toString(); |
| 187 | } |
| 188 | public static String[] split(String original, char separator) { |
| 189 | Vector nodes = new Vector(); |
| 190 | // Parse nodes into vector |
no test coverage detected