Lines Matching refs:aStr
247 XubString aStr = rStr; in ImplPatternReformat() local
259 if ( nStrIndex >= aStr.Len() ) in ImplPatternReformat()
262 cChar = aStr.GetChar(nStrIndex); in ImplPatternReformat()
568 XubString aStr( pEdit->GetText() ); in ImplPatternProcessKeyInput() local
569 XubString aOldStr = aStr; in ImplPatternProcessKeyInput()
579 aStr.Erase( (xub_StrLen)aSel.Min(), (xub_StrLen)aSel.Len() ); in ImplPatternProcessKeyInput()
583 aStr.Replace( (xub_StrLen)aSel.Min(), aRep.Len(), aRep ); in ImplPatternProcessKeyInput()
594 … nTempPos = ImplPatternRightPos( aStr, rEditMask, nFormatFlags, bSameMask, nNewPos ); in ImplPatternProcessKeyInput()
601 aStr.Erase( nNewPos, 1 ); in ImplPatternProcessKeyInput()
606 aStr.Replace( nNewPos, aTempStr.Len(), aTempStr ); in ImplPatternProcessKeyInput()
611 if ( aOldStr != aStr ) in ImplPatternProcessKeyInput()
614 aStr = ImplPatternReformat( aStr, rEditMask, rLiteralMask, nFormatFlags ); in ImplPatternProcessKeyInput()
616 pEdit->SetText( aStr, Selection( nNewPos ) ); in ImplPatternProcessKeyInput()
694 XubString aStr = pEdit->GetText(); in ImplPatternProcessKeyInput() local
700 xub_StrLen n = aStr.Len(); in ImplPatternProcessKeyInput()
703 if ( (aStr.GetChar( n-1 ) != ' ') && in ImplPatternProcessKeyInput()
709 aStr.Erase( n ); in ImplPatternProcessKeyInput()
712 aStr.Erase( (xub_StrLen)aSel.Min(), (xub_StrLen)aSel.Len() ); in ImplPatternProcessKeyInput()
714 if ( aStr.Len() < rEditMask.Len() ) in ImplPatternProcessKeyInput()
717 if ( aStr.Len() < nNewPos ) in ImplPatternProcessKeyInput()
718 aStr += rLiteralMask.Copy( aStr.Len(), nNewPos-aStr.Len() ); in ImplPatternProcessKeyInput()
719 if ( nNewPos < aStr.Len() ) in ImplPatternProcessKeyInput()
720 aStr.Insert( cChar, nNewPos ); in ImplPatternProcessKeyInput()
722 aStr += cChar; in ImplPatternProcessKeyInput()
723 aStr = ImplPatternReformat( aStr, rEditMask, rLiteralMask, nFormatFlags ); in ImplPatternProcessKeyInput()
734 aStr.Replace( (xub_StrLen)aSel.Min(), aRep.Len(), aRep ); in ImplPatternProcessKeyInput()
737 if ( nNewPos < aStr.Len() ) in ImplPatternProcessKeyInput()
738 aStr.SetChar( nNewPos, cChar ); in ImplPatternProcessKeyInput()
740 aStr += cChar; in ImplPatternProcessKeyInput()
748 … Selection aNewSel( ImplPatternRightPos( aStr, rEditMask, nFormatFlags, bSameMask, nNewPos ) ); in ImplPatternProcessKeyInput()
749 pEdit->SetText( aStr, aNewSel ); in ImplPatternProcessKeyInput()
1073 XubString aStr; in ReformatAll() local
1078 … aStr = ImplPatternReformat( GetEntry( i ), GetEditMask(), GetLiteralMask(), GetFormatFlags() ); in ReformatAll()
1080 InsertEntry( aStr, i ); in ReformatAll()
1215 String aStr( rStr ); in ImplDateGetValue() local
1223 nMonth = ImplCutMonthFromString( aStr, rCalendarWrapper ); in ImplDateGetValue()
1224 nDay = ImplCutNumberFromString( aStr ); in ImplDateGetValue()
1225 nYear = ImplCutNumberFromString( aStr ); in ImplDateGetValue()
1228 nDay = ImplCutNumberFromString( aStr ); in ImplDateGetValue()
1229 nMonth = ImplCutMonthFromString( aStr, rCalendarWrapper ); in ImplDateGetValue()
1230 nYear = ImplCutNumberFromString( aStr ); in ImplDateGetValue()
1234 nYear = ImplCutNumberFromString( aStr ); in ImplDateGetValue()
1235 nMonth = ImplCutMonthFromString( aStr, rCalendarWrapper ); in ImplDateGetValue()
1236 nDay = ImplCutNumberFromString( aStr ); in ImplDateGetValue()
1244 sal_uInt16 nSepPos = aStr.Search( aDateSep ); in ImplDateGetValue()
1247 nSepPos = aStr.Search( aDateSep, nSepPos+1 ); in ImplDateGetValue()
1248 if ( ( nSepPos == STRING_NOTFOUND ) || ( nSepPos == (aStr.Len()-1) ) ) in ImplDateGetValue()
1254 const sal_Unicode* pBuf = aStr.GetBuffer(); in ImplDateGetValue()
1999 XubString aStr; in Reformat() local
2000 sal_Bool bOK = ImplDateReformat( GetField()->GetText(), aStr, GetFieldSettings() ); in Reformat()
2004 if ( aStr.Len() ) in Reformat()
2006 ImplSetText( aStr ); in Reformat()
2007 …ImplDateGetValue( aStr, maLastDate, GetExtDateFormat(sal_True), ImplGetLocaleDataWrapper(), GetCal… in Reformat()
2320 XubString aStr; in ReformatAll() local
2325 ImplDateReformat( GetEntry( i ), aStr, GetFieldSettings() ); in ReformatAll()
2327 InsertEntry( aStr, i ); in ReformatAll()
2366 XubString aStr; in GetDatePos() local
2368 …aStr = ImplGetLocaleDataWrapper().getLongDate( rDate, GetCalendarWrapper(), 1, sal_False, 1, !IsSh… in GetDatePos()
2370 aStr = ImplGetLocaleDataWrapper().getDate( rDate ); in GetDatePos()
2371 return ComboBox::GetEntryPos( aStr ); in GetDatePos()
2449 XubString aStr = rStr; in ImplTimeGetValue() local
2471 for ( xub_StrLen j = 0; j < aStr.Len(); j++ ) in ImplTimeGetValue()
2473 if ( aStr.GetChar( j ) == aSepStr.GetChar( i ) ) in ImplTimeGetValue()
2474 aStr.SetChar( j, rLocaleDataWrapper.getTimeSep().GetChar(0) ); in ImplTimeGetValue()
2480 xub_StrLen nSepPos = aStr.Search( rLocaleDataWrapper.getTimeSep() ); in ImplTimeGetValue()
2481 if ( aStr.GetChar( 0 ) == '-' ) in ImplTimeGetValue()
2486 nSepPos = aStr.Len(); in ImplTimeGetValue()
2487 if ( !ImplCutTimePortion( aStr, nSepPos, _bSkipInvalidCharacters, &nHour ) ) in ImplTimeGetValue()
2490 nSepPos = aStr.Search( rLocaleDataWrapper.getTimeSep() ); in ImplTimeGetValue()
2491 if ( aStr.GetChar( 0 ) == '-' ) in ImplTimeGetValue()
2495 if ( !ImplCutTimePortion( aStr, nSepPos, _bSkipInvalidCharacters, &nMinute ) ) in ImplTimeGetValue()
2498 nSepPos = aStr.Search( rLocaleDataWrapper.getTimeSep() ); in ImplTimeGetValue()
2499 if ( aStr.GetChar( 0 ) == '-' ) in ImplTimeGetValue()
2503 if ( !ImplCutTimePortion( aStr, nSepPos, _bSkipInvalidCharacters, &nSecond ) ) in ImplTimeGetValue()
2505 if ( aStr.GetChar( 0 ) == '-' ) in ImplTimeGetValue()
2507 n100Sec = (short)aStr.ToInt32(); in ImplTimeGetValue()
2510 nSecond = (short)aStr.ToInt32(); in ImplTimeGetValue()
2513 nMinute = (short)aStr.ToInt32(); in ImplTimeGetValue()
2517 nSecond = (short)aStr.ToInt32(); in ImplTimeGetValue()
2525 nSecond = (short)aStr.Copy( 0, nSepPos ).ToInt32(); in ImplTimeGetValue()
2526 aStr.Erase( 0, nSepPos+1 ); in ImplTimeGetValue()
2528 nSepPos = aStr.Search( rLocaleDataWrapper.getTimeSep() ); in ImplTimeGetValue()
2529 if ( aStr.GetChar( 0 ) == '-' ) in ImplTimeGetValue()
2534 nSecond = (short)aStr.Copy( 0, nSepPos ).ToInt32(); in ImplTimeGetValue()
2535 aStr.Erase( 0, nSepPos+1 ); in ImplTimeGetValue()
2537 nSepPos = aStr.Search( rLocaleDataWrapper.getTimeSep() ); in ImplTimeGetValue()
2538 if ( aStr.GetChar( 0 ) == '-' ) in ImplTimeGetValue()
2544 nSecond = (short)aStr.Copy( 0, nSepPos ).ToInt32(); in ImplTimeGetValue()
2545 aStr.Erase( 0, nSepPos+1 ); in ImplTimeGetValue()
2560 n100Sec = (short)aStr.ToInt32(); in ImplTimeGetValue()
2566 while ( aStr.GetChar(nLen) >= '0' && aStr.GetChar(nLen) <= '9' ) in ImplTimeGetValue()
2604 aStr.ToUpperAscii(); in ImplTimeGetValue()
2612 …if ( (nHour < 12) && ( ( aStr.Search( aPM ) != STRING_NOTFOUND ) || ( aStr.Search( aPM2 ) != STRIN… in ImplTimeGetValue()
2615 …if ( (nHour == 12) && ( ( aStr.Search( aAM ) != STRING_NOTFOUND ) || ( aStr.Search( aAM2 ) != STRI… in ImplTimeGetValue()
2964 XubString aStr; in ImplSetUserTime() local
2976 aStr = String::CreateFromInt32( n ); in ImplSetUserTime()
2977 aStr += ImplGetLocaleDataWrapper().getTime100SecSep(); in ImplSetUserTime()
2979 aStr += '0'; in ImplSetUserTime()
2980 aStr += String::CreateFromInt32( aNewTime.Get100Sec() ); in ImplSetUserTime()
2984 aStr = ImplGetLocaleDataWrapper().getDuration( aNewTime, bSec, b100Sec ); in ImplSetUserTime()
2988 aStr = ImplGetLocaleDataWrapper().getTime( aNewTime, bSec, b100Sec ); in ImplSetUserTime()
2995 aStr = ImplGetLocaleDataWrapper().getTime( aT, bSec, b100Sec ); in ImplSetUserTime()
2999 … aStr += String( RTL_CONSTASCII_USTRINGPARAM( "AM" ) ); // ImplGetLocaleDataWrapper().getTimeAM(); in ImplSetUserTime()
3001 … aStr += String( RTL_CONSTASCII_USTRINGPARAM( "PM" ) ); // ImplGetLocaleDataWrapper().getTimePM(); in ImplSetUserTime()
3005 ImplSetText( aStr, pNewSelection ); in ImplSetUserTime()
3083 XubString aStr; in Reformat() local
3084 sal_Bool bOK = ImplTimeReformat( GetField()->GetText(), aStr ); in Reformat()
3088 if ( aStr.Len() ) in Reformat()
3090 ImplSetText( aStr ); in Reformat()
3091 ImplTimeGetValue( aStr, maLastTime, GetFormat(), IsDuration(), ImplGetLocaleDataWrapper() ); in Reformat()
3397 XubString aStr; in ReformatAll() local
3402 ImplTimeReformat( GetEntry( i ), aStr ); in ReformatAll()
3404 InsertEntry( aStr, i ); in ReformatAll()