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

13
LINES

< > BotCompany Repo | #1006970 // charRange - string of all Unicode characters in a range

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

Libraryless. Click here for Pure Java version (3816L/22K).

sS charRange(char first, char last) {
  new StringBuilder buf;
  while (first <= last) buf.append(first++);
  ret str(buf);
}

sS charRange(int first, int last) {
  ret charRange((char) first, (char) last);
}

static L<Char> charRange() {
  ret listFromFunction((IF1<Int, Char>) i -> intToChar(i), 0x10000);
}

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: #1006970
Snippet name: charRange - string of all Unicode characters in a range
Eternal ID of this version: #1006970/10
Text MD5: 804683d37eac568e3f2296135e243bbb
Transpilation MD5: 36b3066545aede770cf394666677eb68
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-16 07:28:57
Source code size: 321 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 413 / 532
Version history: 9 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)