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

11
LINES

< > BotCompany Repo | #1005591 // structure_isMarker - special function for structure()

JavaX fragment (include)

1  
static boolean structure_isMarker(S s, int i, int j) {
2  
  if (i >= j) ret false;
3  
  if (s.charAt(i) != 'm') ret false;
4  
  ++i;
5  
  while (i < j) {
6  
    char c = s.charAt(i);
7  
    if (c < '0' || c > '9') ret false;
8  
    ++i;
9  
  }
10  
  ret true;
11  
}

Author comment

Began life as a copy of #1000567

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005591
Snippet name: structure_isMarker - special function for structure()
Eternal ID of this version: #1005591/1
Text MD5: c64c1a28ca1705b856fedbb37c2bf5a4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-11-28 20:20:14
Source code size: 243 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 510 / 562
Referenced in: [show references]