1 | static Map<S, Int> parseEnglishMonthName_cache; |
2 | |
3 | // returns 1-12 (or 0 if unknown) |
4 | static int parseEnglishMonthName(S s) {
|
5 | if (parseEnglishMonthName_cache == null) |
6 | parseEnglishMonthName_cache = listIndexCI(englishMonthNames()); |
7 | ret or(parseEnglishMonthName_cache.get(s), -1)+1; |
8 | } |
Began life as a copy of #1022833
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1022841 |
| Snippet name: | parseEnglishMonthName |
| Eternal ID of this version: | #1022841/3 |
| Text MD5: | a88c350bc6fc18fecf38a469e3bf71e0 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-04-10 00:26:40 |
| Source code size: | 294 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 602 / 639 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |