Lines Matching refs:args
166 public void columns(String args[]) { in columns() argument
167 cols = args; in columns()
170 public void types(String args[]) { in types() argument
174 public boolean newrow(String args[]) { in newrow() argument
179 if (args.length == 0) { in newrow()
185 for (i = 0; i < args.length; i++) { in newrow()
187 args[i] == null ? "NULL" : args[i]); in newrow()
193 colwidth = new int[args.length]; in newrow()
194 for (i = 0; i < args.length; i++) { in newrow()
210 if (args.length == 0) { in newrow()
214 for (i = 0; i < args.length; i++) { in newrow()
215 pw.print(csep + (args[i] == null ? "NULL" : args[i])); in newrow()
223 for (i = 0; i < args.length; i++) { in newrow()
225 (i == args.length - 1 ? "\n" : sep)); in newrow()
228 if (args.length == 0) { in newrow()
231 for (i = 0; i < args.length; i++) { in newrow()
232 pw.print(args[i] == null ? "NULL" : args[i]); in newrow()
235 } else if (i < args.length - 1) { in newrow()
244 for (i = 0; i < args.length; i++) { in newrow()
249 if (args.length == 0) { in newrow()
253 for (i = 0; i < args.length; i++) { in newrow()
254 pw.print("<TD>" + html_quote(args[i]) + "</TD>"); in newrow()
259 if (args.length == 0) { in newrow()
267 for (i = 0; i < args.length; i++) { in newrow()
269 if (args[i] == null) { in newrow()
271 } else if (is_numeric(args[i])) { in newrow()
272 pw.print(tsep + args[i]); in newrow()
274 pw.print(tsep + sql_quote(args[i])); in newrow()
280 if (args.length == 0) { in newrow()
288 for (i = 0; i < args.length; i++) { in newrow()
290 pw.print(tsep + args[i]); in newrow()
305 String args[] = new String[n - 1]; in do_meta() local
308 args[i] = st.nextToken(); in do_meta()
312 new DBDump(this, args); in do_meta()
316 if (args.length > 0 && in do_meta()
317 (args[0].startsWith("y") || args[0].startsWith("on"))) { in do_meta()
330 if (args.length > 0 && in do_meta()
331 (args[0].startsWith("y") || args[0].startsWith("on"))) { in do_meta()
353 if (args.length > 0) { in do_meta()
354 if (args[0].compareTo("line") == 0) { in do_meta()
356 } else if (args[0].compareTo("column") == 0) { in do_meta()
358 } else if (args[0].compareTo("list") == 0) { in do_meta()
360 } else if (args[0].compareTo("html") == 0) { in do_meta()
362 } else if (args[0].compareTo("insert") == 0) { in do_meta()
364 if (args.length > 1) { in do_meta()
365 destTable = args[1]; in do_meta()
372 if (args.length > 0) { in do_meta()
373 sep = args[0]; in do_meta()
379 if (args.length > 0) { in do_meta()
382 qarg[0] = args[0]; in do_meta()
411 if (args.length > 0) { in do_meta()
414 qarg[0] = args[0]; in do_meta()
441 db.set_encoding(args.length > 0 ? args[0] : null); in do_meta()
450 db.rekey(args.length > 0 ? args[0] : null); in do_meta()
529 public static void main(String args[]) { in main() argument
537 for (int i = 0; i < args.length; i++) { in main()
538 if(args[i].compareTo("-html") ==0) { in main()
540 } else if (args[i].compareTo("-list") == 0) { in main()
542 } else if (args[i].compareTo("-line") == 0) { in main()
544 } else if (i < args.length - 1 && in main()
545 args[i].compareTo("-separator") == 0) { in main()
547 s.sep = args[i]; in main()
548 } else if (args[i].compareTo("-header") == 0) { in main()
550 } else if (args[i].compareTo("-noheader") == 0) { in main()
552 } else if (args[i].compareTo("-echo") == 0) { in main()
554 } else if (args[i].compareTo("-key") == 0) { in main()
556 key = args[i]; in main()
558 dbname = args[i]; in main()
560 sql = args[i]; in main()
645 public void types(String args[]) { in types() argument
649 public boolean newrow(String args[]) { in newrow() argument
650 if (args.length != 3) { in newrow()
653 s.pw.println(args[2] + ";"); in newrow()
654 if (args[1].compareTo("table") == 0) { in newrow()
657 s2.set_table_name(args[0]); in newrow()
659 qargs[0] = args[0]; in newrow()