Libraryless. Click here for Pure Java version (4532L/30K).
1 | // param of opening tag |
2 | sbool tagHasClass(LS tok, S className) { |
3 | S c = tagParam(tok, "class"); |
4 | ret cic(splitAtSpace(c), className); |
5 | } |
6 | |
7 | sbool tagHasClass(S tag, S className) { |
8 | S c = tagParam(tag, "class"); |
9 | ret cic(splitAtSpace(c), className); |
10 | } |
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: | #1028647 |
Snippet name: | tagHasClass |
Eternal ID of this version: | #1028647/3 |
Text MD5: | a8c89a75c86410ed259a3c63be8b26eb |
Transpilation MD5: | 7aa6bde1c65e2688479dbf2b2e720d8f |
Author: | stefan |
Category: | javax / html parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-01 17:17:49 |
Source code size: | 260 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 174 / 261 |
Version history: | 2 change(s) |
Referenced in: | [show references] |