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

7
LINES

< > BotCompany Repo | #1013685 // isWordsAndSpacesAndLinebreaks

JavaX fragment (include)

1  
static bool isWordsAndSpacesAndLinebreaks(S s) {
2  
  for i over s: {
3  
    char c = s.charAt(i);
4  
    if (c != ' ' && !isLetterOrDigitOrApostrophe(c) && !isLineBreak(c)) false;
5  
  }
6  
  true;
7  
}

Author comment

Began life as a copy of #1012205

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: #1013685
Snippet name: isWordsAndSpacesAndLinebreaks
Eternal ID of this version: #1013685/1
Text MD5: 355aaa696675bf4488e951b53fc2f06a
Author: stefan
Category: javacx
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-22 13:16:18
Source code size: 191 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 444 / 472
Referenced in: [show references]