Lines Matching refs:ByteString
53 DECLARE_LIST( FileList, ByteString * )
61 ByteString sPrj;
62 ByteString sPrjRoot;
63 ByteString sActFileName;
64 ByteString sOutputFile;
65 ByteString sMergeSrc;
66 ByteString sTempFile;
67 ByteString sFile;
72 ByteString sStrBuffer;
101 ByteString sSwitch( argv[ i ] ); in GetOutputFile()
149 aInputFileList.Insert( new ByteString( argv[ i ]), LIST_APPEND ); in GetOutputFile()
154 sOutputFile = ByteString( argv[ i ]); // the dest. file in GetOutputFile()
158 sPrj = ByteString( argv[ i ]); in GetOutputFile()
162 sPrjRoot = ByteString( argv[ i ]); // path to project root in GetOutputFile()
166 sMergeSrc = ByteString( argv[ i ]); in GetOutputFile()
171 Export::sLanguages = ByteString( argv[ i ]); in GetOutputFile()
177 if( bUnmerge ) sMergeSrc = ByteString(); in GetOutputFile()
194 ByteString sOutput( pOutput ); in InitExport()
195 ByteString sFilename( pFilename ); in InitExport()
232 ByteString sFileName( *(aInputFileList.GetObject( 0 ))); in GetNextFile()
234 ByteString sOrigFile( sFileName ); in GetNextFile()
261 ByteString sFullEntry( aEntry.GetFull(), RTL_TEXTENCODING_ASCII_US ); in GetNextFile()
264 ByteString sPrjEntry( aEntry.GetFull(), RTL_TEXTENCODING_ASCII_US ); in GetNextFile()
298 pExport->pParseQueue->Push( QueueEntry( nTyp , ByteString( pTokenText ) ) ); in WorkOnTokenSet()
336 ByteString a("*pStringList"); in Dump()
337 ByteString b("*pUIEntries"); in Dump()
338 ByteString c("*pFilterList"); in Dump()
339 ByteString d("*pItemList"); in Dump()
340 ByteString e("*pPairedList"); in Dump()
341 ByteString f("sText"); in Dump()
353 void ResData::addFallbackData( ByteString& sId_in , const ByteString& sText_in ){ in addFallbackData()
357 bool ResData::getFallbackData( ByteString& sId_in , ByteString& sText_inout ){ in getFallbackData()
363 void ResData::addMergedLanguage( ByteString& sLang ){ in addMergedLanguage()
364 aMergedLanguages[ sLang ]=ByteString("1"); in addMergedLanguage()
366 bool ResData::isMerged( ByteString& sLang ){ in isMerged()
371 sal_Bool ResData::SetId( const ByteString &rId, sal_uInt16 nLevel ) in SetId()
380 ByteString sError( "ResId after child definition" ); in SetId()
387 ByteString sWarning( "LocalId > 255 chars, truncating..." ); in SetId()
406 Export::Export( const ByteString &rOutput, sal_Bool bWrite, in Export()
407 const ByteString &rPrj, const ByteString &rPrjRoot , const ByteString& rFile ) in Export()
450 Export::Export( const ByteString &rOutput, sal_Bool bWrite, in Export()
451 const ByteString &rPrj, const ByteString &rPrjRoot, in Export()
452 const ByteString &rMergeSource , const ByteString& rFile ) in Export()
500 nListLang = ByteString( String::CreateFromAscii(""),RTL_TEXTENCODING_ASCII_US ); in Init()
536 ByteString sToken( pToken ); in Execute()
537 ByteString sOrig( sToken ); in Execute()
545 ByteString sTestToken( pToken ); in Execute()
617 ByteString sTmpLine( sToken ); in Execute()
689 ByteString sBackup( sToken ); in Execute()
695 ByteString sT = sToken.GetToken( 0, ' ' ); in Execute()
697 ByteString sId( sToken.Copy( pResData->sResTyp.Len() + 1 )); in Execute()
698 ByteString sCondition; in Execute()
710 ByteString sEmpty( "" ); in Execute()
748 ByteString sLowerTyp; in Execute()
792 ByteString sKey = sToken.GetToken( 0, '=' ); in Execute()
795 ByteString sValue = sToken.GetToken( 1, '=' ); in Execute()
798 ByteString sId( sValue.EraseAllChars( '\t' )); in Execute()
850 ByteString sTmpToken( sToken); in Execute()
859 ByteString sKey = sTmpToken.Copy( 0 , nPos ); in Execute()
862 ByteString sValue = sToken.GetToken( 1, '=' ); in Execute()
913 ByteString sKey = sToken.GetToken( 0, '[' ); in Execute()
927 ByteString sLang=sToken.GetToken( 1, '[' ).GetToken( 0, ']' ); in Execute()
946 ByteString sEntry( sToken.GetToken( 1, '\"' )); in Execute()
967 ByteString sKey = sToken.GetToken( 0, '=' ).GetToken( 0, '[' ); in Execute()
970 ByteString sText( GetText( sToken, nToken )); in Execute()
973 ByteString sLang; in Execute()
978 ByteString nLangIndex = sLang; in Execute()
979 ByteString sOrigKey = sKey; in Execute()
1004 ByteString sError( "Language " ); in Execute()
1018 ByteString sError( "\"HelpText\" found in source\n" ); in Execute()
1029 ByteString sError( "Language " ); in Execute()
1048 ByteString sError( "Language " ); in Execute()
1067 ByteString sError( "Language " ); in Execute()
1087 ByteString sKey = sToken.GetToken( 0, '=' ); in Execute()
1090 ByteString sMapping = sToken.GetToken( 1, '=' ); in Execute()
1111 ByteString sCondition = sToken.GetToken( 0, ' ' ); in Execute()
1159 ByteString sCharset = sToken.GetToken( 1, ' ' ); in Execute()
1160 ByteString sSet = sToken.GetToken( 2, ' ' ); in Execute()
1217 void Export::CutComment( ByteString &rText ) in CutComment()
1221 ByteString sWork( rText ); in CutComment()
1242 void Export::UnmergeUTF8( ByteString& sOrig ){ in UnmergeUTF8()
1246 ByteString sPart = sOrig.Copy(nPos1+1 , nPos2-1); in UnmergeUTF8()
1247 ByteString sPartUTF8 = sPart; in UnmergeUTF8()
1302 ByteString sGID = pResData->sGId; in WriteData()
1303 ByteString sLID; in WriteData()
1309 ByteString sXText; in WriteData()
1310 ByteString sXHText; in WriteData()
1311 ByteString sXQHText; in WriteData()
1312 ByteString sXTitle; in WriteData()
1314 ByteString sTimeStamp( Export::GetTimeStamp()); in WriteData()
1315 ByteString sCur; in WriteData()
1376 ByteString sOutput( sProject ); sOutput += "\t"; in WriteData()
1385 sOutput += ByteString::CreateFromInt64( pResData->nWidth ); sOutput += "\t"; in WriteData()
1409 ByteString sList( "stringlist" ); in WriteData()
1415 ByteString sList( "filterlist" ); in WriteData()
1421 ByteString sList( "itemlist" ); in WriteData()
1427 ByteString sList( "pairedlist" ); in WriteData()
1433 ByteString sList( "uientries" ); in WriteData()
1440 ByteString Export::GetPairedListID( const ByteString& sText ){ in GetPairedListID()
1442 ByteString sIdent = sText.GetToken( 1, ';' ); in GetPairedListID()
1449 ByteString Export::GetPairedListString( const ByteString& sText ){ in GetPairedListString()
1451 ByteString sString = sText.GetToken( 0, ';' ); in GetPairedListString()
1454 ByteString s1 = sString.Copy( sString.Search( '\"' )+1 ); in GetPairedListString()
1460 ByteString Export::StripList( const ByteString& sText ){ in StripList()
1461 ByteString s1 = sText.Copy( sText.Search( '\"' ) + 1 ); in StripList()
1467 const ByteString &rTyp, sal_Bool bCreateNew ) in WriteExportList()
1470 ByteString sGID = pResData->sGId; in WriteExportList()
1479 ByteString sTimeStamp( Export::GetTimeStamp()); in WriteExportList()
1480 ByteString sCur; in WriteExportList()
1487 ByteString sLID( ByteString::CreateFromInt64( i + 1 )); in WriteExportList()
1498 ByteString sText((*pEntry)[ SOURCE_LANGUAGE ] ); in WriteExportList()
1519 ByteString sOutput( sProject ); sOutput += "\t"; in WriteExportList()
1548 ByteString Export::FullId() in FullId()
1551 ByteString sFull; in FullId()
1555 ByteString sToAdd = aResStack.GetObject( i )->sId; in FullId()
1563 ByteString sError( "GroupId > 255 chars" ); in FullId()
1573 void Export::InsertListEntry( const ByteString &rText, const ByteString &rLine ) in InsertListEntry()
1624 (*pNew)[ LIST_REFID ] = ByteString::CreateFromInt32( REFID_NONE ); in InsertListEntry()
1639 const ByteString sPlist("pairedlist"); in InsertListEntry()
1640 …ByteString sKey = MergeDataFile::CreateKey( sPlist , pResData->sId , GetPairedListID( rLine ) , sF… in InsertListEntry()
1645 const ByteString sPlist("list"); in InsertListEntry()
1646 ByteString a( pResData->sGId ); in InsertListEntry()
1650 ByteString b( ByteString::CreateFromInt64( x ) ); in InsertListEntry()
1651 ByteString sKey = MergeDataFile::CreateKey( sPlist , a , b , sFilename ); in InsertListEntry()
1673 void Export::CleanValue( ByteString &rValue ) in CleanValue()
1698 ByteString Export::GetText( const ByteString &rSource, int nToken ) in GetText()
1704 ByteString sReturn; in GetText()
1708 ByteString sTmp( rSource.Copy( rSource.Search( "=" ))); in GetText()
1730 ByteString sToken = sTmp.GetToken( i, '\"' ); in GetText()
1773 void Export::WriteToMerged( const ByteString &rText , bool bSDFContent ) in WriteToMerged()
1776 static ByteString SLASH ('\\'); in WriteToMerged()
1777 static ByteString RETURN ('\n'); in WriteToMerged()
1786 ByteString sText( rText ); in WriteToMerged()
1821 aOutput.Write( ByteString( sText.GetChar( i )).GetBuffer(), 1 ); in WriteToMerged()
1825 aOutput.WriteLine( ByteString()); in WriteToMerged()
1833 void Export::ConvertMergeContent( ByteString &rText ) in ConvertMergeContent()
1837 ByteString sClose( rText.Copy( rText.Len() - 2 )); in ConvertMergeContent()
1839 ByteString sNew; in ConvertMergeContent()
1841 ByteString sChar( rText.GetChar( i )); in ConvertMergeContent()
1844 ByteString sNext( rText.GetChar( i + 1 )); in ConvertMergeContent()
1880 ByteString sTmp( rText ); in ConvertMergeContent()
1889 sal_Bool Export::PrepareTextToMerge( ByteString &rText, sal_uInt16 nTyp, in PrepareTextToMerge()
1890 ByteString &nLangIndex, ResData *pResData ) in PrepareTextToMerge()
1896 ByteString sOldId = pResData->sId; in PrepareTextToMerge()
1897 ByteString sOldGId = pResData->sGId; in PrepareTextToMerge()
1898 ByteString sOldTyp = pResData->sResTyp; in PrepareTextToMerge()
1900 ByteString sOrigText( rText ); in PrepareTextToMerge()
1975 ByteString sTmp = sLastListLine; in PrepareTextToMerge()
1982 else pResData->sId = ByteString::CreateFromInt32( nListIndex ); in PrepareTextToMerge()
2048 ByteString sTmp = Export::sLanguages; in PrepareTextToMerge()
2072 ByteString sContent; in PrepareTextToMerge()
2085 ByteString sPostFix( rText.Copy( ++nEnd )); in PrepareTextToMerge()
2113 ByteString sTmp = Export::sLanguages; in MergeRest()
2128 ByteString sCur; in MergeRest()
2129 ByteString sTmp = Export::sLanguages; in MergeRest()
2134 ByteString sText; in MergeRest()
2137 ByteString sOutput; in MergeRest()
2174 ByteString sOutput( ";" ); in MergeRest()
2182 ByteString sCur; in MergeRest()
2187 ByteString sText; in MergeRest()
2190 ByteString sOutput; in MergeRest()
2221 ByteString sOutput( ";" ); in MergeRest()
2229 ByteString sCur; in MergeRest()
2234 ByteString sText; in MergeRest()
2237 ByteString sOutput; in MergeRest()
2268 ByteString sOutput( ";" ); in MergeRest()
2279 ByteString sOldId = pResData->sId; in MergeRest()
2280 ByteString sOldGId = pResData->sGId; in MergeRest()
2281 ByteString sOldTyp = pResData->sResTyp; in MergeRest()
2285 ByteString sSpace; in MergeRest()
2297 ByteString sCur; in MergeRest()
2308 pResData->sId = ByteString("1"); in MergeRest()
2318 ByteString sText; in MergeRest()
2328 const ByteString sPlist("pairedlist"); in MergeRest()
2329 … ByteString sKey = MergeDataFile::CreateKey( sPlist , pResData->sGId , pResData->sId , sFilename ); in MergeRest()
2333 const ByteString sPlist("list"); in MergeRest()
2334 … ByteString sKey = MergeDataFile::CreateKey( sPlist , pResData->sGId , pResData->sId , sFilename ); in MergeRest()
2341 ByteString sHead; in MergeRest()
2368 ByteString sLine; in MergeRest()
2388 ByteString sPostFix; in MergeRest()
2391 sPostFix = ByteString( sLine.Copy( ++nEnd )); in MergeRest()
2407 ByteString sText1( "\t" ); in MergeRest()
2427 pResData->sId = ByteString::CreateFromInt32( ++nIdx ); in MergeRest()
2438 ByteString sFooter( sSpace.Copy( 1 )); in MergeRest()
2472 ByteString sLine; in MergeRest()
2490 ByteString sText( "\t" ); in MergeRest()
2510 ByteString Export::MergePairedList( ByteString& sLine , ByteString& sText ){ in MergePairedList()
2512 ByteString sPre = sLine.Copy( 0 , sLine.Search('\"') ); in MergePairedList()
2513 ByteString sPost = sLine.Copy( sLine.SearchBackward('\"') + 1 , sLine.Len() ); in MergePairedList()