Lines Matching refs:ByteString

130 	ByteString sLanguageRestriction;
132 ByteString sOutputFile;
136 const ByteString GetProjectName( sal_Bool bAbs = sal_False );
137 const ByteString GetProjectRootRel();
140 sal_Bool CheckNegativeList( const ByteString &rFileName );
141 sal_Bool CheckPositiveList( const ByteString &rFileName );
144 const ByteString &rFileName,
145 const ByteString &rExecutable,
146 const ByteString &rParameter
150 const ByteString &rDirectory,
151 const ByteString &rExtension,
152 const ByteString &rExecutable,
153 const ByteString &rParameter,
154 const ByteString &rCollectMode
156 void WorkOnDirectory( const ByteString &rDirectory );
159 const ByteString &rPrj,
160 const ByteString &rFile,
161 const ByteString &rSDFFile
165 …SourceTreeLocalizer( const ByteString &rRoot, const ByteString &rVersion , bool bLocal , bool skip…
168 ByteString getSourceLanguages( ByteString sLanguageRestriction , ByteString sCommand );
170 void SetLanguageRestriction( const ByteString& rRestrictions ) in SetLanguageRestriction()
173 sal_Bool Extract( const ByteString &rDestinationFile );
174 sal_Bool Merge( const ByteString &rSourceFile , const ByteString &rOutput );
181 const ByteString &rRoot, const ByteString &rVersion, bool bLocal_in , bool skip_links ) in SourceTreeLocalizer()
197 const ByteString SourceTreeLocalizer::GetProjectName( sal_Bool bAbs ) in GetProjectName()
210 return ByteString( aCur.GetFull(), RTL_TEXTENCODING_ASCII_US ); in GetProjectName()
212 return ByteString( aCur.GetName(), RTL_TEXTENCODING_ASCII_US ); in GetProjectName()
225 const ByteString SourceTreeLocalizer::GetProjectRootRel() in GetProjectRootRel()
228 ByteString sProjectRoot( GetProjectName( sal_True )); in GetProjectRootRel()
231 ByteString sCur( aCur.GetFull(), RTL_TEXTENCODING_ASCII_US ); in GetProjectRootRel()
236 ByteString sDelimiter( in GetProjectRootRel()
243 ByteString sProjectRootRel; in GetProjectRootRel()
255 bool skipProject( ByteString sPrj ) in skipProject()
257 static const ByteString READLICENSE( "readlicense" ); in skipProject()
263 const ByteString &rFileName, const ByteString &rExecutable, in WorkOnFile()
264 const ByteString &rParameter ) in WorkOnFile()
269 ByteString sFileName( aEntry.GetName(), RTL_TEXTENCODING_ASCII_US ); in WorkOnFile()
276 ByteString sPrj( GetProjectName()); in WorkOnFile()
279 ByteString sRoot( GetProjectRootRel()); in WorkOnFile()
282 ByteString sTempFile( aTemp.GetFull(), RTL_TEXTENCODING_ASCII_US ); in WorkOnFile()
284 ByteString sDel; in WorkOnFile()
286 sDel=ByteString("\\"); in WorkOnFile()
288 sDel=ByteString("/"); in WorkOnFile()
290 ByteString sPath1( Export::GetEnv("SOLARVER") ); in WorkOnFile()
291 ByteString sPath2( Export::GetEnv("INPATH") ); in WorkOnFile()
292 ByteString sPath3( "bin" ); in WorkOnFile()
293 ByteString sPath4( Export::GetEnv("UPDMINOREXT") ); in WorkOnFile()
294 ByteString sExecutable( sPath1 ); in WorkOnFile()
304 ByteString sCommand( sExecutable ); in WorkOnFile()
328 ByteString sLine; in WorkOnFile()
344 ByteString SourceTreeLocalizer::getSourceLanguages( ByteString sLanguageRestriction_inout , ByteStr… in getSourceLanguages()
348 sLanguageRestriction_inout.Assign( ByteString("en-US") ); in getSourceLanguages()
351 sLanguageRestriction_inout.Assign( ByteString("en-US") ); in getSourceLanguages()
357 sal_Bool SourceTreeLocalizer::CheckNegativeList( const ByteString &rFileName ) in CheckNegativeList()
363 ByteString sDelimiter( in CheckNegativeList()
366 ByteString sFileName( rFileName ); in CheckNegativeList()
369 ByteString sNegative( NegativeList[ nIndex ] ); in CheckNegativeList()
386 sal_Bool SourceTreeLocalizer::CheckPositiveList( const ByteString &rFileName ) in CheckPositiveList()
392 ByteString sDelimiter( in CheckPositiveList()
395 ByteString sFileName( rFileName ); in CheckPositiveList()
398 ByteString sNegative( PositiveList[ nIndex ] ); in CheckPositiveList()
416 const ByteString &rDirectory, const ByteString &rExtension, in WorkOnFileType()
417 const ByteString &rExecutable, const ByteString &rParameter, in WorkOnFileType()
418 const ByteString &rCollectMode in WorkOnFileType()
432 ByteString sFile( aFile.GetFull(), RTL_TEXTENCODING_ASCII_US ); in WorkOnFileType()
447 void SourceTreeLocalizer::WorkOnDirectory( const ByteString &rDirectory ) in WorkOnDirectory()
452 ByteString sExtension( ExeTable[ nIndex ][ 0 ] ); in WorkOnDirectory()
453 ByteString sExecutable( ExeTable[ nIndex ][ 1 ] ); in WorkOnDirectory()
454 ByteString sParameter( ExeTable[ nIndex ][ 2 ] ); in WorkOnDirectory()
455 ByteString sCollectMode( ExeTable[ nIndex ][ 3 ] ); in WorkOnDirectory()
477ByteString rDirectory( rtl::OUStringToOString( aDirectory , RTL_TEXTENCODING_UTF8 , aDirectory.get… in OnExecuteDirectory()
485 sal_Bool SourceTreeLocalizer::Extract( const ByteString &rDestinationFile ) in Extract()
509 const ByteString &rPrj, in MergeSingleFile()
510 const ByteString &rFile, in MergeSingleFile()
511 const ByteString &rSDFFile in MergeSingleFile()
519 ByteString sRoot( Export::GetEnv( "SRC_ROOT" )); in MergeSingleFile()
523 ByteString sDelimiter( in MergeSingleFile()
526 ByteString sCur( rFile ); in MergeSingleFile()
531 ByteString sFile( aEntry.GetFull(), RTL_TEXTENCODING_ASCII_US ); in MergeSingleFile()
533 ByteString sBCur( aEntry.GetFull(), RTL_TEXTENCODING_ASCII_US ); in MergeSingleFile()
536 ByteString sExtension( aEntry.GetExtension(), RTL_TEXTENCODING_ASCII_US ); in MergeSingleFile()
537 ByteString sCandidate( ExeTable[ nIndex ][ 0 ] ); in MergeSingleFile()
552 …fprintf(stderr,"WARNING: %s not found\n", ByteString(aEntry.GetFull(),RTL_TEXTENCODING_ASCII_US).G… in MergeSingleFile()
553 …fprintf(stderr,"but use %s instead \n" , ByteString(current.GetFull(), RTL_TEXTENCODING_ASCII_US)… in MergeSingleFile()
563 ByteString sOutput; in MergeSingleFile()
565 sOutput = ByteString ( aOut.GetFull(), RTL_TEXTENCODING_ASCII_US ); in MergeSingleFile()
568 ByteString sCommand( ExeTable[ nIndex ][ 1 ] ); in MergeSingleFile()
570 sCommand += ByteString( aEntry.GetName(), RTL_TEXTENCODING_ASCII_US ); in MergeSingleFile()
576 sCommand += ByteString( ExeTable[ nIndex ][ 2 ] ); in MergeSingleFile()
602 ByteString test(myStr2,RTL_TEXTENCODING_ASCII_US); in MergeSingleFile()
605 ByteString test2(myStr2,RTL_TEXTENCODING_ASCII_US); in MergeSingleFile()
611 ByteString sLine; in MergeSingleFile()
623 DirEntry myTempFile(ByteString(myStr2,RTL_TEXTENCODING_ASCII_US)); // xxx_tmp -> in MergeSingleFile()
624 DirEntry myFile(ByteString(aEntry.GetFull(),RTL_TEXTENCODING_ASCII_US));// xxx in MergeSingleFile()
626 DirEntry oldFile(ByteString(aEntry.GetFull(),RTL_TEXTENCODING_ASCII_US)); in MergeSingleFile()
630 …fprintf( stderr, "ERROR: Can't rename file %s\n",ByteString(myStr2,RTL_TEXTENCODING_ASCII_US).GetB… in MergeSingleFile()
634 …fprintf( stderr, "ERROR: Can't remove file %s\n",ByteString(aEntry.GetFull(),RTL_TEXTENCODING_ASCI… in MergeSingleFile()
652 ByteString sFileName; in ExecuteMerge()
653 ByteString sCurFile; in ExecuteMerge()
654 ByteString sLine; in ExecuteMerge()
655 ByteString sFileKey; in ExecuteMerge()
659 ByteString sOutputFileName = sOutputFile; in ExecuteMerge()
660 ByteString sInpath("."); in ExecuteMerge()
662 ByteString sBlank(""); in ExecuteMerge()
667 ByteString sBDel( sDel.GetBuffer() , sDel.Len() , RTL_TEXTENCODING_UTF8 ); in ExecuteMerge()
700 ByteString sPrj( sFileKey.GetToken( 0, '#' )); in ExecuteMerge()
701 ByteString sFile( sFileKey.GetToken( 1, '#' )); in ExecuteMerge()
702 ByteString sSDFFile( aFile.GetFileName(), RTL_TEXTENCODING_ASCII_US ); in ExecuteMerge()
712 ByteString sTmp = sFile.Copy( nPos+1 , sFile.Len()-nPos-1 ); in ExecuteMerge()
741 sal_Bool SourceTreeLocalizer::Merge( const ByteString &rSourceFile , const ByteString &rOutput ) in Merge()
806 sal_Bool CheckLanguages( ByteString &rLanguages ) in CheckLanguages()
809 ByteString sTmp( rLanguages ); in CheckLanguages()
829 ByteString sLanguages; in main()
830 ByteString sFileName; in main()
831 ByteString sOutput; in main()
836 ByteString sSwitch( argv[ i ] ); in main()
851 else if ( ByteString( argv[ i ]).ToUpperAscii().Equals( "-O" ) ) in main()
860 sOutput = ByteString( argv[ i ] ); in main()
866 sLanguages = ByteString( argv[ i ] ); in main()
872 sFileName = ByteString( argv[ i ] ); in main()
885 ByteString sSolarVer( Export::GetEnv( "WORK_STAMP" )); in main()
886 ByteString sVersion( Export::GetEnv( "WORK_STAMP" )); in main()
904 ByteString sFileABS( aEntry.GetFull(), gsl_getSystemTextEncoding()); in main()
933 …SourceTreeLocalizer aIter( ByteString( curRepository.c_str() ) , sVersion , (sOutput.Len() > 0) , … in main()
941 ByteString sFileNameWithExt( sFileName ); in main()
942 sFileNameWithExt += ByteString( "." ); in main()
943 sFileNameWithExt += ByteString( (*iter).c_str() ); in main()
954 …SourceTreeLocalizer aIter( ByteString( pwd.c_str() ) , sVersion , (sOutput.Len() > 0) , bSkipLinks… in main()