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   

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

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: 23 / 52
Version history: 3 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1029861 & http://1029861.tinybrain.de