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 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()
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()
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()
1573 sal_Bool ImpSvNumberInputScan::ScanMidString( const String& rString, in ScanMidString() argument
1583 if ( ScanStringNumFor( rString, 0, pFormat, nStringPos ) ) in ScanMidString()
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()
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()
1762 rString.GetChar(0) == 'T' && MayBeIso8601()) in ScanMidString()
1770 if (nPos == 0 && rString.Len() == 1 && nStringPos >= 9 && in ScanMidString()
1774 switch (rString.GetChar(0)) in ScanMidString()
1799 if (nPos < rString.Len()) // not everything consumed? in ScanMidString()
1818 sal_Bool ImpSvNumberInputScan::ScanEndString( const String& rString, in ScanEndString() argument
1827 if ( ScanStringNumFor( rString, 0, pFormat, 0xFFFF ) ) in ScanEndString()
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()
1976 if (GetTimeAmPm(rString, nPos)) 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()
2014 if ( StringContains( rSep, rString, nPos ) ) 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()
2029 SkipBlanks(rString, nPos); in ScanEndString()
2038 rString.Len() == 1 && rString.GetChar(0) == 'Z' && MayBeIso8601()) in ScanEndString()
2045 if (nPos < rString.Len()) // everything consumed? in ScanEndString()
2048 if ( !ScanStringNumFor( rString, nPos, pFormat, 0xFFFF ) ) in ScanEndString()
2057 const String& rString, // String to scan in ScanStringNumFor() argument
2068 String aString( rString ); in ScanStringNumFor()
2153 const String& rString, // string to be analyzed in IsNumberFormatMain() argument
2158 NumberStringDivision( rString ); // breakdown into strings and numbers in IsNumberFormatMain()
2491 const String& rString, // string to be analyzed in IsNumberFormat() argument
2501 if ( !rString.Len() ) in IsNumberFormat()
2503 else if (rString.Len() > 308) // arbitrary in IsNumberFormat()
2508 aString = pFormatter->GetCharClass()->upper( rString ); in IsNumberFormat()