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

6
LINES

< > BotCompany Repo | #1035122 // parseLineAndColumn - mirrors LineAndColumn.toString()

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

Transpiled version (7708L) is out of date.

static LineAndColumn parseLineAndColumn(S s) {
  S re = "\\bLine (" + regexpN2() + "), col (" + regexpN2() + ")";
  LS l = regexpLastGroupsIC(re, s);
  printVars ifdef parseLineAndColumn_debug(+s, +re, +l);
  ret l == null ?: LineAndColumn(parseIntN2(first(l)), parseIntN2(second(l)));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1035122
Snippet name: parseLineAndColumn - mirrors LineAndColumn.toString()
Eternal ID of this version: #1035122/5
Text MD5: 81e60a3c3fe38fd0b89780ac983ddc68
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-30 17:26:41
Source code size: 292 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 148 / 219
Version history: 4 change(s)
Referenced in: [show references]