update credits
[LibreOffice.git] / l10ntools / source / stringex.cxx
blob1b507f82eca3b0712f654f3a9694be32a3161293
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #include <iostream>
11 #include "sal/main.h"
13 #include "common.hxx"
14 #include "stringmerge.hxx"
16 SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
18 common::HandledArgs aArgs;
19 if( !common::handleArguments(argc, argv, aArgs) )
21 common::writeUsage("stringex","string.xml");
22 return 1;
25 StringParser aParser(aArgs.m_sInputFile, aArgs.m_sLanguage);
26 if( !aParser.isInitialized() )
28 return 1;
31 if( aArgs.m_bMergeMode )
33 aParser.Merge( aArgs.m_sMergeSrc, aArgs.m_sOutputFile );
35 else
37 aParser.Extract( aArgs.m_sOutputFile );
39 return 0;
42 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */