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

9
LINES

< > BotCompany Repo | #1028210 // replaceDollarVarsWithAngleBracketed

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

Libraryless. Click here for Pure Java version (2680L/17K).

1  
sS replaceDollarVarsWithAngleBracketed(S s) {
2  
  LS tok = javaTok(s);
3  
  for (int i = 1; i < l(tok); i += 2) {
4  
    S t = tok.get(i);
5  
    if (isDollarVar(t))
6  
      tok.set(i, angleBracketed(dropDollarPrefix(t)));
7  
  }
8  
  ret join(tok);
9  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028210
Snippet name: replaceDollarVarsWithAngleBracketed
Eternal ID of this version: #1028210/3
Text MD5: 6ff8561ea4ea5b383efd456fd75ed5ed
Transpilation MD5: 63779e7959e51e42b2bea6aa4c57c73f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-05-26 14:04:55
Source code size: 240 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 239 / 362
Version history: 2 change(s)
Referenced in: [show references]