MCPcopy Create free account
hub / github.com/bytedance/bolt / specAllowsPlusSign

Function specAllowsPlusSign

bolt/functions/lib/DateTimeFormatter.cpp:310–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310bool 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:

Callers 1

parseFromPatternFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected