MCPcopy Create free account
hub / github.com/apache/impala / ParseMonthNameToken

Function ParseMonthNameToken

be/src/runtime/datetime-parser-common.cc:269–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267}
268
269bool 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
286bool ParseDayNameToken(const DateTimeFormatToken& tok, const char* token_start,
287 const char** token_end, bool fx_modifier, int* day) {

Callers 2

ParseDateTimeMethod · 0.85
ParseDateTimeMethod · 0.85

Calls 1

ParseNameTokenHelperFunction · 0.85

Tested by

no test coverage detected