1 | static String unquote_fixSpaces(String s) { |
2 | String _ = unquote(s); |
3 | if (s.startsWith("[[")) |
4 | _ = unquote_fixSpaces_impl(_); |
5 | return _; |
6 | } |
7 | |
8 | // remove invisible spaces at end of line - this will otherwise confuse the engine(s) greatly... |
9 | static String unquote_fixSpaces_impl(String s) { |
10 | s = s.replaceAll("[\t ]+(\r?\n)", "$1"); |
11 | s = s.replaceAll("[\t ]+$", ""); |
12 | return s; |
13 | } |
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: | 804 / 727 |
Referenced in: | [show references] |