mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
v1.9.2.1
This commit is contained in:
@@ -50,7 +50,7 @@ class Io_sort_fxt {
|
||||
public String GenRandom(int rows, int pad) {
|
||||
ListAdp list = ListAdp_.new_();
|
||||
for (int i = 0; i < rows; i++)
|
||||
list.Add(Int_.XtoStr_PadBgn(i, pad) + "|");
|
||||
list.Add(Int_.Xto_str_pad_bgn(i, pad) + "|");
|
||||
list.Shuffle();
|
||||
for (int i = 0; i < rows; i++) {
|
||||
String itm = (String)list.FetchAt(i);
|
||||
@@ -60,7 +60,7 @@ class Io_sort_fxt {
|
||||
}
|
||||
public String GenOrdered(int rows, int pad) {
|
||||
for (int i = 0; i < rows; i++)
|
||||
sb.Add(Int_.XtoStr_PadBgn(i, pad) + "|" + "\n");
|
||||
sb.Add(Int_.Xto_str_pad_bgn(i, pad) + "|" + "\n");
|
||||
return sb.XtoStrAndClear();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,11 +25,11 @@ class Io_url_gen_dir implements Io_url_gen {
|
||||
public String Fmt() {return fmt;} public Io_url_gen_dir Fmt_(String v) {fmt = v; return this;} private String fmt = "{0}.csv";
|
||||
public int Fmt_digits() {return fmt_digits;} public Io_url_gen_dir Fmt_digits_(int v) {fmt_digits = v; return this;} private int fmt_digits = 10;
|
||||
public Io_url Cur_url() {return cur_url;} Io_url cur_url;
|
||||
public Io_url Nxt_url() {cur_url = dir.GenSubFil(String_.Format(fmt, Int_.XtoStr_PadBgn(idx++, fmt_digits))); return cur_url;} private int idx = 0;
|
||||
public Io_url Nxt_url() {cur_url = dir.GenSubFil(String_.Format(fmt, Int_.Xto_str_pad_bgn(idx++, fmt_digits))); return cur_url;} private int idx = 0;
|
||||
public Io_url[] Prv_urls() {
|
||||
Io_url[] rv = new Io_url[idx];
|
||||
for (int i = 0; i < idx; i++) {
|
||||
rv[i] = dir.GenSubFil(String_.Format(fmt, Int_.XtoStr_PadBgn(i, fmt_digits)));
|
||||
rv[i] = dir.GenSubFil(String_.Format(fmt, Int_.Xto_str_pad_bgn(i, fmt_digits)));
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user