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

3
LINES

< > TinyBrain | #1013629 - getLeadingSpaces - also tabs

JavaX fragment (include)

1  
static S getLeadingSpaces(S s) {
2  
  ret substring(s, 0, countLeadingSpaces(s));
3  
}

Author comment

Began life as a copy of #1013628

download  show line numbers  debug dex   

Travelled to 6 computer(s): cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1013629
Snippet name: getLeadingSpaces - also tabs
Eternal ID of this version: #1013629/1
Text MD5: e37df474805911e3f48d0b6a40b20cd0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-12 09:41:23
Source code size: 82 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 63 / 75
Referenced in: [show]