Libraryless. Click here for Pure Java version (3858L/22K).
1 | sbool tagIs(S token, S tag) {
|
2 | if (!startsWith(token, "<")) false; |
3 | int l = l(tag); |
4 | ret regionMatchesIC(token, 1, tag, 0, l) |
5 | && eqOneOf(charAt(token, l+1), '>', ' '); |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1000862 |
| Snippet name: | tagIs (HTML parsing) |
| Eternal ID of this version: | #1000862/6 |
| Text MD5: | 18e7a9f2e4db8e6d233e9af80d4b1fe2 |
| Transpilation MD5: | 35bc0ff4c1654ef4d9829a8431630d0d |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-10-11 00:46:55 |
| Source code size: | 181 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 875 / 1258 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |