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

14
LINES

< > BotCompany Repo | #1025367 // magicQuoteInputForThisProgram

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

Libraryless. Click here for Pure Java version (7897L/55K).

scope magicQuoteInputForThisProgram.

static L<FunctionNameAndPattern> #matchers;

static LS magicQuoteInputForThisProgram(S input, O... _) {
  Cl<S> inputs = magicQuotes(input); // all quoted variants
  if (matchers == null)
    matchers = matchingPatternsInJavaXSource_withFunctions(
      boolPar useTranspiled(_) ? getServerTranspiledWithoutLibs(programID())
      : programID());
  ret filter(inputs, i -> matchedByAnyFunctionNameAndPattern(matchers, i)); // filter quoted inputs that match
}

end scope

Author comment

Began life as a copy of #1025366

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1025367
Snippet name: magicQuoteInputForThisProgram
Eternal ID of this version: #1025367/3
Text MD5: 6519d3bcdcf9dfd54c19b375b2658f57
Transpilation MD5: 9e2cf22fcc94615321c9785d2ca2a335
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-11 02:21:52
Source code size: 521 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 169 / 254
Version history: 2 change(s)
Referenced in: [show references]