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

6
LINES

< > BotCompany Repo | #1035110 // g22_parseCharRanges

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

Libraryless. Click here for Pure Java version (7902L/44K).

static L<IntRange> g22_parseCharRanges(S s) {
  ret concatMap_lists(splitAtComma_trim(s), item ->
    isQuoted(item)
      ? map(characters(unquote(item)), c -> intRange_incl(c, c))
      : ll(parseHexRange(item)));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035110
Snippet name: g22_parseCharRanges
Eternal ID of this version: #1035110/2
Text MD5: afa3318a5d4592d6fe5f790e576d70aa
Transpilation MD5: 51a990755fafe0f3851c2027af75797b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-30 03:38:10
Source code size: 222 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 132 / 198
Version history: 1 change(s)
Referenced in: [show references]