Libraryless. Click here for Pure Java version (2675L/16K).
1 | sS extractKeywordPlusBracketed_keepComments(S keyword, S s) { |
2 | LS tok = javaTokWithCurlyBrackets(s); |
3 | if (countCodeTokens(tok) == 2 && eq(firstCodeToken(tok), keyword) |
4 | && tok_isRoundOrCurlyBracketed(secondCodeToken(tok))) |
5 | ret tok_deRoundOrCurlyBracket_keepSpaces(secondCodeToken(tok)); |
6 | null; |
7 | } |
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: | 292 / 393 |
Referenced in: | [show references] |