1 | static bool isProperlyQuoted(S s) { |
2 | ret s.length() >= 2 |
3 | && s.startsWith("\"") |
4 | && s.endsWith("\"") |
5 | && (!s.endsWith("\\\"") || s.endsWith("\\\\\"")) |
6 | && !containsNewLine(s); |
7 | } |
Began life as a copy of #1001135
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003630 |
Snippet name: | isProperlyQuoted - huh? |
Eternal ID of this version: | #1003630/3 |
Text MD5: | 570a4bc9a4129bca85f8629b6a3f2387 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-09 18:07:47 |
Source code size: | 196 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 642 / 811 |
Version history: | 2 change(s) |
Referenced in: | [show references] |