Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1000862 // tagIs (HTML parsing)

JavaX fragment (include) [tags: use-pretranspiled]

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: 575 / 876
Version history: 5 change(s)
Referenced in: [show references]