Home | History | Annotate | Download | only in i18n

Lines Matching refs:skeleton

311     dtMatcher->copyFrom(other.dtMatcher->skeleton);
641 // Add pattern with its associated skeleton. Override any duplicate derived from std patterns,
802 const UnicodeString& skeleton,
804 return replaceFieldTypes(pattern, skeleton, UDATPG_MATCH_NO_OPTIONS, status);
809 const UnicodeString& skeleton,
812 dtMatcher->set(skeleton, fp);
894 // 1. We pass that skeleton to matcher.set instead of having it derive a skeleton from the pattern.
895 // 2. If the new entry's skeletonskeleton specified
898 // specified locale. However, availableFormats entries *should* override entries with matching skeleton whose skeleton was
901 // specified skeleton (which sets a new field in the PtnElem in the PatternMap).
912 PtnSkeleton skeleton;
917 matcher.set(pattern, fp, skeleton);
920 matcher.set(*skeletonToUse, fp, skeleton); // no longer trims skeleton fields to max len 3, per #7930
933 duplicatePattern = patternMap->getPatternFromSkeleton(skeleton, &entrySpecifiedSkeleton);
941 patternMap->add(basePattern, skeleton, pattern, skeletonToUse != NULL, status);
997 // If the best raw match had a specified skeleton and that skeleton was requested by the caller,
998 // then return it too. This generally happens when the caller needs to pass that skeleton
1034 UnicodeString newField=dtMatcher->skeleton.original[UDATPG_FRACTIONAL_SECOND_FIELD];
1036 } else if (dtMatcher->skeleton.type[typeValue]!=0) {
1038 // - "reqField" is the field from the originally requested skeleton, with length
1043 // skeleton, except in the case of UDATPG_HOUR_FIELD or UDATPG_MONTH_FIELD or
1048 // requested skeleton, except that in the following cases the length of the adjusted field
1055 // 2. There is a specified skeleton for the found pattern and one of the following is true:
1056 // a) The length of the field in the skeleton (skelFieldLen) is equal to reqFieldLen.
1057 // b) The pattern field is numeric and the skeleton field is not, or vice versa.
1059 UnicodeString reqField = dtMatcher->skeleton.original[typeValue];
1197 DateTimePatternGenerator::getPatternForSkeleton(const UnicodeString& skeleton) const {
1200 if (skeleton.length() ==0) {
1203 curElem = patternMap->getHeader(skeleton.charAt(0));
1205 if ( curElem->skeleton->getSkeleton()==skeleton ) {
1288 if ((curElem->skeleton=new PtnSkeleton(*(otherElem->skeleton))) == NULL ) {
1334 const PtnSkeleton& skeleton,
1368 curElem->skeleton = new PtnSkeleton(skeleton);
1372 curElem = getDuplicateElem(basePattern, skeleton, baseElem);
1387 curElem->skeleton = new PtnSkeleton(skeleton);
1422 // Find the pattern from the given skeleton.
1424 // the comparison should be based on skeleton.original (which is unique and tied to the distance measurement in bestRaw)
1425 // and not skeleton.baseOriginal (which is not unique); otherwise we may pick a different skeleton than the one with the
1429 PatternMap::getPatternFromSkeleton(PtnSkeleton& skeleton, const PtnSkeleton** specifiedSkeletonPtr) { // key to search for
1439 if (skeleton.baseOriginal[i].length() !=0 ) {
1440 baseChar = skeleton.baseOriginal[i].charAt(0);
1453 if (curElem->skeleton->original[i].compare(skeleton.original[i]) != 0 )
1460 if (curElem->skeleton->baseOriginal[i].compare(skeleton.baseOriginal[i]) != 0 )
1468 *specifiedSkeletonPtr = curElem->skeleton;
1503 if ((myElem->skeleton!=otherElem->skeleton)&&
1504 !myElem->skeleton->equals(*(otherElem->skeleton))) {
1519 const PtnSkeleton &skeleton,
1533 if (curElem->skeleton->type[i] != skeleton.type[i] ) {
1556 copyFrom(other.skeleton);
1609 if (skeleton.baseOriginal[i].length()!=0) {
1610 result += skeleton.baseOriginal[i];
1620 if (skeleton.original[i].length()!=0) {
1621 result += skeleton.original[i];
1632 int32_t myType = (includeMask&(1<<i))==0 ? 0 : skeleton.type[i];
1633 int32_t otherType = other.skeleton.type[i];
1658 this->skeleton.type[i]=newSkeleton.type[i];
1659 this->skeleton.original[i]=newSkeleton.original[i];
1660 this->skeleton.baseOriginal[i]=newSkeleton.baseOriginal[i];
1668 this->skeleton.type[i]=0;
1669 this->skeleton.original[i].remove();
1670 this->skeleton.baseOriginal[i].remove();
1680 if (this->skeleton.original[i]!=other->skeleton.original[i] ) {
1692 if (skeleton.type[i]!=0) {
1701 return &skeleton;
1879 return nodePtr->skeleton;
1942 matcher->copyFrom(*nodePtr->skeleton);
2003 skeleton(NULL),
2014 delete skeleton;
2040 curSkeleton=curElem->skeleton;