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

7
LINES

< > BotCompany Repo | #1018229 // isDash

JavaX fragment (include)

1  
sbool isDash(char c) {
2  
  ret c == '-' || c >= 0x2010 && c <= 0x2015;
3  
}
4  
5  
sbool isDash(S s) {
6  
  ret l(s) == 1 && isDash(s.charAt(0));
7  
}

Author comment

Began life as a copy of #1018223

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: #1018229
Snippet name: isDash
Eternal ID of this version: #1018229/1
Text MD5: c795cffa1a473e5d206a98a2ca05d0ec
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 16:58:11
Source code size: 139 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 334 / 380
Referenced in: [show references]