Libraryless. Click here for Pure Java version (3858L/22K).
sbool tagIs(S token, S tag) { if (!startsWith(token, "<")) false; int l = l(tag); ret regionMatchesIC(token, 1, tag, 0, l) && eqOneOf(charAt(token, l+1), '>', ' '); }
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: | 637 / 965 |
Version history: | 5 change(s) |
Referenced in: | #1002427 - Accellerating 629 (SPIKE) #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1032930 - rtagIs (HTML parsing) #3000382 - Answer for ferdie (>> t = 1, f = 0) |