Logo Search packages:      
Sourcecode: icu version File versions

UnicodeString DateTimePatternGenerator::getSkeleton ( const UnicodeString pattern,
UErrorCode status 

Utility to return a unique skeleton from a given pattern. For example, both "MMM-dd" and "dd/MMM" produce the skeleton "MMMdd".

pattern Input pattern, such as "dd/MMM"
status Output param set to success/failure code on exit, which must not indicate a failure before the function call.
skeleton such as "MMMdd" ICU 3.8

Definition at line 394 of file dtptngen.cpp.

Referenced by DateIntervalFormat::initializePattern(), and IntlTestDateTimePatternGeneratorAPI::testAPI().

    dtMatcher->set(pattern, fp);
    return dtMatcher->getSkeletonPtr()->getSkeleton();

Generated by  Doxygen 1.6.0   Back to index