Lines Matching refs:i
174 for( unsigned int i = 0; i < nLen; i++ ) in getFilteredName() local
176 if( pStr[i] == '#' && i < nLen - 3 ) in getFilteredName()
179 i++; in getFilteredName()
180 if( pStr[i] >= '0' && pStr[i] <= '9' ) in getFilteredName()
181 rResult = sal_Char( pStr[i]-'0' ) << 4; in getFilteredName()
182 else if( pStr[i] >= 'a' && pStr[i] <= 'f' ) in getFilteredName()
183 rResult = sal_Char( pStr[i]-'a' + 10 ) << 4; in getFilteredName()
184 else if( pStr[i] >= 'A' && pStr[i] <= 'F' ) in getFilteredName()
185 rResult = sal_Char( pStr[i]-'A' + 10 ) << 4; in getFilteredName()
186 i++; in getFilteredName()
187 if( pStr[i] >= '0' && pStr[i] <= '9' ) in getFilteredName()
188 rResult |= sal_Char( pStr[i]-'0' ); in getFilteredName()
189 else if( pStr[i] >= 'a' && pStr[i] <= 'f' ) in getFilteredName()
190 rResult |= sal_Char( pStr[i]-'a' + 10 ); in getFilteredName()
191 else if( pStr[i] >= 'A' && pStr[i] <= 'F' ) in getFilteredName()
192 rResult |= sal_Char( pStr[i]-'A' + 10 ); in getFilteredName()
196 aFilter.append( pStr[i] ); in getFilteredName()
228 for( sal_Int32 i = 0; i < aFiltered.getLength(); i++ ) in emit() local
230 if( ! rWriteContext.write( pHexTab + ((sal_uInt32(pStr[i]) >> 4) & 0x0f), 1 ) ) in emit()
232 if( ! rWriteContext.write( pHexTab + (sal_uInt32(pStr[i]) & 0x0f), 1 ) ) in emit()
304 int i = 0; in getFilteredString() local
305 while( i++ < 3 && *pRun >= '0' && *pRun <= '7' ) in getFilteredString()
386 int i; in emit() local
389 for ( i = 0; ( i < nPrecision ) && nFrac; i++ ) in emit()
459 for( int i = 0; i < nEle; i++ ) in ~PDFContainer() local
460 delete m_aSubElements[i]; in ~PDFContainer()
466 for( int i = 0; i < nEle; i++ ) in emitSubElements() local
470 const PDFName* pName = dynamic_cast<PDFName*>(m_aSubElements[i]); in emitSubElements()
473 i++; in emitSubElements()
477 if( ! m_aSubElements[i]->emit( rWriteContext ) ) in emitSubElements()
486 for( int i = 0; i < nEle; i++ ) in cloneSubElements() local
487 rNewSubElements.push_back( m_aSubElements[i]->clone() ); in cloneSubElements()
493 for( unsigned int i = 0; i < nEle; i++ ) in findObject() local
495 PDFObject* pObject = dynamic_cast<PDFObject*>(m_aSubElements[i]); in findObject()
554 for( unsigned int i = 0; i < nSub; i++ ) in insertValue() local
555 if( m_aSubElements[i] == it->second ) in insertValue()
556 m_aSubElements[i] = pValue; in insertValue()
565 for( unsigned int i = 0; i < nEle; i++ ) in eraseValue() local
567 PDFName* pName = dynamic_cast<PDFName*>(m_aSubElements[i]); in eraseValue()
570 for( unsigned int j = i+1; j < nEle; j++ ) in eraseValue()
576 delete m_aSubElements[i]; in eraseValue()
579 m_aSubElements.erase( m_aSubElements.begin()+i ); in eraseValue()
595 for( unsigned int i = 0; i < nEle; i++ ) in buildMap() local
597 if( dynamic_cast<PDFComment*>(m_aSubElements[i]) == NULL ) in buildMap()
601 m_aMap[ pName->m_aName ] = m_aSubElements[i]; in buildMap()
604 else if( (pName = dynamic_cast<PDFName*>(m_aSubElements[i])) == NULL ) in buildMap()
605 return m_aSubElements[i]; in buildMap()
649 for( int i = 0; i < nEle && ! pNum; i++ ) in getDictLength() local
651 PDFObject* pObj = dynamic_cast<PDFObject*>(pContainer->m_aSubElements[i]); in getDictLength()
884 for( unsigned int i = 0; i < nEle && bRet; i++ ) in emit() local
886 if( pClone->m_aSubElements[i] != pClone->m_pStream ) in emit()
887 bRet = pClone->m_aSubElements[i]->emit( rWriteContext ); in emit()
922 for( unsigned int i = 0; i < nEle; i++ ) in clone() local
924 if( m_aSubElements[i] == m_pObject ) in clone()
925 pNewOb->m_pObject = pNewOb->m_aSubElements[i]; in clone()
926 else if( m_aSubElements[i] == m_pStream && pNewOb->m_pObject ) in clone()
928 pNewOb->m_pStream = dynamic_cast<PDFStream*>(pNewOb->m_aSubElements[i]); in clone()
981 for( int i = 0; i < nPad; i++ ) in emit() local
987 for( int i = 0; i < nPad; i++ ) in emit() local
1014 for( unsigned int i = 0; i < nEle; i++ ) in clone() local
1016 if( m_aSubElements[i] == m_pDict ) in clone()
1018 pNewTr->m_pDict = dynamic_cast<PDFDict*>(pNewTr->m_aSubElements[i]); in clone()
1091 sal_uInt32 i = m_pData->m_nKeyLength; in decrypt() local
1092 m_pData->m_aDecryptionKey[i++] = sal_uInt8(nObject&0xff); in decrypt()
1093 m_pData->m_aDecryptionKey[i++] = sal_uInt8((nObject>>8)&0xff); in decrypt()
1094 m_pData->m_aDecryptionKey[i++] = sal_uInt8((nObject>>16)&0xff); in decrypt()
1095 m_pData->m_aDecryptionKey[i++] = sal_uInt8(nGeneration&0xff); in decrypt()
1096 m_pData->m_aDecryptionKey[i++] = sal_uInt8((nGeneration>>8)&0xff); in decrypt()
1099 rtl_digest_updateMD5( m_pData->m_aDigest, m_pData->m_aDecryptionKey, i ); in decrypt()
1102 if( i > 16 ) in decrypt()
1103 i = 16; in decrypt()
1107 aSum, i, in decrypt()
1129 int i = 0; in pad_or_truncate_to_32() local
1131 pBuffer[nLen++] = nPadString[i++]; in pad_or_truncate_to_32()
1157 for( int i = 0; i < 50; i++ ) in password_to_key() local
1202 for( int i = 1; i <= 19; i++ ) // do it 19 times, start with 1 in check_user_password() local
1206 aTempKey[j] = static_cast<sal_uInt8>( aKey[j] ^ i ); in check_user_password()
1259 for( int i = 19; i >= 0; i-- ) in setupDecryptionData() local
1263 nTempKey[j] = sal_uInt8(aKey[j] ^ i); in setupDecryptionData()
1282 for( sal_uInt32 i = 0; i < m_pData->m_nKeyLength; i++ ) in getDecryptionKey() local
1286 aBuf.append( pHexTab[(m_pData->m_aDecryptionKey[i] >> 4) & 0x0f] ); in getDecryptionKey()
1287 aBuf.append( pHexTab[(m_pData->m_aDecryptionKey[i] & 0x0f)] ); in getDecryptionKey()
1318 for( int i = 0; i < m_pData->m_aDocID.getLength(); i++ ) in impl_getData() local
1319 … fprintf( stderr, "%.2x", (unsigned int)sal_uInt8(m_pData->m_aDocID.getStr()[i]) ); in impl_getData()
1382 for( int i = 0; i < aEnt.getLength(); i++ ) in impl_getData() local
1383 … fprintf( stderr, " %.2X", (unsigned int)sal_uInt8(aEnt.getStr()[i]) ); in impl_getData()
1401 for( int i = 0; i < aEnt.getLength(); i++ ) in impl_getData() local
1402 … fprintf( stderr, " %.2X", (unsigned int)sal_uInt8(aEnt.getStr()[i]) ); in impl_getData()