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

5
LINES

< > BotCompany Repo | #1001156 // leftScanModifiers

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

Libraryless. Click here for Pure Java version (4995L/28K).

static int leftScanModifiers(L<S> tok, int i, Cl<S> modifiers default getJavaModifiers()) {
  while (i > 1 && contains(modifiers, tok.get(i-2)))
    i -= 2;
  return i;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1001156
Snippet name: leftScanModifiers
Eternal ID of this version: #1001156/3
Text MD5: a763ace2090887a694640239bee32d6c
Transpilation MD5: 907ae7276b942b6346dd1f795af756c3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-03 03:00:16
Source code size: 176 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 623 / 2323
Version history: 2 change(s)
Referenced in: #1002427 - Accellerating 629 (SPIKE)
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1013474 - tok_skipModifiers
#1027890 - tok_leftScanCustomModifiers
#1027999 - tok_leftScanType
#1034462 - tok_beginningOfLine - returns first token on line
#3000382 - Answer for ferdie (>> t = 1, f = 0)
#3000383 - Answer for funkoverflow (>> t=1, f=0 okay)