MCPcopy Create free account
hub / github.com/MailCore/mailcore2 / toAppleStyle

Function toAppleStyle

src/core/renderer/MCDateFormatter.cpp:186–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184
185#if USE_COREFOUNDATION
186static CFDateFormatterStyle toAppleStyle(DateFormatStyle style)
187{
188 switch (style) {
189 case DateFormatStyleFull:
190 return kCFDateFormatterFullStyle;
191 case DateFormatStyleLong:
192 return kCFDateFormatterLongStyle;
193 case DateFormatStyleMedium:
194 return kCFDateFormatterMediumStyle;
195 case DateFormatStyleShort:
196 return kCFDateFormatterShortStyle;
197 case DateFormatStyleNone:
198 return kCFDateFormatterNoStyle;
199 }
200 return kCFDateFormatterMediumStyle;
201}
202#endif
203
204void DateFormatter::prepare()

Callers 1

prepareMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected