Lines Matching refs:nPos
170 xub_StrLen nPos, nLen; in TransformInput() local
171 for ( nPos = 0, nLen = rStr.Len(); nPos < nLen; ++nPos ) in TransformInput()
173 if ( 256 <= rStr.GetChar( nPos ) && in TransformInput()
174 pFormatter->GetCharClass()->isDigit( rStr, nPos ) ) in TransformInput()
177 if ( nPos < nLen ) in TransformInput()
194 xub_StrLen nPos = 0; in StringToDouble() local
198 while (nPos < nLen) in StringToDouble()
200 if (rStr.GetChar(nPos) == '.') in StringToDouble()
203 fNum = fNum * 10.0 + (double) (rStr.GetChar(nPos) - '0'); in StringToDouble()
206 fFrac = fFrac * 10.0 + (double) (rStr.GetChar(nPos) - '0'); in StringToDouble()
209 nPos++; in StringToDouble()
405 const String& rString, xub_StrLen nPos ) in StringContainsImpl() argument
407 if ( nPos + rWhat.Len() <= rString.Len() ) in StringContainsImpl()
408 return StringPtrContainsImpl( rWhat, rString.GetBuffer(), nPos ); in StringContainsImpl()
417 const sal_Unicode* pString, xub_StrLen nPos ) in StringPtrContainsImpl() argument
423 register const sal_Unicode* pStr = pString + nPos; in StringPtrContainsImpl()
441 xub_StrLen& nPos ) in SkipChar() argument
443 if ((nPos < rString.Len()) && (rString.GetChar(nPos) == c)) in SkipChar()
445 nPos++; in SkipChar()
458 xub_StrLen& nPos ) in SkipBlanks() argument
460 if ( nPos < rString.Len() ) in SkipBlanks()
462 register const sal_Unicode* p = rString.GetBuffer() + nPos; in SkipBlanks()
465 nPos++; in SkipBlanks()
478 const String& rString, xub_StrLen& nPos ) in SkipString() argument
480 if ( StringContains( rWhat, rString, nPos ) ) in SkipString()
482 nPos = nPos + rWhat.Len(); in SkipString()
496 xub_StrLen& nPos, in GetThousandSep() argument
522 nPos = nPos + rSep.Len(); in GetThousandSep()
559 short ImpSvNumberInputScan::GetMonth( const String& rString, xub_StrLen& nPos ) in GetMonth() argument
568 if (rString.Len() > nPos) // only if needed in GetMonth()
575 if ( StringContains( pUpperMonthText[i], rString, nPos ) ) in GetMonth()
577 nPos = nPos + pUpperMonthText[i].Len(); in GetMonth()
581 else if ( StringContains( pUpperAbbrevMonthText[i], rString, nPos ) ) in GetMonth()
583 nPos = nPos + pUpperAbbrevMonthText[i].Len(); in GetMonth()
588 StringContains( aSepShortened, rString, nPos ) ) in GetMonth()
590 nPos = nPos + aSepShortened.Len(); in GetMonth()
607 int ImpSvNumberInputScan::GetDayOfWeek( const String& rString, xub_StrLen& nPos ) in GetDayOfWeek() argument
611 if (rString.Len() > nPos) // only if needed in GetDayOfWeek()
618 if ( StringContains( pUpperDayText[i], rString, nPos ) ) in GetDayOfWeek()
620 nPos = nPos + pUpperDayText[i].Len(); in GetDayOfWeek()
624 if ( StringContains( pUpperAbbrevDayText[i], rString, nPos ) ) in GetDayOfWeek()
626 nPos = nPos + pUpperAbbrevDayText[i].Len(); in GetDayOfWeek()
644 sal_Bool ImpSvNumberInputScan::GetCurrency( const String& rString, xub_StrLen& nPos, in GetCurrency() argument
647 if ( rString.Len() > nPos ) in GetCurrency()
656 if ( StringContains( aUpperCurrSymbol, rString, nPos ) ) in GetCurrency()
658 nPos = nPos + aUpperCurrSymbol.Len(); in GetCurrency()
666 if ( aSymbol.Len() <= rString.Len() - nPos ) in GetCurrency()
669 if ( StringContains( aSymbol, rString, nPos ) ) in GetCurrency()
671 nPos = nPos + aSymbol.Len(); in GetCurrency()
697 sal_Bool ImpSvNumberInputScan::GetTimeAmPm( const String& rString, xub_StrLen& nPos ) in GetTimeAmPm() argument
700 if ( rString.Len() > nPos ) in GetTimeAmPm()
704 if ( StringContains( pChr->upper( pLoc->getTimeAM() ), rString, nPos ) ) in GetTimeAmPm()
707 nPos = nPos + pLoc->getTimeAM().Len(); in GetTimeAmPm()
710 else if ( StringContains( pChr->upper( pLoc->getTimePM() ), rString, nPos ) ) in GetTimeAmPm()
713 nPos = nPos + pLoc->getTimePM().Len(); in GetTimeAmPm()
729 inline sal_Bool ImpSvNumberInputScan::GetDecSep( const String& rString, xub_StrLen& nPos ) in GetDecSep() argument
731 if ( rString.Len() > nPos ) in GetDecSep()
734 if ( rString.Equals( rSep, nPos, rSep.Len() ) ) in GetDecSep()
736 nPos = nPos + rSep.Len(); in GetDecSep()
747 inline sal_Bool ImpSvNumberInputScan::GetTime100SecSep( const String& rString, xub_StrLen& nPos ) in GetTime100SecSep() argument
749 if ( rString.Len() > nPos ) in GetTime100SecSep()
752 if ( rString.Equals( rSep, nPos, rSep.Len() ) ) in GetTime100SecSep()
754 nPos = nPos + rSep.Len(); in GetTime100SecSep()
771 int ImpSvNumberInputScan::GetSign( const String& rString, xub_StrLen& nPos ) in GetSign() argument
773 if (rString.Len() > nPos) in GetSign()
774 switch (rString.GetChar(nPos)) in GetSign()
777 nPos++; in GetSign()
783 nPos++; in GetSign()
801 short ImpSvNumberInputScan::GetESign( const String& rString, xub_StrLen& nPos ) in GetESign() argument
803 if (rString.Len() > nPos) in GetESign()
804 switch (rString.GetChar(nPos)) in GetESign()
807 nPos++; in GetESign()
810 nPos++; in GetESign()
1468 xub_StrLen nPos = 0; in ScanStartString() local
1472 SkipBlanks(rString, nPos); in ScanStartString()
1475 nSign = GetSign(rString, nPos); in ScanStartString()
1477 SkipBlanks(rString, nPos); in ScanStartString()
1484 if ( ScanStringNumFor( rString, nPos, pFormat, 0, sal_True ) ) in ScanStartString()
1490 if ( GetDecSep(rString, nPos) ) // decimal separator in start string in ScanStartString()
1493 SkipBlanks(rString, nPos); in ScanStartString()
1495 else if ( GetCurrency(rString, nPos, pFormat) ) // currency (DM 1)? in ScanStartString()
1498 SkipBlanks(rString, nPos); in ScanStartString()
1501 nSign = GetSign(rString, nPos); in ScanStartString()
1503 SkipBlanks(rString, nPos); in ScanStartString()
1508 nMonth = GetMonth(rString, nPos); in ScanStartString()
1514 SkipChar( '.', rString, nPos ); // abbreviated in ScanStartString()
1515 SkipBlanks(rString, nPos); in ScanStartString()
1519 nDayOfWeek = GetDayOfWeek( rString, nPos ); in ScanStartString()
1523 if ( nPos < rString.Len() ) in ScanStartString()
1527 if ( rString.GetChar( nPos ) == '.' ) in ScanStartString()
1528 ++nPos; in ScanStartString()
1532 SkipBlanks(rString, nPos); in ScanStartString()
1533 … SkipString( pFormatter->GetLocaleData()->getLongDateDayOfWeekSep(), rString, nPos ); in ScanStartString()
1535 SkipBlanks(rString, nPos); in ScanStartString()
1536 nMonth = GetMonth(rString, nPos); in ScanStartString()
1541 SkipChar( '.', rString, nPos ); // abbreviated in ScanStartString()
1542 SkipBlanks(rString, nPos); in ScanStartString()
1549 if (nPos < rString.Len()) // not everything consumed in ScanStartString()
1553 if ( !ScanStringNumFor( rString, nPos, pFormat, 0 ) ) in ScanStartString()
1571 xub_StrLen nPos = 0; in ScanMidString() local
1584 SkipBlanks(rString, nPos); in ScanMidString()
1585 if (GetDecSep(rString, nPos)) // decimal separator? in ScanMidString()
1599 SkipBlanks(rString, nPos); in ScanMidString()
1607 SkipBlanks(rString, nPos); in ScanMidString()
1611 && GetTime100SecSep( rString, nPos ) ) in ScanMidString()
1616 SkipBlanks(rString, nPos); in ScanMidString()
1619 if (SkipChar('/', rString, nPos)) // fraction? in ScanMidString()
1629 SkipBlanks(rString, nPos); in ScanMidString()
1633 nPos--; // put '/' back in ScanMidString()
1636 if (GetThousandSep(rString, nPos, nStringPos)) // 1,000 in ScanMidString()
1648 SkipBlanks(rString, nPos); in ScanMidString()
1649 if ( SkipString(rDate, rString, nPos) // 10., 10-, 10/ in ScanMidString()
1650 || ((cTime != '.') && SkipChar('.', rString, nPos)) // TRICKY: in ScanMidString()
1651 || ((cTime != '/') && SkipChar('/', rString, nPos)) // short boolean in ScanMidString()
1652 || ((cTime != '-') && SkipChar('-', rString, nPos)) ) // evaluation! in ScanMidString()
1657 SkipBlanks(rString, nPos); in ScanMidString()
1659 short nTmpMonth = GetMonth(rString, nPos); // 10. Jan 94 in ScanMidString()
1666 if ( nMonth < 0 && SkipChar( '.', rString, nPos ) ) in ScanMidString()
1668 else if ( SkipChar( '-', rString, nPos ) ) in ScanMidString()
1672 SkipString( pLoc->getLongDateMonthSep(), rString, nPos ); in ScanMidString()
1673 SkipBlanks(rString, nPos); in ScanMidString()
1677 short nTempMonth = GetMonth(rString, nPos); // month in the middle (10 Jan 94) in ScanMidString()
1689 SkipChar( '.', rString, nPos ); // abbreviated in ScanMidString()
1690 SkipString( pLoc->getLongDateMonthSep(), rString, nPos ); in ScanMidString()
1691 SkipBlanks(rString, nPos); in ScanMidString()
1694 if ( SkipChar('E', rString, nPos) // 10E, 10e, 10,Ee in ScanMidString()
1695 || SkipChar('e', rString, nPos) ) in ScanMidString()
1701 SkipBlanks(rString, nPos); in ScanMidString()
1707 nESign = GetESign(rString, nPos); // signed exponent? in ScanMidString()
1708 SkipBlanks(rString, nPos); in ScanMidString()
1711 if ( SkipString(rTime, rString, nPos) ) // time separator? in ScanMidString()
1730 SkipBlanks(rString, nPos); in ScanMidString()
1738 SkipBlanks(rString, nPos); in ScanMidString()
1745 if (nPos < rString.Len()) in ScanMidString()
1753 if (SkipString( pLoc->getLongDateDaySep(), rString, nPos )) in ScanMidString()
1754 SkipBlanks( rString, nPos ); in ScanMidString()
1756 else if (nStringPos == 5 && nPos == 0 && rString.Len() == 1 && in ScanMidString()
1760 ++nPos; in ScanMidString()
1765 if (nPos == 0 && rString.Len() == 1 && nStringPos >= 9 && in ScanMidString()
1776 ++nPos; // yyyy-mm-ddThh:mm[:ss]+xx[[:]yy] in ScanMidString()
1785 ++nPos; // yyyy-mm-ddThh:mm[:ss]+xx:yy in ScanMidString()
1794 if (nPos < rString.Len()) // not everything consumed? in ScanMidString()
1816 xub_StrLen nPos = 0; in ScanEndString() local
1828 SkipBlanks(rString, nPos); in ScanEndString()
1829 if (GetDecSep(rString, nPos)) // decimal separator? in ScanEndString()
1843 SkipBlanks(rString, nPos); in ScanEndString()
1851 SkipBlanks(rString, nPos); in ScanEndString()
1859 nSign = GetSign(rString, nPos); // 1- DM in ScanEndString()
1864 SkipBlanks(rString, nPos); in ScanEndString()
1865 if (nNegCheck && SkipChar(')', rString, nPos)) // skip ')' if appropriate in ScanEndString()
1868 SkipBlanks(rString, nPos); in ScanEndString()
1871 if ( GetCurrency(rString, nPos, pFormat) ) // currency symbol? in ScanEndString()
1877 SkipBlanks(rString, nPos); in ScanEndString()
1882 nSign = GetSign(rString, nPos); // DM - in ScanEndString()
1883 SkipBlanks(rString, nPos); in ScanEndString()
1888 && SkipChar(')', rString, nPos) ) in ScanEndString()
1891 SkipBlanks(rString, nPos); // only if currency in ScanEndString()
1895 if ( SkipChar('%', rString, nPos) ) // 1 % in ScanEndString()
1899 SkipBlanks(rString, nPos); in ScanEndString()
1906 if ( SkipString(rTime, rString, nPos) ) // 10: in ScanEndString()
1912 SkipBlanks(rString, nPos); in ScanEndString()
1920 SkipBlanks(rString, nPos); in ScanEndString()
1928 if ( SkipString(rDate, rString, nPos) // 10., 10-, 10/ in ScanEndString()
1929 || ((cTime != '.') && SkipChar('.', rString, nPos)) // TRICKY: in ScanEndString()
1930 || ((cTime != '/') && SkipChar('/', rString, nPos)) // short boolean in ScanEndString()
1931 || ((cTime != '-') && SkipChar('-', rString, nPos)) ) // evaluation! in ScanEndString()
1938 SkipBlanks(rString, nPos); in ScanEndString()
1941 short nTmpMonth = GetMonth(rString, nPos); // 10. Jan in ScanEndString()
1949 SkipChar( '.', rString, nPos ); // abbreviated in ScanEndString()
1950 SkipBlanks(rString, nPos); in ScanEndString()
1954 short nTempMonth = GetMonth(rString, nPos); // 10 Jan in ScanEndString()
1966 SkipChar( '.', rString, nPos ); // abbreviated in ScanEndString()
1967 SkipBlanks(rString, nPos); in ScanEndString()
1970 xub_StrLen nOrigPos = nPos; in ScanEndString()
1971 if (GetTimeAmPm(rString, nPos)) in ScanEndString()
1982 nPos = nOrigPos; // rewind am/pm in ScanEndString()
1985 SkipBlanks(rString, nPos); in ScanEndString()
1992 if ( nNegCheck && SkipChar(')', rString, nPos) ) in ScanEndString()
1997 SkipBlanks(rString, nPos); in ScanEndString()
2003 if ( nPos < rString.Len() && in ScanEndString()
2007 xub_StrLen nOldPos = nPos; in ScanEndString()
2009 if ( StringContains( rSep, rString, nPos ) ) in ScanEndString()
2011 nPos = nPos + rSep.Len(); in ScanEndString()
2012 SkipBlanks(rString, nPos); in ScanEndString()
2014 int nDayOfWeek = GetDayOfWeek( rString, nPos ); in ScanEndString()
2017 if ( nPos < rString.Len() ) in ScanEndString()
2021 if ( rString.GetChar( nPos ) == '.' ) in ScanEndString()
2022 ++nPos; in ScanEndString()
2024 SkipBlanks(rString, nPos); in ScanEndString()
2028 nPos = nOldPos; in ScanEndString()
2032 if (nPos == 0 && eScannedType == NUMBERFORMAT_DATETIME && in ScanEndString()
2036 ++nPos; in ScanEndString()
2040 if (nPos < rString.Len()) // everything consumed? in ScanEndString()
2043 if ( !ScanStringNumFor( rString, nPos, pFormat, 0xFFFF ) ) in ScanEndString()
2053 xub_StrLen nPos, // Position until which was consumed in ScanStringNumFor() argument
2087 if ( !bFound && bFirst && nPos ) in ScanStringNumFor()
2090 aString.Erase( 0, nPos ); in ScanStringNumFor()