Libraryless. Click here for Pure Java version (2670L/16K).
sS extractKeywordPlusBracketed(S keyword, S s) { LS tok = javaTokWithCurlyBrackets(s); if (countCodeTokens(tok) == 2 && eq(firstCodeToken(tok), keyword) && tok_isRoundOrCurlyBracketed(secondCodeToken(tok))) ret tok_deRoundOrCurlyBracket(secondCodeToken(tok)); null; }
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: | #1026027 |
| Snippet name: | extractKeywordPlusBracketed |
| Eternal ID of this version: | #1026027/8 |
| Text MD5: | 629ea8b8c4a40e3f768e60fe497fc229 |
| Transpilation MD5: | 9bca46d3320d988ab9e60953a0072efd |
| Author: | stefan |
| Category: | javax / parsing |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-01-05 01:36:53 |
| Source code size: | 289 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 507 / 708 |
| Version history: | 7 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1026553 - extractKeywordPlusBracketed_keepComments |