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()
1097 ByteString sKey = sToken.GetToken( 0, '=' ); in Execute()
1100 ByteString sMapping = sToken.GetToken( 1, '=' ); in Execute()
1121 ByteString sCondition = sToken.GetToken( 0, ' ' ); in Execute()
1169 ByteString sCharset = sToken.GetToken( 1, ' ' ); in Execute()
1170 ByteString sSet = sToken.GetToken( 2, ' ' ); in Execute()
1227 void Export::CutComment( ByteString &rText ) in CutComment()
1231 ByteString sWork( rText ); in CutComment()
1252 void Export::UnmergeUTF8( ByteString& sOrig ){ in UnmergeUTF8()
1256 ByteString sPart = sOrig.Copy(nPos1+1 , nPos2-1); in UnmergeUTF8()
1257 ByteString sPartUTF8 = sPart; in UnmergeUTF8()
1312 ByteString sGID = pResData->sGId; in WriteData()
1313 ByteString sLID; in WriteData()
1319 ByteString sXText; in WriteData()
1320 ByteString sXHText; in WriteData()
1321 ByteString sXQHText; in WriteData()
1322 ByteString sXTitle; in WriteData()
1324 ByteString sTimeStamp( Export::GetTimeStamp()); in WriteData()
1325 ByteString sCur; in WriteData()
1386 ByteString sOutput( sProject ); sOutput += "\t"; in WriteData()
1395 sOutput += ByteString::CreateFromInt64( pResData->nWidth ); sOutput += "\t"; in WriteData()
1419 ByteString sList( "stringlist" ); in WriteData()
1425 ByteString sList( "filterlist" ); in WriteData()
1431 ByteString sList( "itemlist" ); in WriteData()
1437 ByteString sList( "pairedlist" ); in WriteData()
1443 ByteString sList( "uientries" ); in WriteData()
1450 ByteString Export::GetPairedListID( const ByteString& sText ){ in GetPairedListID()
1452 ByteString sIdent = sText.GetToken( 1, ';' ); in GetPairedListID()
1459 ByteString Export::GetPairedListString( const ByteString& sText ){ in GetPairedListString()
1461 ByteString sString = sText.GetToken( 0, ';' ); in GetPairedListString()
1464 ByteString s1 = sString.Copy( sString.Search( '\"' )+1 ); in GetPairedListString()
1470 ByteString Export::StripList( const ByteString& sText ){ in StripList()
1471 ByteString s1 = sText.Copy( sText.Search( '\"' ) + 1 ); in StripList()
1477 const ByteString &rTyp, sal_Bool bCreateNew ) in WriteExportList()
1480 ByteString sGID = pResData->sGId; in WriteExportList()
1489 ByteString sTimeStamp( Export::GetTimeStamp()); in WriteExportList()
1490 ByteString sCur; in WriteExportList()
1497 ByteString sLID( ByteString::CreateFromInt64( i + 1 )); in WriteExportList()
1508 ByteString sText((*pEntry)[ SOURCE_LANGUAGE ] ); in WriteExportList()
1529 ByteString sOutput( sProject ); sOutput += "\t"; in WriteExportList()
1558 ByteString Export::FullId() in FullId()
1561 ByteString sFull; in FullId()
1565 ByteString sToAdd = aResStack.GetObject( i )->sId; in FullId()
1573 ByteString sError( "GroupId > 255 chars" ); in FullId()
1583 void Export::InsertListEntry( const ByteString &rText, const ByteString &rLine ) in InsertListEntry()
1634 (*pNew)[ LIST_REFID ] = ByteString::CreateFromInt32( REFID_NONE ); in InsertListEntry()
1649 const ByteString sPlist("pairedlist"); in InsertListEntry()
1650 …ByteString sKey = MergeDataFile::CreateKey( sPlist , pResData->sId , GetPairedListID( rLine ) , sF… in InsertListEntry()
1655 const ByteString sPlist("list"); in InsertListEntry()
1656 ByteString a( pResData->sGId ); in InsertListEntry()
1660 ByteString b( ByteString::CreateFromInt64( x ) ); in InsertListEntry()
1661 ByteString sKey = MergeDataFile::CreateKey( sPlist , a , b , sFilename ); in InsertListEntry()
1683 void Export::CleanValue( ByteString &rValue ) in CleanValue()
1708 ByteString Export::GetText( const ByteString &rSource, int nToken ) in GetText()
1714 ByteString sReturn; in GetText()
1718 ByteString sTmp( rSource.Copy( rSource.Search( "=" ))); in GetText()
1740 ByteString sToken = sTmp.GetToken( i, '\"' ); in GetText()
1783 void Export::WriteToMerged( const ByteString &rText , bool bSDFContent ) in WriteToMerged()
1786 static ByteString SLASH ('\\'); in WriteToMerged()
1787 static ByteString RETURN ('\n'); in WriteToMerged()
1796 ByteString sText( rText ); in WriteToMerged()
1831 aOutput.Write( ByteString( sText.GetChar( i )).GetBuffer(), 1 ); in WriteToMerged()
1835 aOutput.WriteLine( ByteString()); in WriteToMerged()
1843 void Export::ConvertMergeContent( ByteString &rText ) in ConvertMergeContent()
1847 ByteString sClose( rText.Copy( rText.Len() - 2 )); in ConvertMergeContent()
1849 ByteString sNew; in ConvertMergeContent()
1851 ByteString sChar( rText.GetChar( i )); in ConvertMergeContent()
1854 ByteString sNext( rText.GetChar( i + 1 )); in ConvertMergeContent()
1890 ByteString sTmp( rText ); in ConvertMergeContent()
1899 sal_Bool Export::PrepareTextToMerge( ByteString &rText, sal_uInt16 nTyp, in PrepareTextToMerge()
1900 ByteString &nLangIndex, ResData *pResData ) in PrepareTextToMerge()
1906 ByteString sOldId = pResData->sId; in PrepareTextToMerge()
1907 ByteString sOldGId = pResData->sGId; in PrepareTextToMerge()
1908 ByteString sOldTyp = pResData->sResTyp; in PrepareTextToMerge()
1910 ByteString sOrigText( rText ); in PrepareTextToMerge()
1985 ByteString sTmp = sLastListLine; in PrepareTextToMerge()
1992 else pResData->sId = ByteString::CreateFromInt32( nListIndex ); in PrepareTextToMerge()
2058 ByteString sTmp = Export::sLanguages; in PrepareTextToMerge()
2082 ByteString sContent; in PrepareTextToMerge()
2095 ByteString sPostFix( rText.Copy( ++nEnd )); in PrepareTextToMerge()
2123 ByteString sTmp = Export::sLanguages; in MergeRest()
2138 ByteString sCur; in MergeRest()
2139 ByteString sTmp = Export::sLanguages; in MergeRest()
2144 ByteString sText; in MergeRest()
2147 ByteString sOutput; in MergeRest()
2184 ByteString sOutput( ";" ); in MergeRest()
2192 ByteString sCur; in MergeRest()
2197 ByteString sText; in MergeRest()
2200 ByteString sOutput; in MergeRest()
2231 ByteString sOutput( ";" ); in MergeRest()
2239 ByteString sCur; in MergeRest()
2244 ByteString sText; in MergeRest()
2247 ByteString sOutput; in MergeRest()
2278 ByteString sOutput( ";" ); in MergeRest()
2289 ByteString sOldId = pResData->sId; in MergeRest()
2290 ByteString sOldGId = pResData->sGId; in MergeRest()
2291 ByteString sOldTyp = pResData->sResTyp; in MergeRest()
2295 ByteString sSpace; in MergeRest()
2307 ByteString sCur; in MergeRest()
2318 pResData->sId = ByteString("1"); in MergeRest()
2328 ByteString sText; in MergeRest()
2338 const ByteString sPlist("pairedlist"); in MergeRest()
2339 … ByteString sKey = MergeDataFile::CreateKey( sPlist , pResData->sGId , pResData->sId , sFilename ); in MergeRest()
2343 const ByteString sPlist("list"); in MergeRest()
2344 … ByteString sKey = MergeDataFile::CreateKey( sPlist , pResData->sGId , pResData->sId , sFilename ); in MergeRest()
2351 ByteString sHead; in MergeRest()
2378 ByteString sLine; in MergeRest()
2398 ByteString sPostFix; in MergeRest()
2401 sPostFix = ByteString( sLine.Copy( ++nEnd )); in MergeRest()
2417 ByteString sText1( "\t" ); in MergeRest()
2437 pResData->sId = ByteString::CreateFromInt32( ++nIdx ); in MergeRest()
2448 ByteString sFooter( sSpace.Copy( 1 )); in MergeRest()
2482 ByteString sLine; in MergeRest()
2500 ByteString sText( "\t" ); in MergeRest()
2520 ByteString Export::MergePairedList( ByteString& sLine , ByteString& sText ){ in MergePairedList()
2522 ByteString sPre = sLine.Copy( 0 , sLine.Search('\"') ); in MergePairedList()
2523 ByteString sPost = sLine.Copy( sLine.SearchBackward('\"') + 1 , sLine.Len() ); in MergePairedList()