Lines Matching defs:line
20 * through a constructor, or it can be run from the command line. For additional information on the
21 * command line results, see the <CODE>main</CODE> method.
167 String line;
177 while ((line = br.readLine()) != null) {
179 if (!line.trim().equals("")) count++;
180 if (count == 1 && !line.startsWith("# @file")) {
189 if (line.indexOf("#") >= 0) {
190 commentLine = line.substring(line.indexOf("#")+1,line.length());
191 line = line.substring(0,line.indexOf("#"));
234 } // end check of comment line
235 if (line.trim().length() < 1) continue;
237 // Grab the name and value (translation) from the line
240 char array[] = line.toCharArray();
253 item.setTranslation(line.substring(line.indexOf("=")+1,line.length()).trim());
288 while ((line = br.readLine()) != null) {
291 if (line.indexOf("#") >= 0) {
292 commentLine = line.substring(line.indexOf("#")+1,line.length());
293 line = line.substring(0,line.indexOf("#"));
336 } // end check of comment line
337 if (line.trim().length() < 1) continue;
339 // Grab the name and value (translation) from the line
342 char array[] = line.toCharArray();
354 item.setTranslation(line.substring(line.indexOf("=")+1,line.length()).trim());
359 } // end while - next line
900 // Return a hashtable of the tags in a comment line (i.e. the text after each '@' character) and their values
901 private Hashtable getDescriptors(Hashtable result, String line) {
903 if (line == null || line.length() <= 0 || line.indexOf("@") < 0) return result;
907 line = line.substring(line.indexOf("@")+1, line.length());
909 if (line.indexOf(" ") < 0) return result; // This shouldn't happen if things are formatted right
911 String name = line.substring(0,line.indexOf(" ")).trim();
913 line = line.substring(line.indexOf(" "), line.length());
915 if (line.indexOf("@") >= 0) {
916 result.put(name,line.substring(0,line.indexOf("@")).trim());
918 // Otherwise we take the rest of the characters in the line
920 result.put(name,line.trim());
924 return getDescriptors(result, line.substring(line.indexOf("@"), line.length()));