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

7
LINES

< > TinyBrain | #1018229 - isDash

JavaX fragment (include)

sbool isDash(char c) {
  ret c == '-' || c >= 0x2010 && c <= 0x2015;
}

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

Author comment

Began life as a copy of #1018223

download  show line numbers  debug dex   

Travelled to 9 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tvejysmllsmz

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: 34 / 40
Referenced in: [show]