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

5
LINES

< > BotCompany Repo | #1031370 // startsWithUpperCaseOrUnderscore

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (2750L) is out of date.

1  
sbool startsWithUpperCaseOrUnderscore(S s) {
2  
  if (empty(s)) false;
3  
  char c = s.charAt(0);
4  
  ret c == '_' || Character.isUpperCase(c);
5  
}

Author comment

Began life as a copy of #1002714

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031370
Snippet name: startsWithUpperCaseOrUnderscore
Eternal ID of this version: #1031370/3
Text MD5: c57f70408d77216881e04360252b784c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-07 10:23:40
Source code size: 141 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 215 / 295
Version history: 2 change(s)
Referenced in: [show references]