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 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 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()
1505 if ( GetDecSep(rString, nPos) ) in ScanStartString()
1508 SkipBlanks(rString, nPos); in ScanStartString()
1513 nMonth = GetMonth(rString, nPos); in ScanStartString()
1519 SkipChar( '.', rString, nPos ); // abbreviated in ScanStartString()
1520 SkipBlanks(rString, nPos); in ScanStartString()
1524 nDayOfWeek = GetDayOfWeek( rString, nPos ); in ScanStartString()
1528 if ( nPos < rString.Len() ) in ScanStartString()
1532 if ( rString.GetChar( nPos ) == '.' ) in ScanStartString()
1533 ++nPos; in ScanStartString()
1537 SkipBlanks(rString, nPos); in ScanStartString()
1538 … SkipString( pFormatter->GetLocaleData()->getLongDateDayOfWeekSep(), rString, nPos ); in ScanStartString()
1540 SkipBlanks(rString, nPos); in ScanStartString()
1541 nMonth = GetMonth(rString, nPos); in ScanStartString()
1546 SkipChar( '.', rString, nPos ); // abbreviated in ScanStartString()
1547 SkipBlanks(rString, nPos); in ScanStartString()
1554 if (nPos < rString.Len()) // not everything consumed in ScanStartString()
1558 if ( !ScanStringNumFor( rString, nPos, pFormat, 0 ) ) in ScanStartString()
1576 xub_StrLen nPos = 0; in ScanMidString() local
1589 SkipBlanks(rString, nPos); in ScanMidString()
1590 if (GetDecSep(rString, nPos)) // decimal separator? in ScanMidString()
1604 SkipBlanks(rString, nPos); in ScanMidString()
1612 SkipBlanks(rString, nPos); in ScanMidString()
1616 && GetTime100SecSep( rString, nPos ) ) in ScanMidString()
1621 SkipBlanks(rString, nPos); in ScanMidString()
1624 if (SkipChar('/', rString, nPos)) // fraction? in ScanMidString()
1634 SkipBlanks(rString, nPos); in ScanMidString()
1638 nPos--; // put '/' back in ScanMidString()
1641 if (GetThousandSep(rString, nPos, nStringPos)) // 1,000 in ScanMidString()
1653 SkipBlanks(rString, nPos); in ScanMidString()
1654 if ( SkipString(rDate, rString, nPos) // 10., 10-, 10/ in ScanMidString()
1655 || ((cTime != '.') && SkipChar('.', rString, nPos)) // TRICKY: in ScanMidString()
1656 || ((cTime != '/') && SkipChar('/', rString, nPos)) // short boolean in ScanMidString()
1657 || ((cTime != '-') && SkipChar('-', rString, nPos)) ) // evaluation! in ScanMidString()
1662 SkipBlanks(rString, nPos); in ScanMidString()
1664 short nTmpMonth = GetMonth(rString, nPos); // 10. Jan 94 in ScanMidString()
1671 if ( nMonth < 0 && SkipChar( '.', rString, nPos ) ) in ScanMidString()
1673 else if ( SkipChar( '-', rString, nPos ) ) in ScanMidString()
1677 SkipString( pLoc->getLongDateMonthSep(), rString, nPos ); in ScanMidString()
1678 SkipBlanks(rString, nPos); in ScanMidString()
1682 short nTempMonth = GetMonth(rString, nPos); // month in the middle (10 Jan 94) in ScanMidString()
1694 SkipChar( '.', rString, nPos ); // abbreviated in ScanMidString()
1695 SkipString( pLoc->getLongDateMonthSep(), rString, nPos ); in ScanMidString()
1696 SkipBlanks(rString, nPos); in ScanMidString()
1699 if ( SkipChar('E', rString, nPos) // 10E, 10e, 10,Ee in ScanMidString()
1700 || SkipChar('e', rString, nPos) ) in ScanMidString()
1706 SkipBlanks(rString, nPos); in ScanMidString()
1712 nESign = GetESign(rString, nPos); // signed exponent? in ScanMidString()
1713 SkipBlanks(rString, nPos); in ScanMidString()
1716 if ( SkipString(rTime, rString, nPos) ) // time separator? in ScanMidString()
1735 SkipBlanks(rString, nPos); in ScanMidString()
1743 SkipBlanks(rString, nPos); in ScanMidString()
1750 if (nPos < rString.Len()) in ScanMidString()
1758 if (SkipString( pLoc->getLongDateDaySep(), rString, nPos )) in ScanMidString()
1759 SkipBlanks( rString, nPos ); in ScanMidString()
1761 else if (nStringPos == 5 && nPos == 0 && rString.Len() == 1 && in ScanMidString()
1765 ++nPos; in ScanMidString()
1770 if (nPos == 0 && rString.Len() == 1 && nStringPos >= 9 && in ScanMidString()
1781 ++nPos; // yyyy-mm-ddThh:mm[:ss]+xx[[:]yy] in ScanMidString()
1790 ++nPos; // yyyy-mm-ddThh:mm[:ss]+xx:yy in ScanMidString()
1799 if (nPos < rString.Len()) // not everything consumed? in ScanMidString()
1821 xub_StrLen nPos = 0; in ScanEndString() local
1833 SkipBlanks(rString, nPos); in ScanEndString()
1834 if (GetDecSep(rString, nPos)) // decimal separator? in ScanEndString()
1848 SkipBlanks(rString, nPos); in ScanEndString()
1856 SkipBlanks(rString, nPos); in ScanEndString()
1864 nSign = GetSign(rString, nPos); // 1- DM in ScanEndString()
1869 SkipBlanks(rString, nPos); in ScanEndString()
1870 if (nNegCheck && SkipChar(')', rString, nPos)) // skip ')' if appropriate in ScanEndString()
1873 SkipBlanks(rString, nPos); in ScanEndString()
1876 if ( GetCurrency(rString, nPos, pFormat) ) // currency symbol? in ScanEndString()
1882 SkipBlanks(rString, nPos); in ScanEndString()
1887 nSign = GetSign(rString, nPos); // DM - in ScanEndString()
1888 SkipBlanks(rString, nPos); in ScanEndString()
1893 && SkipChar(')', rString, nPos) ) in ScanEndString()
1896 SkipBlanks(rString, nPos); // only if currency in ScanEndString()
1900 if ( SkipChar('%', rString, nPos) ) // 1 % in ScanEndString()
1904 SkipBlanks(rString, nPos); in ScanEndString()
1911 if ( SkipString(rTime, rString, nPos) ) // 10: in ScanEndString()
1917 SkipBlanks(rString, nPos); in ScanEndString()
1925 SkipBlanks(rString, nPos); in ScanEndString()
1933 if ( SkipString(rDate, rString, nPos) // 10., 10-, 10/ in ScanEndString()
1934 || ((cTime != '.') && SkipChar('.', rString, nPos)) // TRICKY: in ScanEndString()
1935 || ((cTime != '/') && SkipChar('/', rString, nPos)) // short boolean in ScanEndString()
1936 || ((cTime != '-') && SkipChar('-', rString, nPos)) ) // evaluation! in ScanEndString()
1943 SkipBlanks(rString, nPos); in ScanEndString()
1946 short nTmpMonth = GetMonth(rString, nPos); // 10. Jan in ScanEndString()
1954 SkipChar( '.', rString, nPos ); // abbreviated in ScanEndString()
1955 SkipBlanks(rString, nPos); in ScanEndString()
1959 short nTempMonth = GetMonth(rString, nPos); // 10 Jan in ScanEndString()
1971 SkipChar( '.', rString, nPos ); // abbreviated in ScanEndString()
1972 SkipBlanks(rString, nPos); in ScanEndString()
1975 xub_StrLen nOrigPos = nPos; in ScanEndString()
1976 if (GetTimeAmPm(rString, nPos)) in ScanEndString()
1987 nPos = nOrigPos; // rewind am/pm in ScanEndString()
1990 SkipBlanks(rString, nPos); in ScanEndString()
1997 if ( nNegCheck && SkipChar(')', rString, nPos) ) in ScanEndString()
2002 SkipBlanks(rString, nPos); in ScanEndString()
2008 if ( nPos < rString.Len() && in ScanEndString()
2012 xub_StrLen nOldPos = nPos; in ScanEndString()
2014 if ( StringContains( rSep, rString, nPos ) ) in ScanEndString()
2016 nPos = nPos + rSep.Len(); in ScanEndString()
2017 SkipBlanks(rString, nPos); in ScanEndString()
2019 int nDayOfWeek = GetDayOfWeek( rString, nPos ); in ScanEndString()
2022 if ( nPos < rString.Len() ) in ScanEndString()
2026 if ( rString.GetChar( nPos ) == '.' ) in ScanEndString()
2027 ++nPos; in ScanEndString()
2029 SkipBlanks(rString, nPos); in ScanEndString()
2033 nPos = nOldPos; in ScanEndString()
2037 if (nPos == 0 && eScannedType == NUMBERFORMAT_DATETIME && in ScanEndString()
2041 ++nPos; in ScanEndString()
2045 if (nPos < rString.Len()) // everything consumed? in ScanEndString()
2048 if ( !ScanStringNumFor( rString, nPos, pFormat, 0xFFFF ) ) in ScanEndString()
2058 xub_StrLen nPos, // Position until which was consumed in ScanStringNumFor() argument
2092 if ( !bFound && bFirst && nPos ) in ScanStringNumFor()
2095 aString.Erase( 0, nPos ); in ScanStringNumFor()