Lines Matching refs:ByteString
49 void HelpParser::FillInFallbacks( LangHashMap& rElem_out, ByteString sLangIdx_in ){ in FillInFallbacks()
51 static const ByteString ENGLISH_LANGUAGECODE( "en-US" ); in FillInFallbacks()
52 static const ByteString GERMAN_LANGUAGECODE ( "de" ); in FillInFallbacks()
53 ByteString sCur; in FillInFallbacks()
58 ByteString sFallback( sCur ); in FillInFallbacks()
97 void HelpParser::Dump(LangHashMap* rElem_in,const ByteString sKey_in) { in Dump()
99 ByteString x; in Dump()
110 HelpParser::HelpParser( const ByteString &rHelpFile, bool rUTF8 , bool rHasInputList ) in HelpParser()
119 const ByteString &rSDFFile_in, const ByteString &rPrj_in,const ByteString &rRoot_in, in CreateSDF()
120 const ByteString &sHelpFile, XMLFile *pXmlFile, const ByteString &rGsi1){ in CreateSDF()
140 … Export::RemoveUTF8ByteOrderMarkerFromFile( ByteString( sTempFile , RTL_TEXTENCODING_ASCII_US ) ); in CreateSDF()
151 ByteString fullFilePath = rPrj_in; in CreateSDF()
162 printf("%s\n",ByteString(aParser.GetError().sMessage,RTL_TEXTENCODING_ASCII_US).GetBuffer()); in CreateSDF()
178 ByteString sActFileName = makeAbsolutePath( sHelpFile , rRoot_in ); in CreateSDF()
186 ByteString sTimeStamp( Export::GetTimeStamp() ); in CreateSDF()
195 std::vector<ByteString> aLanguages = Export::GetLanguages(); in CreateSDF()
197 std::vector<ByteString> order = file->getOrder(); in CreateSDF()
198 std::vector<ByteString>::iterator pos; in CreateSDF()
205 ByteString sCur; in CreateSDF()
231 ByteString sID = posm->first; // ID in CreateSDF()
234 ByteString sOldRef = pXMLElement->GetOldref(); // oldref in CreateSDF()
242 ByteString sOut( sBuffer.makeStringAndClear().getStr() , RTL_TEXTENCODING_UTF8 ); in CreateSDF()
262 ByteString HelpParser::makeAbsolutePath( const ByteString& sHelpFile , const ByteString& rRoot_in ) in makeAbsolutePath()
269 ByteString sPrjEntry( aEntry.GetFull(), gsl_getSystemTextEncoding()); in makeAbsolutePath()
270 ByteString sActFileName( in makeAbsolutePath()
276 bool HelpParser::Merge( const ByteString &rSDFFile, const ByteString &rDestinationFile , in Merge()
277 ByteString& sLanguage , MergeDataFile& aMergeDataFile ) in Merge()
293 … Export::RemoveUTF8ByteOrderMarkerFromFile( ByteString( sTempFile , RTL_TEXTENCODING_ASCII_US ) ); in Merge()
307 printf("%s\n",ByteString(aParser.GetError().sMessage, in Merge()
321 bool ByteStringEqual( const ByteString& rKey1, const ByteString& rKey2 ) { in ByteStringEqual()
324 bool ByteStringLess( const ByteString& rKey1, const ByteString& rKey2 ) { in ByteStringLess()
328 void HelpParser::parse_languages( std::vector<ByteString>& aLanguages , MergeDataFile& aMergeDataFi… in parse_languages()
329 std::vector<ByteString> aTmp; in parse_languages()
331 const ByteString DE ("de"); in parse_languages()
332 const ByteString ENUS ("en-US"); in parse_languages()
333 static const ByteString ALL( "ALL" ); in parse_languages()
345 std::vector<ByteString> aFL = Export::GetForcedLanguages(); in parse_languages()
351 …std::vector<ByteString>::iterator unique_iter = std::unique( aLanguages.begin() , aLanguages.end(… in parse_languages()
363 const ByteString &rSDFFile, const ByteString &rPathX , const ByteString &rPathY , bool bISO , in Merge()
364 const std::vector<ByteString>& aLanguages , MergeDataFile& aMergeDataFile , bool bCreateDir ) in Merge()
380 … Export::RemoveUTF8ByteOrderMarkerFromFile( ByteString( sTempFile , RTL_TEXTENCODING_ASCII_US ) ); in Merge()
399 printf("%s\n",ByteString(aParser.GetError().sMessage,RTL_TEXTENCODING_UTF8).GetBuffer()); in Merge()
406 ByteString sCur; in Merge()
410 ByteString sFilepath; in Merge()
432 bool HelpParser::MergeSingleFile( XMLFile* file , MergeDataFile& aMergeDataFile , const ByteString&… in MergeSingleFile()
433 ByteString sPath ) in MergeSingleFile()
442 ByteString sTmp = Export::sLanguages; in MergeSingleFile()
462 ByteString sTempFile; in MergeSingleFile()
463 ByteString sTargetFile( sPath ); in MergeSingleFile()
464 ByteString sTempFileCopy; in MergeSingleFile()
466 static const ByteString INPATH = Export::GetEnv( "INPATH" ); in MergeSingleFile()
559 ByteString HelpParser::GetOutpath( const ByteString& rPathX , const ByteString& sCur , const ByteSt… in GetOutpath()
560 ByteString testpath = rPathX; in GetOutpath()
561 static const ByteString sDelimiter( DirEntry::GetAccessDelimiter(), RTL_TEXTENCODING_ASCII_US ); in GetOutpath()
567 ByteString sRelativePath( rPathY ); in GetOutpath()
574 void HelpParser::MakeDir( const ByteString& sPath ){ in MakeDir()
575 ByteString sTPath( sPath ); in MakeDir()
576 ByteString sDelimiter( DirEntry::GetAccessDelimiter(), RTL_TEXTENCODING_ASCII_US ); in MakeDir()
579 ByteString sCreateDir; in MakeDir()
594 void HelpParser::ProcessHelp( LangHashMap* aLangHM , const ByteString& sCur , ResData *pResData , M…
602 ByteString sLId;
603 ByteString sGId;
626 ByteString sNewText;
646 void HelpParser::Process( LangHashMap* aLangHM , const ByteString& sCur , ResData *pResData , Merge…
657 ByteString sLId;
658 ByteString sGId;
683 ByteString sNewText;