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

6
LINES

< > BotCompany Repo | #1030676 // transformTimestampsAccordingToCut

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

Libraryless. Click here for Pure Java version (3225L/19K).

sS transformTimestampsAccordingToCut(S text, L<DoubleRange> segments) {
  LS tok = regexpTok("\\d+:[0-9:]*\\d", text);
  tok = mapCodeTokens(tok, t ->
    transformTimestampAccordingToCut(t, segments));
  ret join(tok);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030676
Snippet name: transformTimestampsAccordingToCut
Eternal ID of this version: #1030676/3
Text MD5: 2281b83a53960b9d2701fa08094e6f9f
Transpilation MD5: 1c1913be0039301d4e14fc2c5217c7aa
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-03-03 23:42:03
Source code size: 226 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 181 / 239
Version history: 2 change(s)
Referenced in: [show references]