Home | History | Annotate | Download | only in i18n

Lines Matching refs:skeleton

308     dtMatcher->copyFrom(other.dtMatcher->skeleton);
631 // Add pattern with its associated skeleton. Override any duplicate derived from std patterns,
674 // Add pattern with its associated skeleton. Override any duplicate derived from std patterns,
791 const UnicodeString& skeleton,
793 return replaceFieldTypes(pattern, skeleton, UDATPG_MATCH_NO_OPTIONS, status);
798 const UnicodeString& skeleton,
801 dtMatcher->set(skeleton, fp);
884 // 1. We pass that skeleton to matcher.set instead of having it derive a skeleton from the pattern.
885 // 2. If the new entry's skeleton or basePattern does match an existing entry but that entry also had a skeleton specified
888 // specified locale. However, availableFormats entries *should* override entries with matching skeleton whose skeleton was
891 // specified skeleton
902 PtnSkeleton skeleton;
907 matcher.set(pattern, fp, skeleton);
910 matcher.set(*skeletonToUse, fp, skeleton); // this still trims skeleton fields to max len 3, may need to change it.
923 duplicatePattern = patternMap->getPatternFromSkeleton(skeleton, &entrySpecifiedSkeleton);
931 patternMap->add(basePattern, skeleton, pattern, skeletonToUse != NULL, status);
987 // If the best raw match had a specified skeleton and that skeleton was requested by the caller,
988 // then return it too. This generally happens when the caller needs to pass that skeleton
1024 UnicodeString newField=dtMatcher->skeleton.original[UDATPG_FRACTIONAL_SECOND_FIELD];
1026 } else if (dtMatcher->skeleton.type[typeValue]!=0) {
1028 // - "reqField" is the field from the originally requested skeleton, with length
1033 // skeleton, except in the case of UDATPG_HOUR_FIELD or UDATPG_MONTH_FIELD or
1038 // requested skeleton, except that in the following cases the length of the adjusted field
1045 // 2. There is a specified skeleton for the found pattern and one of the following is true:
1046 // a) The length of the field in the skeleton (skelFieldLen) is equal to reqFieldLen.
1047 // b) The pattern field is numeric and the skeleton field is not, or vice versa.
1049 UnicodeString reqField = dtMatcher->skeleton.original[typeValue];
1186 DateTimePatternGenerator::getPatternForSkeleton(const UnicodeString& skeleton) const {
1189 if (skeleton.length() ==0) {
1192 curElem = patternMap->getHeader(skeleton.charAt(0));
1194 if ( curElem->skeleton->getSkeleton()==skeleton ) {
1277 if ((curElem->skeleton=new PtnSkeleton(*(otherElem->skeleton))) == NULL ) {
1323 const PtnSkeleton& skeleton,
1357 curElem->skeleton = new PtnSkeleton(skeleton);
1361 curElem = getDuplicateElem(basePattern, skeleton, baseElem);
1376 curElem->skeleton = new PtnSkeleton(skeleton);
1411 // Find the pattern from the given skeleton.
1413 // the comparison should be based on skeleton.original (which is unique and tied to the distance measurement in bestRaw)
1414 // and not skeleton.baseOriginal (which is not unique); otherwise we may pick a different skeleton than the one with the
1418 PatternMap::getPatternFromSkeleton(PtnSkeleton& skeleton, const PtnSkeleton** specifiedSkeletonPtr) { // key to search for
1428 if (skeleton.baseOriginal[i].length() !=0 ) {
1429 baseChar = skeleton.baseOriginal[i].charAt(0);
1442 if (curElem->skeleton->original[i].compare(skeleton.original[i]) != 0 )
1449 if (curElem->skeleton->baseOriginal[i].compare(skeleton.baseOriginal[i]) != 0 )
1457 *specifiedSkeletonPtr = curElem->skeleton;
1492 if ((myElem->skeleton!=otherElem->skeleton)&&
1493 !myElem->skeleton->equals(*(otherElem->skeleton))) {
1508 const PtnSkeleton &skeleton,
1522 if (curElem->skeleton->type[i] != skeleton.type[i] ) {
1543 copyFrom(other.skeleton);
1596 if (skeleton.baseOriginal[i].length()!=0) {
1597 result += skeleton.baseOriginal[i];
1607 if (skeleton.original[i].length()!=0) {
1608 result += skeleton.original[i];
1619 int32_t myType = (includeMask&(1<<i))==0 ? 0 : skeleton.type[i];
1620 int32_t otherType = other.skeleton.type[i];
1645 this->skeleton.type[i]=newSkeleton.type[i];
1646 this->skeleton.original[i]=newSkeleton.original[i];
1647 this->skeleton.baseOriginal[i]=newSkeleton.baseOriginal[i];
1655 this->skeleton.type[i]=0;
1656 this->skeleton.original[i].remove();
1657 this->skeleton.baseOriginal[i].remove();
1667 if (this->skeleton.original[i]!=other->skeleton.original[i] ) {
1679 if (skeleton.type[i]!=0) {
1688 return &skeleton;
1864 return nodePtr->skeleton;
1927 matcher->copyFrom(*nodePtr->skeleton);
1988 skeleton(NULL),
1999 delete skeleton;
2025 curSkeleton=curElem->skeleton;