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

7
LINES

< > BotCompany Repo | #1018223 // isPunctuationCharacter

JavaX fragment (include)

sbool isPunctuationCharacter(char c) {
  ret !isSpace(c) && !Character.isLetterOrDigit(c);
}

sbool isPunctuationCharacter(S s) {
  ret l(s) == 1 && isPunctuationCharacter(s.charAt(0));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1018223
Snippet name: isPunctuationCharacter
Eternal ID of this version: #1018223/2
Text MD5: 313e89831443fb8bac26509966385365
Author: stefan
Category: javax / tokenizing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-09-11 13:15:49
Source code size: 193 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 394 / 411
Version history: 1 change(s)
Referenced in: [show references]