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

12
LINES

< > BotCompany Repo | #1033599 // FreeOfLocalBlockedKeyword

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

Libraryless. Click here for Pure Java version (10237L/56K).

sclass FreeOfLocalBlockedKeyword is IPred<S> {
  RegExp regExp;
  
  *() {
    LS words = tlft(loadJavaXSecretTextFile("hidden-keywords.txt"));
    regExp = empty(words) ? null : cicAnyToRegexp(words);
  }
  
  public Bool get(S s) {
    ret regExp == null || !regExp.containedIn(s);
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 5 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1033599
Snippet name: FreeOfLocalBlockedKeyword
Eternal ID of this version: #1033599/5
Text MD5: cc08398be14be72052a2e43322d73e82
Transpilation MD5: 9020a4cdf6d37bf23e7eb7a75d6a0279
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-11-04 23:12:35
Source code size: 300 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 175 / 308
Version history: 4 change(s)
Referenced in: [show references]