| 308 | } |
| 309 | |
| 310 | bool specAllowsPlusSign(DateTimeFormatSpecifier s, bool specifierNext) { |
| 311 | if (specifierNext) { |
| 312 | return false; |
| 313 | } else { |
| 314 | switch (s) { |
| 315 | case DateTimeFormatSpecifier::YEAR: |
| 316 | case DateTimeFormatSpecifier::WEEK_YEAR: |
| 317 | return true; |
| 318 | default: |
| 319 | return false; |
| 320 | } |
| 321 | } |
| 322 | } |
| 323 | |
| 324 | // Joda only supports parsing a few three-letter prefixes. The list is available |
| 325 | // here: |