Libraryless. Click here for Pure Java version (2335L/15K).
1 | // e.g. "Did$HappenBefore$" => "Did * Happen Before *" |
2 | sS starPatternToClassName(S s) { |
3 | LS tok = replace("*", "$", codeTokens(parse3(s))); |
4 | ret join(map firstToUpper_restToLower(tok)); |
5 | } |
Began life as a copy of #1025438
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025462 |
Snippet name: | starPatternToClassName - opposite of dollarsToStarsAndSplitCamelCase |
Eternal ID of this version: | #1025462/4 |
Text MD5: | 0eaff424d3d44d2a0bcc1c19a4ff88aa |
Transpilation MD5: | ce34b58e43902bb9875f569ad8ed2d7e |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-29 14:45:36 |
Source code size: | 195 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 186 / 276 |
Version history: | 3 change(s) |
Referenced in: | [show references] |