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

3
LINES

< > BotCompany Repo | #1030911 // beforeVerticalBar (also trims, returns full if no bar)

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

Libraryless. Click here for Pure Java version (2818L/16K).

sS beforeVerticalBar(S s) {
  ret trimSubstring(s, 0, smartIndexOf(s, '|'));
}

Author comment

Began life as a copy of #1013201

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1030911
Snippet name: beforeVerticalBar (also trims, returns full if no bar)
Eternal ID of this version: #1030911/1
Text MD5: 365b1d3cd11ef24bfc9bc621473a64d6
Transpilation MD5: 0ae1ab13e748f07729f2630f829ed4ab
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-04-09 16:48:28
Source code size: 80 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 210 / 297
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)