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

4
LINES

< > BotCompany Repo | #1001262 // isTag

JavaX fragment (include)

static boolean isTag(S token, S tag) {
  return token.regionMatches(true, 0, "<" + tag + " ", 0, tag.length()+2)
    || token.regionMatches(true, 0, "<" + tag + ">", 0, tag.length()+2);
}

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: #1001262
Snippet name: isTag
Eternal ID of this version: #1001262/1
Text MD5: 16aa75479c704241b432652d4f1caf49
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-06 11:52:28
Source code size: 190 bytes / 4 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 716 / 1513
Referenced in: #1002427 - Accellerating 629 (SPIKE)
#1005090 - isOpeningTag - check if it's not a self-closing tag (ending with />)
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#3000382 - Answer for ferdie (>> t = 1, f = 0)