Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1029861 // filesContainingText - uses UTF8 encoding by default

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (2810L) is out of date.

static ItIt<File> filesContainingText(S text, Iterable<File> l) {
  byte[] bytes = toUtf8(text);
  ret filterI(iterator(l), f -> fileContainsBytes(f, bytes));
}

static ItIt<File> filesContainingText(Iterable<File> l, S text) {
  ret filesContainingText(text, l);
}

Author comment

Began life as a copy of #1029860

download  show line numbers  debug dex  old transpilations   

Travelled to 5 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1029861
Snippet name: filesContainingText - uses UTF8 encoding by default
Eternal ID of this version: #1029861/4
Text MD5: 6e5c037b0bddc2b5084325207daf9af8
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-09-24 10:00:48
Source code size: 268 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 107 / 159
Version history: 3 change(s)
Referenced in: [show references]