Home | History | Annotate | Download | only in i18n

Lines Matching refs:skeleton

307     dtMatcher->copyFrom(other.dtMatcher->skeleton);
630 // Add pattern with its associated skeleton. Override any duplicate derived from std patterns,
673 // Add pattern with its associated skeleton. Override any duplicate derived from std patterns,
790 const UnicodeString& skeleton,
792 return replaceFieldTypes(pattern, skeleton, UDATPG_MATCH_NO_OPTIONS, status);
797 const UnicodeString& skeleton,
800 dtMatcher->set(skeleton, fp);
883 // 1. We pass that skeleton to matcher.set instead of having it derive a skeleton from the pattern.
884 // 2. If the new entry's skeleton or basePattern does match an existing entry but that entry also had a skeleton specified
887 // specified locale. However, availableFormats entries *should* override entries with matching skeleton whose skeleton was
890 // specified skeleton (which sets a new field in the PtnElem in the PatternMap).
901 PtnSkeleton skeleton;
906 matcher.set(pattern, fp, skeleton);
909 matcher.set(*skeletonToUse, fp, skeleton); // this still trims skeleton fields to max len 3, may need to change it.
922 duplicatePattern = patternMap->getPatternFromSkeleton(skeleton, &entrySpecifiedSkeleton);
930 patternMap->add(basePattern, skeleton, pattern, skeletonToUse != NULL, status);
986 // If the best raw match had a specified skeleton and that skeleton was requested by the caller,
987 // then return it too. This generally happens when the caller needs to pass that skeleton
1023 UnicodeString newField=dtMatcher->skeleton.original[UDATPG_FRACTIONAL_SECOND_FIELD];
1027 if (dtMatcher->skeleton.type[typeValue]!=0) {
1029 // - "reqField" is the field from the originally requested skeleton, with length
1034 // skeleton, except in the case of UDATPG_HOUR_FIELD or UDATPG_MONTH_FIELD or
1039 // requested skeleton, except that in the following cases the length of the adjusted field
1046 // 2. There is a specified skeleton for the found pattern and one of the following is true:
1047 // a) The length of the field in the skeleton (skelFieldLen) is equal to reqFieldLen.
1048 // b) The pattern field is numeric and the skeleton field is not, or vice versa.
1050 UnicodeString reqField = dtMatcher->skeleton.original[typeValue];
1189 DateTimePatternGenerator::getPatternForSkeleton(const UnicodeString& skeleton) const {
1192 if (skeleton.length() ==0) {
1195 curElem = patternMap->getHeader(skeleton.charAt(0));
1197 if ( curElem->skeleton->getSkeleton()==skeleton ) {
1280 if ((curElem->skeleton=new PtnSkeleton(*(otherElem->skeleton))) == NULL ) {
1326 const PtnSkeleton& skeleton,
1360 curElem->skeleton = new PtnSkeleton(skeleton);
1364 curElem = getDuplicateElem(basePattern, skeleton, baseElem);
1379 curElem->skeleton = new PtnSkeleton(skeleton);
1414 // Find the pattern from the given skeleton.
1416 // the comparison should be based on skeleton.original (which is unique and tied to the distance measurement in bestRaw)
1417 // and not skeleton.baseOriginal (which is not unique); otherwise we may pick a different skeleton than the one with the
1421 PatternMap::getPatternFromSkeleton(PtnSkeleton& skeleton, const PtnSkeleton** specifiedSkeletonPtr) { // key to search for
1431 if (skeleton.baseOriginal[i].length() !=0 ) {
1432 baseChar = skeleton.baseOriginal[i].charAt(0);
1445 if (curElem->skeleton->original[i].compare(skeleton.original[i]) != 0 )
1452 if (curElem->skeleton->baseOriginal[i].compare(skeleton.baseOriginal[i]) != 0 )
1460 *specifiedSkeletonPtr = curElem->skeleton;
1495 if ((myElem->skeleton!=otherElem->skeleton)&&
1496 !myElem->skeleton->equals(*(otherElem->skeleton))) {
1511 const PtnSkeleton &skeleton,
1525 if (curElem->skeleton->type[i] != skeleton.type[i] ) {
1546 copyFrom(other.skeleton);
1599 if (skeleton.baseOriginal[i].length()!=0) {
1600 result += skeleton.baseOriginal[i];
1610 if (skeleton.original[i].length()!=0) {
1611 result += skeleton.original[i];
1622 int32_t myType = (includeMask&(1<<i))==0 ? 0 : skeleton.type[i];
1623 int32_t otherType = other.skeleton.type[i];
1648 this->skeleton.type[i]=newSkeleton.type[i];
1649 this->skeleton.original[i]=newSkeleton.original[i];
1650 this->skeleton.baseOriginal[i]=newSkeleton.baseOriginal[i];
1658 this->skeleton.type[i]=0;
1659 this->skeleton.original[i].remove();
1660 this->skeleton.baseOriginal[i].remove();
1670 if (this->skeleton.original[i]!=other->skeleton.original[i] ) {
1682 if (skeleton.type[i]!=0) {
1691 return &skeleton;
1867 return nodePtr->skeleton;
1930 matcher->copyFrom(*nodePtr->skeleton);
1991 skeleton(NULL),
2002 delete skeleton;
2028 curSkeleton=curElem->skeleton;