Libraryless. Click here for Pure Java version (2675L/16K).
sS extractKeywordPlusBracketed_keepComments(S keyword, S s) { LS tok = javaTokWithCurlyBrackets(s); if (countCodeTokens(tok) == 2 && eq(firstCodeToken(tok), keyword) && tok_isRoundOrCurlyBracketed(secondCodeToken(tok))) ret tok_deRoundOrCurlyBracket_keepSpaces(secondCodeToken(tok)); null; }
Began life as a copy of #1026027
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1026553 |
Snippet name: | extractKeywordPlusBracketed_keepComments |
Eternal ID of this version: | #1026553/1 |
Text MD5: | 34fcfdf5cd41962043da373b7ce56acd |
Transpilation MD5: | e5913e09134def1341270d5d8ee859f1 |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-01-12 16:27:56 |
Source code size: | 313 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 291 / 391 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |