/trunk/main/vcl/source/gdi/ |
H A D | outdev3.cxx | 4822 while ( nPos < nLen ) in ImplGetTextLines() 6003 if( !nLen ) in ImplLayout() 6008 if( !nLen ) in ImplLayout() 7011 --nLen; in DrawCtrlText() 7121 nLen--; in GetCtrlTextWidth() 7138 while ( i < nLen ) in GetNonMnemonicString() 7147 nLen--; in GetNonMnemonicString() 7152 nLen--; in GetNonMnemonicString() 7505 if( nLen == STRING_LEN ) in GetGlyphBoundRects() 7714 if( nLen == STRING_LEN ) in GetTextOutlines() [all …]
|
/trunk/main/xmloff/source/core/ |
H A D | xmlehelp.cxx | 416 sal_Int32 nLen = rString.getLength(); in GetUnitFromString() local 420 while( nPos < nLen && sal_Unicode(' ') == rString[nPos] ) in GetUnitFromString() 424 if( nPos < nLen && sal_Unicode('-') == rString[nPos] ) in GetUnitFromString() 431 if( nPos < nLen && sal_Unicode('.') == rString[nPos] ) in GetUnitFromString() 439 while( nPos < nLen && sal_Unicode(' ') == rString[nPos] ) in GetUnitFromString() 442 if( nPos < nLen ) in GetUnitFromString() 454 if(nPos+1 < nLen && (rString[nPos+1] == sal_Unicode('m') in GetUnitFromString() 468 if(nPos+1 < nLen && (rString[nPos+1] == sal_Unicode('n') in GetUnitFromString() 476 if(nPos+1 < nLen && (rString[nPos+1] == sal_Unicode('m') in GetUnitFromString() 484 if(nPos+1 < nLen && (rString[nPos+1] == sal_Unicode('t') in GetUnitFromString() [all …]
|
/trunk/main/sw/inc/ |
H A D | stringhash.hxx | 49 sal_Int32 h, nLen; in operator ()() local 50 h = nLen = rString->Len(); in operator ()() 53 if ( nLen < 16 ) in operator ()() 54 while ( nLen-- > 0 ) in operator ()() 59 const sal_Unicode* pEndStr = pStr+nLen-5; in operator ()() 67 nSkip = nLen / nLen < 32 ? 4 : 8; in operator ()() 68 nLen -= 8; in operator ()() 69 while ( nLen > 0 ) in operator ()() 73 nLen -= nSkip; in operator ()()
|
/trunk/main/sc/source/core/tool/ |
H A D | token.cxx | 191 nLen = MAXSTRLEN; in SetString() 193 cStr[ nLen-1 ] = 0; in SetString() 310 if( nLen >= MAXSTRLEN ) in SetExternal() 311 nLen = MAXSTRLEN-1; in SetExternal() 314 cStr[ nLen+1 ] = 0; in SetExternal() 1340 p->nLen = nLen; in Clone() 1347 if( nLen ) in Clone() 1582 if (!pCode || !nLen) in MergeRangeReference() 1584 sal_uInt16 nIdx = nLen; in MergeRangeReference() 1598 nLen -= 2; in MergeRangeReference() [all …]
|
/trunk/main/linguistic/source/ |
H A D | convdiclist.cxx | 165 sal_Int32 nLen = aConvDics.getLength(); in FlushDics() local 167 for (sal_Int32 i = 0; i < nLen; ++i) in FlushDics() 189 sal_Int32 nLen = aConvDics.getLength(); in GetIndexByName_Impl() local 243 sal_Int32 nLen = aConvDics.getLength(); in getElementNames() local 244 uno::Sequence< OUString > aRes( nLen ); in getElementNames() 247 for (sal_Int32 i = 0; i < nLen; ++i) in getElementNames() 293 sal_Int32 nLen = aConvDics.getLength(); in insertByName() local 294 aConvDics.realloc( nLen + 1 ); in insertByName() 295 aConvDics.getArray()[ nLen ] = xNew; in insertByName() 336 aConvDics.realloc( nLen - 1 ); in removeByName() [all …]
|
H A D | thesdsp.cxx | 58 sal_Int32 nLen = rRefs.getLength(); in SvcListHasLanguage() local 59 for (sal_Int32 k = 0; k < nLen && !bHasLanguage; ++k) in SvcListHasLanguage() 149 sal_Int32 nLen = pEntry->aSvcRefs.getLength(); in queryMeanings() local 150 DBG_ASSERT( nLen == pEntry->aSvcImplNames.getLength(), in queryMeanings() 152 DBG_ASSERT( pEntry->nLastTriedSvcIndex < nLen, in queryMeanings() 171 && pEntry->nLastTriedSvcIndex < nLen - 1) in queryMeanings() 183 while (i < nLen && aMeanings.getLength() == 0) in queryMeanings() 208 if (i == nLen && aMeanings.getLength() == 0) in queryMeanings() 228 sal_Int32 nLen = rSvcImplNames.getLength(); in SetServiceList() local 229 if (0 == nLen) in SetServiceList() [all …]
|
H A D | lngsvcmgr.cxx | 69 sal_Int32 nLen = rSeq.getLength(); in lcl_SeqHasString() local 214 for (sal_Int32 i = 0; i < nLen; ++i) in SetAvailableCfgServiceLists() 1131 for (int i = 0; i < nLen; ++i) in SetCfgServiceLists() 1139 if (nLen && nLen == aValues.getLength()) in SetCfgServiceLists() 1174 for (int i = 0; i < nLen; ++i) in SetCfgServiceLists() 1182 if (nLen && nLen == aValues.getLength()) in SetCfgServiceLists() 1221 for (int i = 0; i < nLen; ++i) in SetCfgServiceLists() 1229 if (nLen && nLen == aValues.getLength()) in SetCfgServiceLists() 1268 for (int i = 0; i < nLen; ++i) in SetCfgServiceLists() 1276 if (nLen && nLen == aValues.getLength()) in SetCfgServiceLists() [all …]
|
/trunk/main/sot/source/sdstor/ |
H A D | storinfo.cxx | 52 sal_Int32 nLen = 0; in ReadClipboardFormat() local 53 rStm >> nLen; in ReadClipboardFormat() 56 if( nLen > 0 ) in ReadClipboardFormat() 59 sal_Char * p = new( ::std::nothrow ) sal_Char[ nLen ]; in ReadClipboardFormat() 60 if( p && rStm.Read( p, nLen ) == (sal_uLong) nLen ) in ReadClipboardFormat() 63 …otExchange::RegisterFormatName( String::CreateFromAscii( p, xub_StrLen( ( nLen - 1 ) & STRING_MAXL… in ReadClipboardFormat() 69 else if( nLen == -1L ) in ReadClipboardFormat() 73 else if( nLen == -2L ) in ReadClipboardFormat() 80 else if( nLen != 0 ) in ReadClipboardFormat()
|
H A D | stgdir.cxx | 442 if( nLen <= 0 ) in Read() 445 nLen = pTmpStrm->Read( p, nLen ); in Read() 447 nLen = pCurStrm->Read( p, nLen ); in Read() 454 nLen = pStgStrm->Read( p, nLen ); in Read() 457 nPos += nLen; in Read() 458 return nLen; in Read() 481 nLen = pTmpStrm->Write( p, nLen ); in Write() 486 sal_Int32 nNew = nPos + nLen; in Write() 493 nLen = pStgStrm->Write( p, nLen ); in Write() 495 nPos += nLen; in Write() [all …]
|
/trunk/main/sal/rtl/source/ |
H A D | string.c | 72 sal_Int32 nLen; in rtl_str_valueOfFloat() local 77 nLen = pResult->length; in rtl_str_valueOfFloat() 78 OSL_ASSERT(nLen < RTL_STR_MAX_VALUEOFFLOAT); in rtl_str_valueOfFloat() 79 rtl_copyMemory(pStr, pResult->buffer, (nLen + 1) * sizeof(sal_Char)); in rtl_str_valueOfFloat() 81 return nLen; in rtl_str_valueOfFloat() 87 sal_Int32 nLen; in rtl_str_valueOfDouble() local 92 nLen = pResult->length; in rtl_str_valueOfDouble() 93 OSL_ASSERT(nLen < RTL_STR_MAX_VALUEOFDOUBLE); in rtl_str_valueOfDouble() 94 rtl_copyMemory(pStr, pResult->buffer, (nLen + 1) * sizeof(sal_Char)); in rtl_str_valueOfDouble() 96 return nLen; in rtl_str_valueOfDouble() [all …]
|
/trunk/main/basegfx/source/inc/ |
H A D | stringconversiontools.hxx | 35 const sal_Int32 nLen); 39 const sal_Int32 nLen); 63 const sal_Int32 nLen ); 68 const sal_Int32 nLen); 72 const sal_Int32 nLen); 79 const sal_Int32 nLen) in lcl_skipNumberAndSpacesAndCommas() argument 81 lcl_skipNumber(io_rPos, rStr, nLen); in lcl_skipNumberAndSpacesAndCommas() 82 lcl_skipSpacesAndCommas(io_rPos, rStr, nLen); in lcl_skipNumberAndSpacesAndCommas() 88 const sal_Int32 nLen) in lcl_skipDoubleAndSpacesAndCommas() argument 91 lcl_skipSpacesAndCommas(io_rPos, rStr, nLen); in lcl_skipDoubleAndSpacesAndCommas()
|
/trunk/main/sdext/source/pdfimport/test/ |
H A D | pdfunzip.cxx | 73 virtual bool write( const void* pBuf, unsigned int nLen ) throw(); 155 bool FileEmitContext::write( const void* pBuf, unsigned int nLen ) throw() in write() argument 160 sal_uInt64 nWrite = static_cast<sal_uInt64>(nLen); in write() 179 if( nOrigOffset + nLen > m_nReadLen ) in copyOrigBytes() 187 void* pBuf = rtl_allocateMemory( nLen ); in copyOrigBytes() 191 if( osl_readFile( m_aReadHandle, pBuf, nLen, &nBytesRead ) != osl_File_E_None in copyOrigBytes() 192 || nBytesRead != static_cast<sal_uInt64>(nLen) ) in copyOrigBytes() 194 fprintf( stderr, "could not read %u bytes\n", nLen ); in copyOrigBytes() 198 bool bRet = write( pBuf, nLen ); in copyOrigBytes() 205 if( nOrigOffset + nLen > m_nReadLen ) in readOrigBytes() [all …]
|
/trunk/main/sw/source/core/doc/ |
H A D | gctable.cxx | 339 sal_uInt16 n, nLen = rpBox->GetTabLines().Count(); in lcl_MergeGCBox() local 340 if( nLen ) in lcl_MergeGCBox() 373 sal_uInt16 nLen = pLn->GetTabBoxes().Count(); in lcl_MergeGCLine() local 374 if( nLen ) in lcl_MergeGCLine() 377 while( 1 == nLen ) in lcl_MergeGCLine() 390 nLen = pBox->GetTabLines().Count(); in lcl_MergeGCLine() 409 for( sal_uInt16 nLns = 0; nLns < nLen; ++nLns ) in lcl_MergeGCLine() 420 while( nLen-- ) in lcl_MergeGCLine() 424 nLen = pLn->GetTabBoxes().Count(); in lcl_MergeGCLine() 428 for( nLen = 0; nLen < pLn->GetTabBoxes().Count(); ++nLen ) in lcl_MergeGCLine() [all …]
|
/trunk/main/sdext/source/pdfimport/pdfparse/ |
H A D | pdfentries.cxx | 259 int nLen = m_aString.getLength(); in getFilteredString() local 260 OStringBuffer aBuf( nLen ); in getFilteredString() 266 while( pRun - pStr < nLen-1 ) in getFilteredString() 271 if( pRun - pStr < nLen ) in getFilteredString() 745 aZStr.avail_in = nLen; in unzipToBuffer() 1124 int nLen = rStr.getLength(); in pad_or_truncate_to_32() local 1125 if( nLen > 32 ) in pad_or_truncate_to_32() 1126 nLen = 32; in pad_or_truncate_to_32() 1130 while( nLen < 32 ) in pad_or_truncate_to_32() 1165 nLen = RTL_DIGEST_LENGTH_MD5; in password_to_key() [all …]
|
/trunk/main/sw/source/filter/ww8/dump/ |
H A D | ww8scan.cxx | 1559 sal_uInt16 nLen; in OpenPieceTable() local 1560 *pStr >> nLen; in OpenPieceTable() 1581 *pStr >> nLen; in OpenPieceTable() 1964 if (nLen) in SafeReadString() 1966 nWasRead = rStrm.Read( rStr.AllocBuffer( nLen ), nLen); in SafeReadString() 1996 if( 0 >= nLen ) in WW8ReadString() 2584 long nLen; in HasSprm() local 2597 long nLen; in HasSprm() local 3470 long nFc, nLen; in WW8PLCFx_FLD() local 3504 if( nLen ) in WW8PLCFx_FLD() [all …]
|
/trunk/main/vcl/source/helper/ |
H A D | strhelper.cxx | 122 int nLen = rLine.Len(); in GetCommandLineToken() local 123 if( ! nLen ) in GetCommandLineToken() 127 sal_Unicode* pBuffer = (sal_Unicode*)alloca( sizeof(sal_Unicode)*( nLen + 1 ) ); in GetCommandLineToken() 173 int nLen = rLine.Len(); in GetCommandLineToken() local 174 if( ! nLen ) in GetCommandLineToken() 178 char* pBuffer = (char*)alloca( nLen + 1 ); in GetCommandLineToken() 326 int nLen = rLine.Len(); in WhitespaceToSpace() local 327 if( ! nLen ) in WhitespaceToSpace() 383 int nLen = rLine.Len(); in WhitespaceToSpace() local 384 if( ! nLen ) in WhitespaceToSpace() [all …]
|
/trunk/main/vcl/source/window/ |
H A D | mnemonic.cxx | 112 xub_StrLen nLen = aKey.Len(); in RegisterMnemonic() local 113 while ( nIndex < nLen ) in RegisterMnemonic() 146 xub_StrLen nLen = aKey.Len(); in CreateMnemonic() local 237 while ( nIndex < nLen ); in CreateMnemonic() 240 while ( nIndex < nLen ); in CreateMnemonic() 270 while ( nIndex < nLen ); in CreateMnemonic() 384 xub_StrLen nLen = aStr.Len(); in EraseAllMnemonicChars() local 387 while ( i < nLen ) in EraseAllMnemonicChars() 392 if( i > 0 && (i+2) < nLen ) in EraseAllMnemonicChars() 400 nLen -= 4; in EraseAllMnemonicChars() [all …]
|
/trunk/main/svtools/source/svhtml/ |
H A D | htmlsupp.cxx | 144 xub_StrLen nDel = 0, nLen = rString.Len(); in RemoveSGMLComment() local 145 if( nLen >= 2 && in RemoveSGMLComment() 146 rString.Copy(nLen-2).CompareToAscii("//") == COMPARE_EQUAL ) in RemoveSGMLComment() 150 else if( nLen && '\'' == rString.GetChar(nLen-1) ) in RemoveSGMLComment() 154 if( nDel && nLen >= nDel+1 ) in RemoveSGMLComment() 156 c = rString.GetChar( nLen-(nDel+1) ); in RemoveSGMLComment() 160 if( '\n'==c && nLen >= nDel+1 && in RemoveSGMLComment() 161 '\r'==rString.GetChar( nLen-(nDel+1) ) ) in RemoveSGMLComment() 165 rString.Erase( nLen-nDel ); in RemoveSGMLComment()
|
/trunk/main/svtools/source/svrtf/ |
H A D | rtfout.cxx | 131 const sal_Int32 nLen = sConverted.getLength(); in Out_Char() local 136 if (*pUCMode != nLen) in Out_Char() 138 …rStream << "\\uc" << ByteString::CreateFromInt32(nLen).GetBuffer() << " "; // #i47831# add an addi… in Out_Char() 139 *pUCMode = nLen; in Out_Char() 145 for (sal_Int32 nI = 0; nI < nLen; ++nI) in Out_Char() 184 SvStream& RTFOutFuncs::Out_Hex( SvStream& rStream, sal_uLong nHex, sal_uInt8 nLen ) in Out_Hex() argument 188 DBG_ASSERT( nLen < sizeof(aNToABuf), "zu viele Stellen" ); in Out_Hex() 189 if( nLen >= sizeof(aNToABuf) ) in Out_Hex() 190 nLen = (sizeof(aNToABuf)-1); in Out_Hex() 194 for( sal_uInt8 n = 0; n < nLen; ++n ) in Out_Hex()
|
/trunk/main/sw/source/filter/ww8/ |
H A D | ww8par2.cxx | 1222 nLen --; in ReadDef() 1683 if (!nLen) in ReadNewShd() 3844 if (!nLen) in ImportSprms() 3856 nLen = nLen - nL1; in ImportSprms() 3866 if (!nLen) in ImportSprms() 3908 nLen = nLen - WW8SkipEven( pStStrm ); in ImportUPX() 3910 nLen = nLen - WW8SkipOdd( pStStrm ); in ImportUPX() 3939 nLen = nLen - cbUPX; in ImportUPX() 3951 nLen = nLen - WW8SkipEven( pStStrm ); in ImportGrupx() 3953 nLen = nLen - WW8SkipOdd( pStStrm ); in ImportGrupx() [all …]
|
/trunk/main/filter/source/msfilter/ |
H A D | mscodec.cxx | 72 sal_Size nLen = 0; in lclGetLen() local 73 while( (nLen < nBufferSize) && pnPassData[ nLen ] ) ++nLen; in lclGetLen() 74 return nLen; in lclGetLen() 79 sal_Size nLen = lclGetLen( pnPassData, nBufferSize ); in lclGetKey() local 80 if( !nLen ) return 0; in lclGetKey() 85 const sal_uInt8* pnChar = pnPassData + nLen - 1; in lclGetKey() 86 for( sal_Size nIndex = 0; nIndex < nLen; ++nIndex, --pnChar ) in lclGetKey() 104 sal_Size nLen = lclGetLen( pnPassData, nBufferSize ); in lclGetHash() local 106 sal_uInt16 nHash = static_cast< sal_uInt16 >( nLen ); in lclGetHash() 107 if( nLen ) in lclGetHash() [all …]
|
/trunk/main/tools/source/string/ |
H A D | strcvt.cxx | 63 nLen = 0; in ByteString() 68 if ( nLen > nMaxLen ) in ByteString() 69 nLen = static_cast< xub_StrLen >(nMaxLen); in ByteString() 74 rUniStr.mpData->maStr+nPos, nLen, in ByteString() 100 if ( nLen == STRING_LEN ) in ByteString() 101 nLen = ImplStringLen( pUniStr ); in ByteString() 105 pUniStr, nLen, in ByteString() 473 sal_Size nLen = 1; in ConvertToUnicode() local 474 return ConvertToUnicode( &c, &nLen, eTextEncoding ); in ConvertToUnicode() 481 sal_Size nLen; in ConvertFromUnicode() local [all …]
|
/trunk/main/sal/qa/OStringBuffer/ |
H A D | rtl_OStringBuffer.cxx | 1264 sal_Int32 nLen = strlen(pstr); in TEST_F() local 1267 nLen == 0) << "test empty string"; in TEST_F() 1298 sal_Int32 nLen = strlen(pstr); in TEST_F() local 1301 nLen == 0) << "test empty string"; in TEST_F() 11663 sal_Int32 nLen = aStrBuf.getLength(); in TEST_F() local 11676 sal_Int32 nLen = aStrBuf.getLength(); in TEST_F() local 11689 sal_Int32 nLen = aStrBuf.getLength(); in TEST_F() local 11702 sal_Int32 nLen = aStrBuf.getLength(); in TEST_F() local 11715 sal_Int32 nLen = aStrBuf.getLength(); in TEST_F() local 11728 sal_Int32 nLen = aStrBuf.getLength(); in TEST_F() local [all …]
|
/trunk/main/xmloff/source/transform/ |
H A D | TransformerBase.cxx | 1031 sal_Int32 nLen = rName.getLength(); in EncodeStyleName() local 1032 OUStringBuffer aBuffer( nLen ); in EncodeStyleName() 1151 OUStringBuffer aBuffer( nLen ); in DecodeStyleName() 1225 while( nPos < nLen && in NegPercent() 1239 while( nPos < nLen && in NegPercent() 1330 while( nPos < nLen ) in ConvertURIToOASIS() 1336 nPos = nLen; // leave loop in ConvertURIToOASIS() 1341 nPos = nLen; // leave loop in ConvertURIToOASIS() 1396 while( nPos < nLen ) in ConvertURIToOOo() 1402 nPos = nLen; // leave loop in ConvertURIToOOo() [all …]
|
/trunk/main/sal/qa/rtl_strings/ |
H A D | rtl_String_Utils.cxx | 283 sal_uInt32 nLen = AStringLen( pAStr ); in AStringIsValid() local 286 while ( ( nLen >= 0 ) && ( *pAStr ) ) in AStringIsValid() 301 if ( nLen > 0 ) in AStringIsValid() 303 nLen--; in AStringIsValid() 321 sal_uInt32 nLen = nStrLen; in AStringNIsValid() local 324 while ( ( nLen >= 0 ) && ( *pAStr ) ) in AStringNIsValid() 339 if ( nLen > 0 ) in AStringNIsValid() 341 nLen--; in AStringNIsValid() 504 sal_uInt32 nLen = nCount; in AStringToUStringCopy() local 508 && ( AStringNIsValid( pSrc, nLen ) ) in AStringToUStringCopy() [all …]
|