Lines Matching refs:rString

376 void ImpSvNumberInputScan::NumberStringDivision( const String& rString )  in NumberStringDivision()  argument
378 const sal_Unicode* pStr = rString.GetBuffer(); in NumberStringDivision()
379 const sal_Unicode* const pEnd = pStr + rString.Len(); in NumberStringDivision()
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()
440 inline sal_Bool ImpSvNumberInputScan::SkipChar( sal_Unicode c, const String& rString, in SkipChar() argument
443 if ((nPos < rString.Len()) && (rString.GetChar(nPos) == c)) in SkipChar()
457 inline void ImpSvNumberInputScan::SkipBlanks( const String& rString, in SkipBlanks() argument
460 if ( nPos < rString.Len() ) in SkipBlanks()
462 register const sal_Unicode* p = rString.GetBuffer() + nPos; in SkipBlanks()
478 const String& rString, xub_StrLen& nPos ) in SkipString() argument
480 if ( StringContains( rWhat, rString, nPos ) ) in SkipString()
495 const String& rString, in GetThousandSep() argument
501 bool bSpaceBreak = rSep.GetChar(0) == 0xa0 && rString.GetChar(0) == 0x20 && in GetThousandSep()
502 rSep.Len() == 1 && rString.Len() == 1; in GetThousandSep()
503 if (!( (rString == rSep || bSpaceBreak) // nothing else in GetThousandSep()
537 short ImpSvNumberInputScan::GetLogical( const String& rString ) in GetLogical() argument
542 if ( rString == pFS->GetTrueString() ) in GetLogical()
544 else if ( rString == pFS->GetFalseString() ) in GetLogical()
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()
581 else if ( StringContains( pUpperAbbrevMonthText[i], rString, nPos ) ) in GetMonth()
588 StringContains( aSepShortened, rString, nPos ) ) 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()
624 if ( StringContains( pUpperAbbrevDayText[i], rString, nPos ) ) 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()
666 if ( aSymbol.Len() <= rString.Len() - nPos ) in GetCurrency()
669 if ( StringContains( aSymbol, rString, nPos ) ) 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()
710 else if ( StringContains( pChr->upper( pLoc->getTimePM() ), rString, nPos ) ) 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()
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()
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()
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()
1465 sal_Bool ImpSvNumberInputScan::ScanStartString( const String& rString, in ScanStartString() argument
1472 SkipBlanks(rString, nPos); in ScanStartString()
1475 nSign = GetSign(rString, nPos); in ScanStartString()
1477 SkipBlanks(rString, nPos); in ScanStartString()
1480 if ( nMatchedAllStrings && !(nSign && rString.Len() == 1) ) 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()
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()
1568 sal_Bool ImpSvNumberInputScan::ScanMidString( const String& rString, in ScanMidString() argument
1578 if ( ScanStringNumFor( rString, 0, pFormat, nStringPos ) ) in ScanMidString()
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()
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()
1757 rString.GetChar(0) == 'T' && MayBeIso8601()) in ScanMidString()
1765 if (nPos == 0 && rString.Len() == 1 && nStringPos >= 9 && in ScanMidString()
1769 switch (rString.GetChar(0)) in ScanMidString()
1794 if (nPos < rString.Len()) // not everything consumed? in ScanMidString()
1813 sal_Bool ImpSvNumberInputScan::ScanEndString( const String& rString, in ScanEndString() argument
1822 if ( ScanStringNumFor( rString, 0, pFormat, 0xFFFF ) ) in ScanEndString()
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()
1971 if (GetTimeAmPm(rString, nPos)) 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()
2009 if ( StringContains( rSep, rString, nPos ) ) 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()
2024 SkipBlanks(rString, nPos); in ScanEndString()
2033 rString.Len() == 1 && rString.GetChar(0) == 'Z' && MayBeIso8601()) in ScanEndString()
2040 if (nPos < rString.Len()) // everything consumed? in ScanEndString()
2043 if ( !ScanStringNumFor( rString, nPos, pFormat, 0xFFFF ) ) in ScanEndString()
2052 const String& rString, // String to scan in ScanStringNumFor() argument
2063 String aString( rString ); in ScanStringNumFor()
2148 const String& rString, // string to be analyzed in IsNumberFormatMain() argument
2153 NumberStringDivision( rString ); // breakdown into strings and numbers in IsNumberFormatMain()
2486 const String& rString, // string to be analyzed in IsNumberFormat() argument
2496 if ( !rString.Len() ) in IsNumberFormat()
2498 else if (rString.Len() > 308) // arbitrary in IsNumberFormat()
2503 aString = pFormatter->GetCharClass()->upper( rString ); in IsNumberFormat()