sS tabsToSpaces(S s) { ret tabsToSpaces(2, s); } sS tabsToSpaces(int spacesPerTab, S s) { ret replace(s, "\t", repSpace(spacesPerTab)); }
download show line numbers debug dex old transpilations
Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1020372 |
Snippet name: | tabsToSpaces |
Eternal ID of this version: | #1020372/3 |
Text MD5: | b81638ca0dea7e79bde8269c7ddfb38c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-06-07 18:48:17 |
Source code size: | 148 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 315 / 367 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1027145 - tabsTo4Spaces #1028288 - tabsToSpacesWithWarning - print warning if there are any tabs. use 2 spaces per tab #1030346 - indentWidth |