static bool isNormalQuoted(S s) { int l = l(s); if (!(l >= 2 && s.charAt(0) == '"' && lastChar(s) == '"')) false; int j = 1; while (j < l) if (s.charAt(j) == '"') ret j == l-1; else if (s.charAt(j) == '\\' && j+1 < l) j += 2; else ++j; false; }
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: | #1012783 |
Snippet name: | isNormalQuoted - only recognizes double quotes, but checks for properness |
Eternal ID of this version: | #1012783/1 |
Text MD5: | d025841c2248a31d6459aa4d0dc3723a |
Author: | stefan |
Category: | javax / a.i |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-13 03:18:07 |
Source code size: | 296 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 470 / 514 |
Referenced in: | [show references] |