1 | static bool isProbableChatLog(File f) {
|
2 | try {
|
3 | ret isProbableChatLog(toLines(f)); // TODO: scan one line |
4 | } catch {
|
5 | false; |
6 | } |
7 | } |
8 | |
9 | static bool isProbableChatLog(L<S> lines) {
|
10 | if (empty(lines)) false; |
11 | S s = lines.get(0); |
12 | ret s.startsWith("[") && contains(s, ']');
|
13 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1003917 |
| Snippet name: | isProbableChatLog |
| Eternal ID of this version: | #1003917/1 |
| Text MD5: | 3164f72eed70185da0ab8498298f74c9 |
| Author: | stefan |
| Category: | javax / talking robots |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-07-31 23:07:55 |
| Source code size: | 291 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 782 / 754 |
| Referenced in: | [show references] |