| 267 | } |
| 268 | |
| 269 | bool ParseMonthNameToken(const DateTimeFormatToken& tok, const char* token_start, |
| 270 | const char** token_end, bool fx_modifier, int* month) { |
| 271 | DCHECK(token_start != nullptr); |
| 272 | DCHECK(tok.type == MONTH_NAME || tok.type == MONTH_NAME_SHORT); |
| 273 | DCHECK(month != nullptr); |
| 274 | DCHECK(token_end != nullptr && *token_end != nullptr); |
| 275 | DCHECK(token_start <= *token_end); |
| 276 | |
| 277 | return ParseNameTokenHelper( |
| 278 | tok.type == MONTH_NAME_SHORT, |
| 279 | SHORT_MONTH_NAME_LENGTH, MAX_MONTH_NAME_LENGTH, |
| 280 | token_start, token_end, |
| 281 | fx_modifier && !tok.fm_modifier, |
| 282 | MONTH_PREFIX_TO_SUFFIX, |
| 283 | month); |
| 284 | } |
| 285 | |
| 286 | bool ParseDayNameToken(const DateTimeFormatToken& tok, const char* token_start, |
| 287 | const char** token_end, bool fx_modifier, int* day) { |
no test coverage detected