Lines Matching refs:i
473 size_t i = 0; in GetColor() local
474 while (i < NF_MAX_DEFAULT_COLORS && in GetColor()
475 sString != rKeyword[NF_KEY_FIRSTCOLOR+i] ) in GetColor()
476 i++; in GetColor()
477 if ( i >= NF_MAX_DEFAULT_COLORS ) in GetColor()
485 i = j; in GetColor()
489 if (i >= NF_MAX_DEFAULT_COLORS) in GetColor()
524 sStr = GetKeywords()[NF_KEY_FIRSTCOLOR+i]; // red -> rot in GetColor()
528 sStr = rKeyword[NF_KEY_FIRSTCOLOR+i]; in GetColor()
530 pResult = &(StandardColor[i]); in GetColor()
544 short i = NF_KEYWORD_ENTRIES_COUNT-1; in GetKeyWord() local
546 for ( ; i > NF_KEY_LASTKEYWORD_SO5; --i ) in GetKeyWord()
548 bFound = sString.Search(rKeyword[i]) == 0; in GetKeyWord()
557 i = NF_KEY_LASTKEYWORD; in GetKeyWord()
558 while ( i > 0 && sString.Search(rKeyword[i]) != 0 ) in GetKeyWord()
559 i--; in GetKeyWord()
560 if ( i > NF_KEY_LASTOLDKEYWORD && sString != rKeyword[i] ) in GetKeyWord()
563 short j = i - 1; in GetKeyWord()
566 if ( j && rKeyword[j].Len() > rKeyword[i].Len() ) in GetKeyWord()
571 if (i == 0 && bConvertMode && sString.GetChar(0) == 'T' && eTmpLnge == in GetKeyWord()
574 i = NF_KEY_THAI_T; in GetKeyWord()
575 return i; // 0 => not found in GetKeyWord()
945 void ImpSvNumberformatScan::SkipStrings(sal_uInt16& i, xub_StrLen& nPos) in SkipStrings() argument
947 while (i < nAnzStrings && ( nTypeArray[i] == NF_SYMBOLTYPE_STRING in SkipStrings()
948 || nTypeArray[i] == NF_SYMBOLTYPE_BLANK in SkipStrings()
949 || nTypeArray[i] == NF_SYMBOLTYPE_STAR) ) in SkipStrings()
951 nPos = nPos + sStrArray[i].Len(); in SkipStrings()
952 i++; in SkipStrings()
957 sal_uInt16 ImpSvNumberformatScan::PreviousKeyword(sal_uInt16 i) in PreviousKeyword() argument
960 if (i > 0 && i < nAnzStrings) in PreviousKeyword()
962 i--; in PreviousKeyword()
963 while (i > 0 && nTypeArray[i] <= 0) in PreviousKeyword()
964 i--; in PreviousKeyword()
965 if (nTypeArray[i] > 0) in PreviousKeyword()
966 res = nTypeArray[i]; in PreviousKeyword()
971 sal_uInt16 ImpSvNumberformatScan::NextKeyword(sal_uInt16 i) in NextKeyword() argument
974 if (i < nAnzStrings-1) in NextKeyword()
976 i++; in NextKeyword()
977 while (i < nAnzStrings-1 && nTypeArray[i] <= 0) in NextKeyword()
978 i++; in NextKeyword()
979 if (nTypeArray[i] > 0) in NextKeyword()
980 res = nTypeArray[i]; in NextKeyword()
985 short ImpSvNumberformatScan::PreviousType( sal_uInt16 i ) in PreviousType() argument
987 if ( i > 0 && i < nAnzStrings ) in PreviousType()
991 i--; in PreviousType()
992 } while ( i > 0 && nTypeArray[i] == NF_SYMBOLTYPE_EMPTY ); in PreviousType()
993 return nTypeArray[i]; in PreviousType()
998 sal_Unicode ImpSvNumberformatScan::PreviousChar(sal_uInt16 i) in PreviousChar() argument
1001 if (i > 0 && i < nAnzStrings) in PreviousChar()
1003 i--; in PreviousChar()
1004 while (i > 0 && ( nTypeArray[i] == NF_SYMBOLTYPE_EMPTY in PreviousChar()
1005 || nTypeArray[i] == NF_SYMBOLTYPE_STRING in PreviousChar()
1006 || nTypeArray[i] == NF_SYMBOLTYPE_STAR in PreviousChar()
1007 || nTypeArray[i] == NF_SYMBOLTYPE_BLANK ) ) in PreviousChar()
1008 i--; in PreviousChar()
1009 if (sStrArray[i].Len() > 0) in PreviousChar()
1010 res = sStrArray[i].GetChar(xub_StrLen(sStrArray[i].Len()-1)); in PreviousChar()
1015 sal_Unicode ImpSvNumberformatScan::NextChar(sal_uInt16 i) in NextChar() argument
1018 if (i < nAnzStrings-1) in NextChar()
1020 i++; in NextChar()
1021 while (i < nAnzStrings-1 && in NextChar()
1022 ( nTypeArray[i] == NF_SYMBOLTYPE_EMPTY in NextChar()
1023 || nTypeArray[i] == NF_SYMBOLTYPE_STRING in NextChar()
1024 || nTypeArray[i] == NF_SYMBOLTYPE_STAR in NextChar()
1025 || nTypeArray[i] == NF_SYMBOLTYPE_BLANK)) in NextChar()
1026 i++; in NextChar()
1027 if (sStrArray[i].Len() > 0) in NextChar()
1028 res = sStrArray[i].GetChar(0); in NextChar()
1033 sal_Bool ImpSvNumberformatScan::IsLastBlankBeforeFrac(sal_uInt16 i) in IsLastBlankBeforeFrac() argument
1036 if (i < nAnzStrings-1) in IsLastBlankBeforeFrac()
1039 i++; in IsLastBlankBeforeFrac()
1040 while (i < nAnzStrings-1 && !bStop) in IsLastBlankBeforeFrac()
1042 i++; in IsLastBlankBeforeFrac()
1043 if ( nTypeArray[i] == NF_SYMBOLTYPE_DEL && in IsLastBlankBeforeFrac()
1044 sStrArray[i].GetChar(0) == '/') in IsLastBlankBeforeFrac()
1046 else if ( nTypeArray[i] == NF_SYMBOLTYPE_DEL && in IsLastBlankBeforeFrac()
1047 sStrArray[i].GetChar(0) == ' ') in IsLastBlankBeforeFrac()
1065 for (size_t i = 0; i < NF_MAX_FORMAT_SYMBOLS; i++) in Reset()
1067 sStrArray[i].Erase(); in Reset()
1068 nTypeArray[i] = 0; in Reset()
1089 sal_Bool ImpSvNumberformatScan::Is100SecZero( sal_uInt16 i, sal_Bool bHadDecSep ) in Is100SecZero() argument
1091 sal_uInt16 nIndexPre = PreviousKeyword( i ); in Is100SecZero()
1094 || (i>0 && nTypeArray[i-1] == NF_SYMBOLTYPE_STRING)); in Is100SecZero()
1104 sal_uInt16 i = 0; in ScanType() local
1109 SkipStrings(i, nPos); in ScanType()
1110 while (i < nAnzStrings) in ScanType()
1112 if (nTypeArray[i] > 0) in ScanType()
1114 switch (nTypeArray[i]) in ScanType()
1130 sal_uInt16 nIndexPre = PreviousKeyword(i); in ScanType()
1131 sal_uInt16 nIndexNex = NextKeyword(i); in ScanType()
1132 sal_Unicode cChar = PreviousChar(i); in ScanType()
1140 nTypeArray[i] -= 2; // 6 -> 4, 7 -> 5 in ScanType()
1186 switch ( sStrArray[i].GetChar(0) ) in ScanType()
1196 if ( Is100SecZero( i, bDecSep ) ) in ScanType()
1216 if ( i < nAnzStrings-1 && in ScanType()
1217 nTypeArray[i+1] == NF_SYMBOLTYPE_STRING && in ScanType()
1218 sStrArray[i+1].GetChar(0) == '$' ) in ScanType()
1223 else if ( i < nAnzStrings-1 && in ScanType()
1224 nTypeArray[i+1] == NF_SYMBOLTYPE_STRING && in ScanType()
1225 sStrArray[i+1].GetChar(0) == '~' ) in ScanType()
1232 sal_uInt16 nIndexNex = NextKeyword(i); in ScanType()
1249 if ( sStrArray[i] == pLoc->getTime100SecSep() ) in ScanType()
1279 else if ( sStrArray[i] != pFormatter->GetDateSep() ) in ScanType()
1298 else if ( sStrArray[i] != pLoc->getTimeSep() ) in ScanType()
1317 else if ( sStrArray[i] != pFormatter->GetDateSep() in ScanType()
1318 && sStrArray[i] != pLoc->getTimeSep() ) in ScanType()
1379 nPos = nPos + sStrArray[i].Len(); // Korrekturposition in ScanType()
1380 i++; in ScanType()
1383 while ( bMatchBracket && i < nAnzStrings ) in ScanType()
1385 if ( nTypeArray[i] == NF_SYMBOLTYPE_DEL in ScanType()
1386 && sStrArray[i].GetChar(0) == ']' ) in ScanType()
1389 nTypeArray[i] = NF_SYMBOLTYPE_STRING; in ScanType()
1390 nPos = nPos + sStrArray[i].Len(); in ScanType()
1391 i++; in ScanType()
1396 SkipStrings(i, nPos); in ScanType()
1418 for (size_t i = nAnzStrings; i > nPos; --i) in InsertSymbol() local
1420 nTypeArray[i] = nTypeArray[i-1]; in InsertSymbol()
1421 sStrArray[i] = sStrArray[i-1]; in InsertSymbol()
1430 int ImpSvNumberformatScan::FinalScanGetCalendar( xub_StrLen& nPos, sal_uInt16& i, in FinalScanGetCalendar() argument
1433 if ( sStrArray[i].GetChar(0) == '[' && in FinalScanGetCalendar()
1434 i < nAnzStrings-1 && in FinalScanGetCalendar()
1435 nTypeArray[i+1] == NF_SYMBOLTYPE_STRING && in FinalScanGetCalendar()
1436 sStrArray[i+1].GetChar(0) == '~' ) in FinalScanGetCalendar()
1439 nPos = nPos + sStrArray[i].Len(); // [ in FinalScanGetCalendar()
1440 nTypeArray[i] = NF_SYMBOLTYPE_CALDEL; in FinalScanGetCalendar()
1441 nPos = nPos + sStrArray[++i].Len(); // ~ in FinalScanGetCalendar()
1442 sStrArray[i-1] += sStrArray[i]; // [~ in FinalScanGetCalendar()
1443 nTypeArray[i] = NF_SYMBOLTYPE_EMPTY; in FinalScanGetCalendar()
1445 if ( ++i >= nAnzStrings ) in FinalScanGetCalendar()
1447 nPos = nPos + sStrArray[i].Len(); // calendarID in FinalScanGetCalendar()
1448 String& rStr = sStrArray[i]; in FinalScanGetCalendar()
1449 nTypeArray[i] = NF_SYMBOLTYPE_CALENDAR; // convert in FinalScanGetCalendar()
1450 i++; in FinalScanGetCalendar()
1451 while ( i < nAnzStrings && in FinalScanGetCalendar()
1452 sStrArray[i].GetChar(0) != ']' ) in FinalScanGetCalendar()
1454 nPos = nPos + sStrArray[i].Len(); in FinalScanGetCalendar()
1455 rStr += sStrArray[i]; in FinalScanGetCalendar()
1456 nTypeArray[i] = NF_SYMBOLTYPE_EMPTY; in FinalScanGetCalendar()
1458 i++; in FinalScanGetCalendar()
1460 if ( rStr.Len() && i < nAnzStrings && in FinalScanGetCalendar()
1461 sStrArray[i].GetChar(0) == ']' ) in FinalScanGetCalendar()
1463 nTypeArray[i] = NF_SYMBOLTYPE_CALDEL; in FinalScanGetCalendar()
1464 nPos = nPos + sStrArray[i].Len(); in FinalScanGetCalendar()
1465 i++; in FinalScanGetCalendar()
1509 sal_uInt16 i = 0; // symbol loop counter in FinalScan() local
1520 while (i < nAnzStrings) in FinalScan()
1522 switch (nTypeArray[i]) in FinalScan()
1529 String& rStr = sStrArray[i]; in FinalScan()
1533 nTypeArray[i] = NF_SYMBOLTYPE_EMPTY; in FinalScan()
1541 if ( nTypeArray[i] != NF_SYMBOLTYPE_DEL || in FinalScan()
1542 sStrArray[i].GetChar(0) != '@' ) in FinalScan()
1543 nTypeArray[i] = NF_SYMBOLTYPE_STRING; in FinalScan()
1547 nPos = nPos + sStrArray[i].Len(); in FinalScan()
1548 i++; in FinalScan()
1559 while (i < nAnzStrings) in FinalScan()
1562 nTypeArray[i] == NF_SYMBOLTYPE_DEL && // # ### #/# in FinalScan()
1564 StringEqualsChar( sStrArray[i], ' ' ) && in FinalScan()
1566 IsLastBlankBeforeFrac(i) ) in FinalScan()
1568 nTypeArray[i] = NF_SYMBOLTYPE_STRING; // del->string in FinalScan()
1572 if (nTypeArray[i] == NF_SYMBOLTYPE_BLANK || in FinalScan()
1573 nTypeArray[i] == NF_SYMBOLTYPE_STAR || in FinalScan()
1574 nTypeArray[i] == NF_KEY_CCC || // CCC in FinalScan()
1575 nTypeArray[i] == NF_KEY_GENERAL ) // Standard in FinalScan()
1577 if (nTypeArray[i] == NF_KEY_GENERAL) in FinalScan()
1581 sStrArray[i] = sNameStandardFormat; in FinalScan()
1583 nPos = nPos + sStrArray[i].Len(); in FinalScan()
1584 i++; in FinalScan()
1586 else if (nTypeArray[i] == NF_SYMBOLTYPE_STRING || // Strings oder in FinalScan()
1587 nTypeArray[i] > 0) // Keywords in FinalScan()
1590 nTypeArray[i] == NF_KEY_E) // E+ in FinalScan()
1595 nExpPos = i; in FinalScan()
1601 nTypeArray[i] = NF_SYMBOLTYPE_EXP; in FinalScan()
1604 sStrArray[i].GetChar(0) == ' ') in FinalScan()
1611 nBlankPos = i; in FinalScan()
1615 nTypeArray[i] = NF_SYMBOLTYPE_FRACBLANK; in FinalScan()
1617 else if (nTypeArray[i] == NF_KEY_THAI_T) in FinalScan()
1620 sStrArray[i] = sKeyword[nTypeArray[i]]; in FinalScan()
1623 nTypeArray[i] = NF_SYMBOLTYPE_STRING; in FinalScan()
1624 nPos = nPos + sStrArray[i].Len(); in FinalScan()
1625 i++; in FinalScan()
1627 else if (nTypeArray[i] == NF_SYMBOLTYPE_DEL) in FinalScan()
1629 sal_Unicode cHere = sStrArray[i].GetChar(0); in FinalScan()
1648 nTypeArray[i] = NF_SYMBOLTYPE_DIGIT; in FinalScan()
1649 String& rStr = sStrArray[i]; in FinalScan()
1651 i++; in FinalScan()
1653 while (i < nAnzStrings && in FinalScan()
1654 (sStrArray[i].GetChar(0) == '#' || in FinalScan()
1655 sStrArray[i].GetChar(0) == '0' || in FinalScan()
1656 sStrArray[i].GetChar(0) == '?') in FinalScan()
1659 nTypeArray[i] = NF_SYMBOLTYPE_DIGIT; in FinalScan()
1660 nPos = nPos + sStrArray[i].Len(); in FinalScan()
1662 i++; in FinalScan()
1668 if ( bDecSep && nDecPos+1 == i && in FinalScan()
1671 nTypeArray[i] = NF_SYMBOLTYPE_DIGIT; in FinalScan()
1672 String& rStr = sStrArray[i]; in FinalScan()
1674 i++; in FinalScan()
1676 while (i < nAnzStrings && in FinalScan()
1677 (sStrArray[i].GetChar(0) == '-') ) in FinalScan()
1685 (i == nAnzStrings-1 || in FinalScan()
1686 sStrArray[i+1].GetChar(0) != '-') ) in FinalScan()
1688 rStr += sStrArray[i]; in FinalScan()
1689 nPos = nPos + sStrArray[i].Len(); in FinalScan()
1690 nTypeArray[i] = NF_SYMBOLTYPE_EMPTY; in FinalScan()
1693 i++; in FinalScan()
1698 nTypeArray[i] = NF_SYMBOLTYPE_STRING; in FinalScan()
1699 nPos = nPos + sStrArray[i].Len(); in FinalScan()
1700 i++; in FinalScan()
1713 sal_Unicode cPre = PreviousChar(i); in FinalScan()
1719 nPos = nPos + sStrArray[i].Len(); in FinalScan()
1720 nTypeArray[i] = NF_SYMBOLTYPE_EMPTY; in FinalScan()
1722 i++; // eat it in FinalScan()
1725 nTypeArray[i] = NF_SYMBOLTYPE_STRING; in FinalScan()
1727 else if (i > 0 && i < nAnzStrings-1 && in FinalScan()
1729 ((cNext = NextChar(i)) == '#' || cNext == '0') in FinalScan()
1732 nPos = nPos + sStrArray[i].Len(); in FinalScan()
1736 cThousandFill = sStrArray[i+1].GetChar(0); in FinalScan()
1740 nTypeArray[i] = NF_SYMBOLTYPE_EMPTY; in FinalScan()
1742 i++; in FinalScan()
1744 else if (i > 0 && (cPre == '#' || cPre == '0') in FinalScan()
1745 && PreviousType(i) == NF_SYMBOLTYPE_DIGIT in FinalScan()
1751 String& rStr = sStrArray[i]; in FinalScan()
1754 while ( i < nAnzStrings in FinalScan()
1755 && sStrArray[i] == sOldThousandSep in FinalScan()
1756 && StringEqualsChar( sOldThousandSep, NextChar(i) ) ) in FinalScan()
1759 nPos = nPos + sStrArray[i].Len(); in FinalScan()
1764 nTypeArray[i] = NF_SYMBOLTYPE_THSEP; in FinalScan()
1769 nTypeArray[i] = NF_SYMBOLTYPE_EMPTY; in FinalScan()
1773 i++; in FinalScan()
1775 if ( i < nAnzStrings-1 in FinalScan()
1776 && sStrArray[i] == sOldThousandSep ) in FinalScan()
1780 nPos = nPos + sStrArray[i].Len(); in FinalScan()
1782 nCurrPos < nPos + sStrArray[i+1].Len()) in FinalScan()
1783 || nTypeArray[i+1] == NF_KEY_CCC in FinalScan()
1784 || (i < nAnzStrings-2 && in FinalScan()
1785 sStrArray[i+1].GetChar(0) == '[' && in FinalScan()
1786 sStrArray[i+2].GetChar(0) == '$') ) in FinalScan()
1788 nTypeArray[i] = NF_SYMBOLTYPE_STRING; in FinalScan()
1796 nTypeArray[i] = NF_SYMBOLTYPE_THSEP; in FinalScan()
1801 nTypeArray[i] = NF_SYMBOLTYPE_EMPTY; in FinalScan()
1806 i++; in FinalScan()
1814 nTypeArray[i] = NF_SYMBOLTYPE_THSEP; in FinalScan()
1815 nPos = nPos + sStrArray[i].Len(); in FinalScan()
1816 sStrArray[i] = pFormatter->GetNumThousandSep(); in FinalScan()
1817 i++; in FinalScan()
1818 } while (i < nAnzStrings && in FinalScan()
1819 sStrArray[i] == sOldThousandSep); in FinalScan()
1824 nTypeArray[i] = NF_SYMBOLTYPE_STRING; in FinalScan()
1825 String& rStr = sStrArray[i]; in FinalScan()
1827 i++; in FinalScan()
1828 while ( i < nAnzStrings && in FinalScan()
1829 sStrArray[i] == sOldThousandSep ) in FinalScan()
1831 rStr += sStrArray[i]; in FinalScan()
1832 nPos = nPos + sStrArray[i].Len(); in FinalScan()
1833 nTypeArray[i] = NF_SYMBOLTYPE_EMPTY; in FinalScan()
1835 i++; in FinalScan()
1845 nPos = nPos + sStrArray[i].Len(); in FinalScan()
1846 nTypeArray[i] = NF_SYMBOLTYPE_EMPTY; in FinalScan()
1848 i++; // eat it in FinalScan()
1852 nTypeArray[i] = NF_SYMBOLTYPE_STRING; in FinalScan()
1853 String& rStr = sStrArray[i]; in FinalScan()
1855 i++; in FinalScan()
1856 while ( i < nAnzStrings && in FinalScan()
1857 sStrArray[i] == sOldDecSep ) in FinalScan()
1859 rStr += sStrArray[i]; in FinalScan()
1860 nPos = nPos + sStrArray[i].Len(); in FinalScan()
1861 nTypeArray[i] = NF_SYMBOLTYPE_EMPTY; in FinalScan()
1863 i++; in FinalScan()
1868 nPos = nPos + sStrArray[i].Len(); in FinalScan()
1869 nTypeArray[i] = NF_SYMBOLTYPE_DECSEP; in FinalScan()
1870 sStrArray[i] = pFormatter->GetNumDecimalSep(); in FinalScan()
1872 nDecPos = i; in FinalScan()
1876 i++; in FinalScan()
1883 StringEqualsChar( sStrArray[i], ' ' ) ) in FinalScan()
1890 nBlankPos = i; in FinalScan()
1894 nTypeArray[i] = NF_SYMBOLTYPE_STRING; in FinalScan()
1895 nPos = nPos + sStrArray[i].Len(); in FinalScan()
1899 nTypeArray[i] = NF_SYMBOLTYPE_STRING; in FinalScan()
1900 String& rStr = sStrArray[i]; in FinalScan()
1902 i++; in FinalScan()
1903 while (i < nAnzStrings && in FinalScan()
1904 StringEqualsChar( sStrArray[i], cSep ) ) in FinalScan()
1906 rStr += sStrArray[i]; in FinalScan()
1907 nPos = nPos + sStrArray[i].Len(); in FinalScan()
1908 nTypeArray[i] = NF_SYMBOLTYPE_EMPTY; in FinalScan()
1910 i++; in FinalScan()
1920 if ( i == 0 || in FinalScan()
1921 (nTypeArray[i-1] != NF_SYMBOLTYPE_DIGIT && in FinalScan()
1922 nTypeArray[i-1] != NF_SYMBOLTYPE_EMPTY) ) in FinalScan()
1929 nTypeArray[i] = NF_SYMBOLTYPE_FRAC; in FinalScan()
1930 nPos = nPos + sStrArray[i].Len(); in FinalScan()
1931 i++; in FinalScan()
1938 nTypeArray[i] = NF_SYMBOLTYPE_STRING; in FinalScan()
1939 nPos = nPos + sStrArray[i].Len(); in FinalScan()
1940 i++; in FinalScan()
1947 i < nAnzStrings-1 && in FinalScan()
1948 nTypeArray[i+1] == NF_SYMBOLTYPE_STRING && in FinalScan()
1949 sStrArray[i+1].GetChar(0) == '$' ) in FinalScan()
1952 nPos = nPos + sStrArray[i].Len(); // [ in FinalScan()
1953 nTypeArray[i] = NF_SYMBOLTYPE_CURRDEL; in FinalScan()
1954 nPos = nPos + sStrArray[++i].Len(); // $ in FinalScan()
1955 sStrArray[i-1] += sStrArray[i]; // [$ in FinalScan()
1956 nTypeArray[i] = NF_SYMBOLTYPE_EMPTY; in FinalScan()
1958 if ( ++i >= nAnzStrings ) in FinalScan()
1960 nPos = nPos + sStrArray[i].Len(); // DM in FinalScan()
1961 String& rStr = sStrArray[i]; in FinalScan()
1962 String* pStr = &sStrArray[i]; in FinalScan()
1963 nTypeArray[i] = NF_SYMBOLTYPE_CURRENCY; // wandeln in FinalScan()
1965 i++; in FinalScan()
1966 while ( i < nAnzStrings && in FinalScan()
1967 sStrArray[i].GetChar(0) != ']' ) in FinalScan()
1969 nPos = nPos + sStrArray[i].Len(); in FinalScan()
1972 *pStr += sStrArray[i]; in FinalScan()
1973 nTypeArray[i] = NF_SYMBOLTYPE_EMPTY; in FinalScan()
1978 if ( sStrArray[i].GetChar(0) == '-' ) in FinalScan()
1981 pStr = &sStrArray[i]; in FinalScan()
1982 nTypeArray[i] = NF_SYMBOLTYPE_CURREXT; in FinalScan()
1986 *pStr += sStrArray[i]; in FinalScan()
1987 nTypeArray[i] = NF_SYMBOLTYPE_EMPTY; in FinalScan()
1991 i++; in FinalScan()
1993 if ( rStr.Len() && i < nAnzStrings && in FinalScan()
1994 sStrArray[i].GetChar(0) == ']' ) in FinalScan()
1996 nTypeArray[i] = NF_SYMBOLTYPE_CURRDEL; in FinalScan()
1997 nPos = nPos + sStrArray[i].Len(); in FinalScan()
1998 i++; in FinalScan()
2005 nTypeArray[i] = NF_SYMBOLTYPE_STRING; in FinalScan()
2006 nPos = nPos + sStrArray[i].Len(); in FinalScan()
2007 i++; in FinalScan()
2015 nTypeArray[i] = NF_SYMBOLTYPE_PERCENT; in FinalScan()
2017 nTypeArray[i] = NF_SYMBOLTYPE_STRING; in FinalScan()
2018 nPos = nPos + sStrArray[i].Len(); in FinalScan()
2019 i++; in FinalScan()
2024 else if ( nTypeArray[i] == NF_SYMBOLTYPE_COMMENT ) in FinalScan()
2026 String& rStr = sStrArray[i]; in FinalScan()
2030 nTypeArray[i] = NF_SYMBOLTYPE_EMPTY; in FinalScan()
2032 i++; in FinalScan()
2037 nPos = nPos + sStrArray[i].Len(); in FinalScan()
2038 i++; in FinalScan()
2074 nMaxPos = i; in FinalScan()
2080 i = nMaxPos; in FinalScan()
2081 while (i-- > 0) in FinalScan()
2083 if (nTypeArray[i] == NF_SYMBOLTYPE_DIGIT) in FinalScan()
2085 nFirstDigitSymbol = i; in FinalScan()
2086 … nCount = nCount + sStrArray[i].Len(); // MSC converts += to int and then warns, so ... in FinalScan()
2088 if (i > 0 && nCount >= aGrouping.getPos()) in FinalScan()
2090 DBG_ASSERT( sStrArray[i].Len() == 1, in FinalScan()
2092 if (!InsertSymbol( i, NF_SYMBOLTYPE_THSEP, in FinalScan()
2097 nFirstDigitSymbol = i + 1; in FinalScan()
2098 nFirstGroupingSymbol = i; in FinalScan()
2112 for (i = 0; i < nAnzStrings; ++i) in FinalScan()
2114 if (nTypeArray[i] == NF_SYMBOLTYPE_DIGIT) in FinalScan()
2116 String& rStr = sStrArray[i]; in FinalScan()
2117 while (++i < nAnzStrings && in FinalScan()
2118 nTypeArray[i] == NF_SYMBOLTYPE_DIGIT) in FinalScan()
2120 rStr += sStrArray[i]; in FinalScan()
2121 nTypeArray[i] = NF_SYMBOLTYPE_EMPTY; in FinalScan()
2130 while (i < nAnzStrings) in FinalScan()
2132 switch (nTypeArray[i]) in FinalScan()
2137 nPos = nPos + sStrArray[i].Len(); in FinalScan()
2138 i++; in FinalScan()
2142 String& rStr = sStrArray[i]; in FinalScan()
2146 nTypeArray[i] = NF_SYMBOLTYPE_EMPTY; in FinalScan()
2148 i++; in FinalScan()
2154 if (sStrArray[i] == sOldDateSep) in FinalScan()
2156 nTypeArray[i] = NF_SYMBOLTYPE_DATESEP; in FinalScan()
2157 nPos = nPos + sStrArray[i].Len(); in FinalScan()
2159 sStrArray[i] = pFormatter->GetDateSep(); in FinalScan()
2160 i++; in FinalScan()
2162 else if ( (nCalRet = FinalScanGetCalendar( nPos, i, nAnzResStrings )) != 0 ) in FinalScan()
2169 nTypeArray[i] = NF_SYMBOLTYPE_STRING; in FinalScan()
2170 nPos = nPos + sStrArray[i].Len(); in FinalScan()
2171 i++; in FinalScan()
2204 sStrArray[i] = sKeyword[nTypeArray[i]]; // tTtT -> TTTT in FinalScan()
2205 nPos = nPos + sStrArray[i].Len(); in FinalScan()
2206 i++; in FinalScan()
2209 nTypeArray[i] = NF_SYMBOLTYPE_STRING; in FinalScan()
2210 nPos = nPos + sStrArray[i].Len(); in FinalScan()
2211 i++; in FinalScan()
2219 while (i < nAnzStrings) in FinalScan()
2221 switch (nTypeArray[i]) in FinalScan()
2226 nPos = nPos + sStrArray[i].Len(); in FinalScan()
2227 i++; in FinalScan()
2232 switch( sStrArray[i].GetChar(0) ) in FinalScan()
2236 if ( Is100SecZero( i, bDecSep ) ) in FinalScan()
2239 nTypeArray[i] = NF_SYMBOLTYPE_DIGIT; in FinalScan()
2240 String& rStr = sStrArray[i]; in FinalScan()
2241 i++; in FinalScan()
2242 nPos = nPos + sStrArray[i].Len(); in FinalScan()
2244 while (i < nAnzStrings && in FinalScan()
2245 sStrArray[i].GetChar(0) == '0') in FinalScan()
2247 rStr += sStrArray[i]; in FinalScan()
2248 nPos = nPos + sStrArray[i].Len(); in FinalScan()
2249 nTypeArray[i] = NF_SYMBOLTYPE_EMPTY; in FinalScan()
2252 i++; in FinalScan()
2267 sal_Unicode cChar = pChrCls->upper( NextChar(i) ).GetChar(0); in FinalScan()
2276 nPos = nPos + sStrArray[i].Len(); in FinalScan()
2277 i++; in FinalScan()
2284 nPos = nPos + sStrArray[i].Len(); in FinalScan()
2285 i++; in FinalScan()
2290 nPos = nPos + sStrArray[i].Len(); in FinalScan()
2291 if ( sStrArray[i] == sOldTimeSep ) in FinalScan()
2293 nTypeArray[i] = NF_SYMBOLTYPE_TIMESEP; in FinalScan()
2295 sStrArray[i] = pLoc->getTimeSep(); in FinalScan()
2297 else if ( sStrArray[i] == sOldTime100SecSep ) in FinalScan()
2300 nTypeArray[i] = NF_SYMBOLTYPE_TIME100SECSEP; in FinalScan()
2302 sStrArray[i] = pLoc->getTime100SecSep(); in FinalScan()
2305 nTypeArray[i] = NF_SYMBOLTYPE_STRING; in FinalScan()
2306 i++; in FinalScan()
2314 nPos = nPos + sStrArray[i].Len(); in FinalScan()
2315 i++; in FinalScan()
2320 String& rStr = sStrArray[i]; in FinalScan()
2324 nTypeArray[i] = NF_SYMBOLTYPE_EMPTY; in FinalScan()
2326 i++; in FinalScan()
2333 sStrArray[i] = sKeyword[nTypeArray[i]]; // tTtT -> TTTT in FinalScan()
2334 nPos = nPos + sStrArray[i].Len(); in FinalScan()
2335 i++; in FinalScan()
2348 sStrArray[i] = sKeyword[nTypeArray[i]]; // tTtT -> TTTT in FinalScan()
2349 nPos = nPos + sStrArray[i].Len(); in FinalScan()
2350 i++; in FinalScan()
2355 nTypeArray[i] = NF_SYMBOLTYPE_STRING; in FinalScan()
2356 nPos = nPos + sStrArray[i].Len(); in FinalScan()
2357 i++; in FinalScan()
2370 while (i < nAnzStrings) in FinalScan()
2372 switch (nTypeArray[i]) in FinalScan()
2377 nPos = nPos + sStrArray[i].Len(); in FinalScan()
2378 i++; in FinalScan()
2382 String& rStr = sStrArray[i]; in FinalScan()
2386 nTypeArray[i] = NF_SYMBOLTYPE_EMPTY; in FinalScan()
2388 i++; in FinalScan()
2394 if ( (nCalRet = FinalScanGetCalendar( nPos, i, nAnzResStrings )) != 0 ) in FinalScan()
2401 switch( sStrArray[i].GetChar(0) ) in FinalScan()
2405 if ( bTimePart && Is100SecZero( i, bDecSep ) ) in FinalScan()
2408 nTypeArray[i] = NF_SYMBOLTYPE_DIGIT; in FinalScan()
2409 String& rStr = sStrArray[i]; in FinalScan()
2410 i++; in FinalScan()
2411 nPos = nPos + sStrArray[i].Len(); in FinalScan()
2413 while (i < nAnzStrings && in FinalScan()
2414 sStrArray[i].GetChar(0) == '0') in FinalScan()
2416 rStr += sStrArray[i]; in FinalScan()
2417 nPos = nPos + sStrArray[i].Len(); in FinalScan()
2418 nTypeArray[i] = NF_SYMBOLTYPE_EMPTY; in FinalScan()
2421 i++; in FinalScan()
2433 nPos = nPos + sStrArray[i].Len(); in FinalScan()
2436 if ( sStrArray[i] == sOldTimeSep ) in FinalScan()
2438 nTypeArray[i] = NF_SYMBOLTYPE_TIMESEP; in FinalScan()
2440 sStrArray[i] = pLoc->getTimeSep(); in FinalScan()
2442 else if ( sStrArray[i] == sOldTime100SecSep ) in FinalScan()
2445 nTypeArray[i] = NF_SYMBOLTYPE_TIME100SECSEP; in FinalScan()
2447 sStrArray[i] = pLoc->getTime100SecSep(); in FinalScan()
2450 nTypeArray[i] = NF_SYMBOLTYPE_STRING; in FinalScan()
2454 if ( sStrArray[i] == sOldDateSep ) in FinalScan()
2456 nTypeArray[i] = NF_SYMBOLTYPE_DATESEP; in FinalScan()
2458 sStrArray[i] = pFormatter->GetDateSep(); in FinalScan()
2461 nTypeArray[i] = NF_SYMBOLTYPE_STRING; in FinalScan()
2463 i++; in FinalScan()
2474 sStrArray[i] = sKeyword[nTypeArray[i]]; // tTtT -> TTTT in FinalScan()
2475 nPos = nPos + sStrArray[i].Len(); in FinalScan()
2476 i++; in FinalScan()
2486 sStrArray[i] = sKeyword[nTypeArray[i]]; // tTtT -> TTTT in FinalScan()
2487 nPos = nPos + sStrArray[i].Len(); in FinalScan()
2488 i++; in FinalScan()
2517 sStrArray[i] = sKeyword[nTypeArray[i]]; // tTtT -> TTTT in FinalScan()
2518 nPos = nPos + sStrArray[i].Len(); in FinalScan()
2519 i++; in FinalScan()
2523 sStrArray[i] = sKeyword[nTypeArray[i]]; in FinalScan()
2524 nPos = nPos + sStrArray[i].Len(); in FinalScan()
2525 i++; in FinalScan()
2528 nTypeArray[i] = NF_SYMBOLTYPE_STRING; in FinalScan()
2529 nPos = nPos + sStrArray[i].Len(); in FinalScan()
2530 i++; in FinalScan()
2554 for ( i=0; i < nAnzStrings; i++ ) in FinalScan()
2556 if ( nTypeArray[i] == NF_SYMBOLTYPE_STRING && in FinalScan()
2557 sStrArray[i].GetChar(0) != '\"' ) in FinalScan()
2561 if ( sStrArray[i] == sOldCurSymbol ) in FinalScan()
2564 if ( sStrArray[i].Len() < sOldCurSymbol.Len() && in FinalScan()
2565 pChrCls->toUpper( sStrArray[i], 0, 1 ).GetChar(0) == in FinalScan()
2568 String aTmp( sStrArray[i] ); in FinalScan()
2569 sal_uInt16 j = i + 1; in FinalScan()
2578 sStrArray[i++] = aTmp; in FinalScan()
2579 for ( ; i<j; i++ ) in FinalScan()
2581 nTypeArray[i] = NF_SYMBOLTYPE_EMPTY; in FinalScan()
2584 i = j - 1; in FinalScan()
2589 String& rStr = sStrArray[i]; in FinalScan()
2605 i = 0; in FinalScan()
2606 while (i < nAnzStrings) in FinalScan()
2608 switch ( nTypeArray[i] ) in FinalScan()
2614 sal_uInt16 iPos = i; in FinalScan()
2617 if (sStrArray[i].Len() == 2 && in FinalScan()
2618 sStrArray[i].GetChar(0) == '\\') in FinalScan()
2625 sal_Unicode c = sStrArray[i].GetChar(1); in FinalScan()
2644 rString += sStrArray[i]; in FinalScan()
2648 rString += sStrArray[i]; in FinalScan()
2654 rString += sStrArray[i]; in FinalScan()
2656 rString += sStrArray[i]; in FinalScan()
2661 rString += sStrArray[i]; in FinalScan()
2665 rString += sStrArray[i]; in FinalScan()
2666 if ( RemoveQuotes( sStrArray[i] ) > 0 ) in FinalScan()
2687 if ( iPos == i ) in FinalScan()
2690 nArrPos = sStrArray[iPos].Len() + sStrArray[i].Len(); in FinalScan()
2693 if ( iPos != i ) in FinalScan()
2695 sStrArray[iPos] += sStrArray[i]; in FinalScan()
2696 nTypeArray[i] = NF_SYMBOLTYPE_EMPTY; in FinalScan()
2699 i++; in FinalScan()
2700 } while ( i < nAnzStrings && nTypeArray[i] == NF_SYMBOLTYPE_STRING ); in FinalScan()
2701 if ( i < nAnzStrings ) in FinalScan()
2702 i--; // enter switch on next symbol again in FinalScan()
2724 rString += sStrArray[i]; in FinalScan()
2725 RemoveQuotes( sStrArray[i] ); in FinalScan()
2731 nTypeArray[i] = NF_SYMBOLTYPE_EMPTY; in FinalScan()
2735 rString += sStrArray[i]; in FinalScan()
2741 rString += sStrArray[i]; in FinalScan()
2743 i++; in FinalScan()
2784 size_t i,j; in CopyInfo() local
2786 i = 0; in CopyInfo()
2787 while (i < nAnz && j < NF_MAX_FORMAT_SYMBOLS) in CopyInfo()
2791 pInfo->sStrArray[i] = sStrArray[j]; in CopyInfo()
2792 pInfo->nTypeArray[i] = nTypeArray[j]; in CopyInfo()
2793 i++; in CopyInfo()