static String unquote_fixSpaces(String s) { String _ = unquote(s); if (s.startsWith("[[")) _ = unquote_fixSpaces_impl(_); return _; } // remove invisible spaces at end of line - this will otherwise confuse the engine(s) greatly... static String unquote_fixSpaces_impl(String s) { s = s.replaceAll("[\t ]+(\r?\n)", "$1"); s = s.replaceAll("[\t ]+$", ""); return s; }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003028 |
Snippet name: | unquote_fixSpaces - used in IOIOI parsing |
Eternal ID of this version: | #1003028/1 |
Text MD5: | 44a98c7fa1d799bf203cba8d018096a3 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-04-21 16:45:34 |
Source code size: | 394 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 803 / 725 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #3000382 - Answer for ferdie (>> t = 1, f = 0) #3000383 - Answer for funkoverflow (>> t=1, f=0 okay) |