Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1001135 // isQuoted - now accurate by default

JavaX fragment (include)

// supports the usual quotings (", variable length double brackets) except ' quoting
static boolean isQuoted(S s) {
  ifdef isQuoted_dirty
  if (isNormalQuoted_dirty(s)) true;
  endifdef
  ifndef isQuoted_dirty
  if (isNormalQuoted(s)) true; // use the exact version
  endifndef
  ret isMultilineQuoted(s);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1001135
Snippet name: isQuoted - now accurate by default
Eternal ID of this version: #1001135/11
Text MD5: ba34cb51914b6966fe1e6eff4605f488
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-19 17:19:57
Source code size: 317 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 742 / 4473
Version history: 10 change(s)
Referenced in: #1002427 - Accellerating 629 (SPIKE)
#1003630 - isProperlyQuoted - huh?
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1009164 - isMultilineQuoted - tests only the beginning of the string
#1011475 - isNormallyQuoted
#1012801 - isNormalQuoted_dirty - fooled by things like "\"a\" and \"b\""
#1012990 - isQuoted_quick (non-accurate version that is OK for single tokens)
#3000382 - Answer for ferdie (>> t = 1, f = 0)
#3000383 - Answer for funkoverflow (>> t=1, f=0 okay)