Libraryless. Click here for Pure Java version (2670L/16K).
1 | sS extractKeywordPlusBracketed(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(secondCodeToken(tok)); |
6 | null; |
7 | } |
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: | 506 / 708 |
| Version history: | 7 change(s) |
| Referenced in: | [show references] |