Lines Matching refs:pStr
62 sal_Int32 SAL_CALL IMPL_RTL_STRNAME( getLength )( const IMPL_RTL_STRCODE* pStr ) in IMPL_RTL_STRNAME()
64 const IMPL_RTL_STRCODE* pTempStr = pStr; in IMPL_RTL_STRNAME()
67 return pTempStr-pStr; in IMPL_RTL_STRNAME()
260 sal_Int32 SAL_CALL IMPL_RTL_STRNAME( hashCode )( const IMPL_RTL_STRCODE* pStr ) in IMPL_RTL_STRNAME()
262 return IMPL_RTL_STRNAME( hashCode_WithLength )( pStr, IMPL_RTL_STRNAME( getLength )( pStr ) ); in IMPL_RTL_STRNAME()
267 sal_Int32 SAL_CALL IMPL_RTL_STRNAME( hashCode_WithLength )( const IMPL_RTL_STRCODE* pStr, in IMPL_RTL_STRNAME()
276 h = (h*37) + IMPL_RTL_USTRCODE( *pStr ); in IMPL_RTL_STRNAME()
277 pStr++; in IMPL_RTL_STRNAME()
284 const IMPL_RTL_STRCODE* pEndStr = pStr+nLen-5; in IMPL_RTL_STRNAME()
288 h = (h*39) + IMPL_RTL_USTRCODE( *pStr ); in IMPL_RTL_STRNAME()
289 pStr++; in IMPL_RTL_STRNAME()
290 h = (h*39) + IMPL_RTL_USTRCODE( *pStr ); in IMPL_RTL_STRNAME()
291 pStr++; in IMPL_RTL_STRNAME()
292 h = (h*39) + IMPL_RTL_USTRCODE( *pStr ); in IMPL_RTL_STRNAME()
293 pStr++; in IMPL_RTL_STRNAME()
302 h = (h*39) + IMPL_RTL_USTRCODE( *pStr ); in IMPL_RTL_STRNAME()
303 pStr += nSkip; in IMPL_RTL_STRNAME()
323 sal_Int32 SAL_CALL IMPL_RTL_STRNAME( indexOfChar )( const IMPL_RTL_STRCODE* pStr, in IMPL_RTL_STRNAME()
326 const IMPL_RTL_STRCODE* pTempStr = pStr; in IMPL_RTL_STRNAME()
330 return pTempStr-pStr; in IMPL_RTL_STRNAME()
340 sal_Int32 SAL_CALL IMPL_RTL_STRNAME( indexOfChar_WithLength )( const IMPL_RTL_STRCODE* pStr, in IMPL_RTL_STRNAME()
344 const IMPL_RTL_STRCODE* pTempStr = pStr; in IMPL_RTL_STRNAME()
348 return pTempStr-pStr; in IMPL_RTL_STRNAME()
359 sal_Int32 SAL_CALL IMPL_RTL_STRNAME( lastIndexOfChar )( const IMPL_RTL_STRCODE* pStr, in IMPL_RTL_STRNAME()
362 …return IMPL_RTL_STRNAME( lastIndexOfChar_WithLength )( pStr, IMPL_RTL_STRNAME( getLength )( pStr )… in IMPL_RTL_STRNAME()
367 sal_Int32 SAL_CALL IMPL_RTL_STRNAME( lastIndexOfChar_WithLength )( const IMPL_RTL_STRCODE* pStr, in IMPL_RTL_STRNAME()
371 pStr += nLen; in IMPL_RTL_STRNAME()
375 pStr--; in IMPL_RTL_STRNAME()
377 if ( *pStr == c ) in IMPL_RTL_STRNAME()
386 sal_Int32 SAL_CALL IMPL_RTL_STRNAME( indexOfStr )( const IMPL_RTL_STRCODE* pStr, in IMPL_RTL_STRNAME()
389 return IMPL_RTL_STRNAME( indexOfStr_WithLength )( pStr, IMPL_RTL_STRNAME( getLength )( pStr ), in IMPL_RTL_STRNAME()
395 sal_Int32 SAL_CALL IMPL_RTL_STRNAME( indexOfStr_WithLength )( const IMPL_RTL_STRCODE* pStr, in IMPL_RTL_STRNAME()
407 const IMPL_RTL_STRCODE* pTempStr = pStr; in IMPL_RTL_STRNAME()
411 return pTempStr-pStr; in IMPL_RTL_STRNAME()
420 const IMPL_RTL_STRCODE* pTempStr = pStr; in IMPL_RTL_STRNAME()
442 return pTempStr-pStr; in IMPL_RTL_STRNAME()
458 sal_Int32 SAL_CALL IMPL_RTL_STRNAME( lastIndexOfStr )( const IMPL_RTL_STRCODE* pStr, in IMPL_RTL_STRNAME()
461 … return IMPL_RTL_STRNAME( lastIndexOfStr_WithLength )( pStr, IMPL_RTL_STRNAME( getLength )( pStr ), in IMPL_RTL_STRNAME()
467 sal_Int32 SAL_CALL IMPL_RTL_STRNAME( lastIndexOfStr_WithLength )( const IMPL_RTL_STRCODE* pStr, in IMPL_RTL_STRNAME()
479 pStr += nStrLen; in IMPL_RTL_STRNAME()
483 pStr--; in IMPL_RTL_STRNAME()
485 if ( *pStr == c ) in IMPL_RTL_STRNAME()
492 pStr += nStrLen; in IMPL_RTL_STRNAME()
494 pStr -= nSubLen; in IMPL_RTL_STRNAME()
497 const IMPL_RTL_STRCODE* pTempStr1 = pStr; in IMPL_RTL_STRNAME()
514 pStr--; in IMPL_RTL_STRNAME()
523 void SAL_CALL IMPL_RTL_STRNAME( replaceChar )( IMPL_RTL_STRCODE* pStr, in IMPL_RTL_STRNAME()
527 while ( *pStr ) in IMPL_RTL_STRNAME()
529 if ( *pStr == cOld ) in IMPL_RTL_STRNAME()
530 *pStr = cNew; in IMPL_RTL_STRNAME()
532 pStr++; in IMPL_RTL_STRNAME()
538 void SAL_CALL IMPL_RTL_STRNAME( replaceChar_WithLength )( IMPL_RTL_STRCODE* pStr, in IMPL_RTL_STRNAME()
545 if ( *pStr == cOld ) in IMPL_RTL_STRNAME()
546 *pStr = cNew; in IMPL_RTL_STRNAME()
548 pStr++; in IMPL_RTL_STRNAME()
555 void SAL_CALL IMPL_RTL_STRNAME( toAsciiLowerCase )( IMPL_RTL_STRCODE* pStr ) in IMPL_RTL_STRNAME()
557 while ( *pStr ) in IMPL_RTL_STRNAME()
560 if ( (*pStr >= 65) && (*pStr <= 90) ) in IMPL_RTL_STRNAME()
561 *pStr += 32; in IMPL_RTL_STRNAME()
563 pStr++; in IMPL_RTL_STRNAME()
569 void SAL_CALL IMPL_RTL_STRNAME( toAsciiLowerCase_WithLength )( IMPL_RTL_STRCODE* pStr, in IMPL_RTL_STRNAME()
575 if ( (*pStr >= 65) && (*pStr <= 90) ) in IMPL_RTL_STRNAME()
576 *pStr += 32; in IMPL_RTL_STRNAME()
578 pStr++; in IMPL_RTL_STRNAME()
585 void SAL_CALL IMPL_RTL_STRNAME( toAsciiUpperCase )( IMPL_RTL_STRCODE* pStr ) in IMPL_RTL_STRNAME()
587 while ( *pStr ) in IMPL_RTL_STRNAME()
590 if ( (*pStr >= 97) && (*pStr <= 122) ) in IMPL_RTL_STRNAME()
591 *pStr -= 32; in IMPL_RTL_STRNAME()
593 pStr++; in IMPL_RTL_STRNAME()
599 void SAL_CALL IMPL_RTL_STRNAME( toAsciiUpperCase_WithLength )( IMPL_RTL_STRCODE* pStr, in IMPL_RTL_STRNAME()
605 if ( (*pStr >= 97) && (*pStr <= 122) ) in IMPL_RTL_STRNAME()
606 *pStr -= 32; in IMPL_RTL_STRNAME()
608 pStr++; in IMPL_RTL_STRNAME()
615 sal_Int32 SAL_CALL IMPL_RTL_STRNAME( trim )( IMPL_RTL_STRCODE* pStr ) in IMPL_RTL_STRNAME()
617 return IMPL_RTL_STRNAME( trim_WithLength )( pStr, IMPL_RTL_STRNAME( getLength )( pStr ) ); in IMPL_RTL_STRNAME()
622 sal_Int32 SAL_CALL IMPL_RTL_STRNAME( trim_WithLength )( IMPL_RTL_STRCODE* pStr, sal_Int32 nLen ) in IMPL_RTL_STRNAME()
628 while ( (nPreSpaces < nLen) && rtl_ImplIsWhitespace( IMPL_RTL_USTRCODE(*(pStr+nPreSpaces)) ) ) in IMPL_RTL_STRNAME()
631 while ( (nIndex > nPreSpaces) && rtl_ImplIsWhitespace( IMPL_RTL_USTRCODE(*(pStr+nIndex)) ) ) in IMPL_RTL_STRNAME()
640 *(pStr+nLen) = 0; in IMPL_RTL_STRNAME()
645 IMPL_RTL_STRCODE* pNewStr = pStr+nPreSpaces; in IMPL_RTL_STRNAME()
652 *pStr = *pNewStr; in IMPL_RTL_STRNAME()
653 pStr++; in IMPL_RTL_STRNAME()
657 *pStr = 0; in IMPL_RTL_STRNAME()
665 sal_Int32 SAL_CALL IMPL_RTL_STRNAME( valueOfBoolean )( IMPL_RTL_STRCODE* pStr, sal_Bool b ) in IMPL_RTL_STRNAME()
669 *pStr = 't'; in IMPL_RTL_STRNAME()
670 pStr++; in IMPL_RTL_STRNAME()
671 *pStr = 'r'; in IMPL_RTL_STRNAME()
672 pStr++; in IMPL_RTL_STRNAME()
673 *pStr = 'u'; in IMPL_RTL_STRNAME()
674 pStr++; in IMPL_RTL_STRNAME()
675 *pStr = 'e'; in IMPL_RTL_STRNAME()
676 pStr++; in IMPL_RTL_STRNAME()
677 *pStr = 0; in IMPL_RTL_STRNAME()
682 *pStr = 'f'; in IMPL_RTL_STRNAME()
683 pStr++; in IMPL_RTL_STRNAME()
684 *pStr = 'a'; in IMPL_RTL_STRNAME()
685 pStr++; in IMPL_RTL_STRNAME()
686 *pStr = 'l'; in IMPL_RTL_STRNAME()
687 pStr++; in IMPL_RTL_STRNAME()
688 *pStr = 's'; in IMPL_RTL_STRNAME()
689 pStr++; in IMPL_RTL_STRNAME()
690 *pStr = 'e'; in IMPL_RTL_STRNAME()
691 pStr++; in IMPL_RTL_STRNAME()
692 *pStr = 0; in IMPL_RTL_STRNAME()
699 sal_Int32 SAL_CALL IMPL_RTL_STRNAME( valueOfChar )( IMPL_RTL_STRCODE* pStr, in IMPL_RTL_STRNAME()
702 *pStr++ = c; in IMPL_RTL_STRNAME()
703 *pStr = 0; in IMPL_RTL_STRNAME()
709 sal_Int32 SAL_CALL IMPL_RTL_STRNAME( valueOfInt32 )( IMPL_RTL_STRCODE* pStr, in IMPL_RTL_STRNAME()
725 *pStr = '-'; in IMPL_RTL_STRNAME()
726 pStr++; in IMPL_RTL_STRNAME()
751 *pStr = *pBuf; in IMPL_RTL_STRNAME()
752 pStr++; in IMPL_RTL_STRNAME()
756 *pStr = 0; in IMPL_RTL_STRNAME()
763 sal_Int32 SAL_CALL IMPL_RTL_STRNAME( valueOfInt64 )( IMPL_RTL_STRCODE* pStr, in IMPL_RTL_STRNAME()
779 *pStr = '-'; in IMPL_RTL_STRNAME()
780 pStr++; in IMPL_RTL_STRNAME()
806 *pStr = *pBuf; in IMPL_RTL_STRNAME()
807 pStr++; in IMPL_RTL_STRNAME()
811 *pStr = 0; in IMPL_RTL_STRNAME()
818 sal_Bool SAL_CALL IMPL_RTL_STRNAME( toBoolean )( const IMPL_RTL_STRCODE* pStr ) in IMPL_RTL_STRNAME()
820 if ( *pStr == '1' ) in IMPL_RTL_STRNAME()
823 if ( (*pStr == 'T') || (*pStr == 't') ) in IMPL_RTL_STRNAME()
825 pStr++; in IMPL_RTL_STRNAME()
826 if ( (*pStr == 'R') || (*pStr == 'r') ) in IMPL_RTL_STRNAME()
828 pStr++; in IMPL_RTL_STRNAME()
829 if ( (*pStr == 'U') || (*pStr == 'u') ) in IMPL_RTL_STRNAME()
831 pStr++; in IMPL_RTL_STRNAME()
832 if ( (*pStr == 'E') || (*pStr == 'e') ) in IMPL_RTL_STRNAME()
843 sal_Int32 SAL_CALL IMPL_RTL_STRNAME( toInt32 )( const IMPL_RTL_STRCODE* pStr, in IMPL_RTL_STRNAME()
854 while ( *pStr && rtl_ImplIsWhitespace( IMPL_RTL_USTRCODE( *pStr ) ) ) in IMPL_RTL_STRNAME()
855 pStr++; in IMPL_RTL_STRNAME()
857 if ( *pStr == '-' ) in IMPL_RTL_STRNAME()
860 pStr++; in IMPL_RTL_STRNAME()
864 if ( *pStr == '+' ) in IMPL_RTL_STRNAME()
865 pStr++; in IMPL_RTL_STRNAME()
869 while ( *pStr ) in IMPL_RTL_STRNAME()
871 nDigit = rtl_ImplGetDigit( IMPL_RTL_USTRCODE( *pStr ), nRadix ); in IMPL_RTL_STRNAME()
878 pStr++; in IMPL_RTL_STRNAME()
889 sal_Int64 SAL_CALL IMPL_RTL_STRNAME( toInt64 )( const IMPL_RTL_STRCODE* pStr, in IMPL_RTL_STRNAME()
900 while ( *pStr && rtl_ImplIsWhitespace( IMPL_RTL_USTRCODE( *pStr ) ) ) in IMPL_RTL_STRNAME()
901 pStr++; in IMPL_RTL_STRNAME()
903 if ( *pStr == '-' ) in IMPL_RTL_STRNAME()
906 pStr++; in IMPL_RTL_STRNAME()
910 if ( *pStr == '+' ) in IMPL_RTL_STRNAME()
911 pStr++; in IMPL_RTL_STRNAME()
915 while ( *pStr ) in IMPL_RTL_STRNAME()
917 nDigit = rtl_ImplGetDigit( IMPL_RTL_USTRCODE( *pStr ), nRadix ); in IMPL_RTL_STRNAME()
924 pStr++; in IMPL_RTL_STRNAME()
957 IMPL_RTL_STRINGDATA* pStr, in IMPL_RTL_STRINGNAME()
962 IMPL_RTL_STRINGDATA* pData = IMPL_RTL_STRINGNAME( ImplAlloc )( pStr->length ); in IMPL_RTL_STRINGNAME()
966 pSrc = pStr->buffer; in IMPL_RTL_STRINGNAME()
1060 const IMPL_RTL_STRINGDATA* pStr ) in IMPL_RTL_STRINGNAME()
1064 if ( !pStr->length ) in IMPL_RTL_STRINGNAME()
1071 *ppThis = IMPL_RTL_STRINGNAME( ImplAlloc )( pStr->length ); in IMPL_RTL_STRINGNAME()
1073 rtl_str_ImplCopy( (*ppThis)->buffer, pStr->buffer, pStr->length ); in IMPL_RTL_STRINGNAME()
1149 IMPL_RTL_STRINGDATA* pStr ) in IMPL_RTL_STRINGNAME()
1152 IMPL_RTL_AQUIRE( pStr ); in IMPL_RTL_STRINGNAME()
1157 *ppThis = pStr; in IMPL_RTL_STRINGNAME()
1210 IMPL_RTL_STRINGDATA* pStr, in IMPL_RTL_STRINGNAME()
1216 if ( nIndex >= pStr->length ) in IMPL_RTL_STRINGNAME()
1219 IMPL_RTL_STRINGNAME( newConcat )( ppThis, pStr, pNewSubStr ); in IMPL_RTL_STRINGNAME()
1231 if ( nCount >= pStr->length-nIndex ) in IMPL_RTL_STRINGNAME()
1233 nCount = pStr->length-nIndex; in IMPL_RTL_STRINGNAME()
1236 if ( !nIndex && (nCount >= pStr->length) ) in IMPL_RTL_STRINGNAME()
1249 IMPL_RTL_STRINGNAME( assign )( ppThis, pStr ); in IMPL_RTL_STRINGNAME()
1259 nNewLen = pStr->length-nCount; in IMPL_RTL_STRINGNAME()
1269 rtl_str_ImplCopy( pBuffer, pStr->buffer, nIndex ); in IMPL_RTL_STRINGNAME()
1277 rtl_str_ImplCopy( pBuffer, pStr->buffer+nIndex+nCount, pStr->length-nIndex-nCount ); in IMPL_RTL_STRINGNAME()
1288 IMPL_RTL_STRINGDATA* pStr, in IMPL_RTL_STRINGNAME()
1294 sal_Int32 nLen = pStr->length; in IMPL_RTL_STRINGNAME()
1295 const IMPL_RTL_STRCODE* pCharStr = pStr->buffer; in IMPL_RTL_STRINGNAME()
1302 …L_STRCODE* pNewCharStr = IMPL_RTL_STRINGNAME( ImplNewCopy )( ppThis, pStr, pCharStr-pStr->buffer ); in IMPL_RTL_STRINGNAME()
1335 *ppThis = pStr; in IMPL_RTL_STRINGNAME()
1336 IMPL_RTL_AQUIRE( pStr ); in IMPL_RTL_STRINGNAME()
1347 IMPL_RTL_STRINGDATA* pStr ) in IMPL_RTL_STRINGNAME()
1351 sal_Int32 nLen = pStr->length; in IMPL_RTL_STRINGNAME()
1352 const IMPL_RTL_STRCODE* pCharStr = pStr->buffer; in IMPL_RTL_STRINGNAME()
1360 …L_STRCODE* pNewCharStr = IMPL_RTL_STRINGNAME( ImplNewCopy )( ppThis, pStr, pCharStr-pStr->buffer ); in IMPL_RTL_STRINGNAME()
1395 *ppThis = pStr; in IMPL_RTL_STRINGNAME()
1396 IMPL_RTL_AQUIRE( pStr ); in IMPL_RTL_STRINGNAME()
1407 IMPL_RTL_STRINGDATA* pStr ) in IMPL_RTL_STRINGNAME()
1411 sal_Int32 nLen = pStr->length; in IMPL_RTL_STRINGNAME()
1412 const IMPL_RTL_STRCODE* pCharStr = pStr->buffer; in IMPL_RTL_STRINGNAME()
1420 …L_STRCODE* pNewCharStr = IMPL_RTL_STRINGNAME( ImplNewCopy )( ppThis, pStr, pCharStr-pStr->buffer ); in IMPL_RTL_STRINGNAME()
1455 *ppThis = pStr; in IMPL_RTL_STRINGNAME()
1456 IMPL_RTL_AQUIRE( pStr ); in IMPL_RTL_STRINGNAME()
1467 IMPL_RTL_STRINGDATA* pStr ) in IMPL_RTL_STRINGNAME()
1470 const IMPL_RTL_STRCODE* pCharStr = pStr->buffer; in IMPL_RTL_STRINGNAME()
1473 sal_Int32 nLen = pStr->length; in IMPL_RTL_STRINGNAME()
1487 *ppThis = pStr; in IMPL_RTL_STRINGNAME()
1488 IMPL_RTL_AQUIRE( pStr ); in IMPL_RTL_STRINGNAME()
1496 rtl_str_ImplCopy( (*ppThis)->buffer, pStr->buffer+nPreSpaces, nLen ); in IMPL_RTL_STRINGNAME()
1507 IMPL_RTL_STRINGDATA* pStr, in IMPL_RTL_STRINGNAME()
1512 const IMPL_RTL_STRCODE* pCharStr = pStr->buffer; in IMPL_RTL_STRINGNAME()
1515 sal_Int32 nLen = pStr->length-nIndex; in IMPL_RTL_STRINGNAME()