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

6
LINES

< > BotCompany Repo | #1009164 // isMultilineQuoted - tests only the beginning of the string

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (9140L/50K).

static bool isMultilineQuoted(S s) {
  if (!startsWith(s, "[")) false;
  int i = 1, n = s.length();
  while (i < n && s.charAt(i) == '=') ++i;
  ret i < n && s.charAt(i) == '[';
}

Author comment

Began life as a copy of #1001135

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1009164
Snippet name: isMultilineQuoted - tests only the beginning of the string
Eternal ID of this version: #1009164/3
Text MD5: de56f625dfc422b5135f1927fe9dcbae
Transpilation MD5: c89e0fc48394f978db05873225658518
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-05-31 04:06:11
Source code size: 184 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 519 / 1193
Version history: 2 change(s)
Referenced in: [show references]