Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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 : */
9 :
10 : #include <iostream>
11 : #include "sal/main.h"
12 :
13 : #include "common.hxx"
14 : #include "stringmerge.hxx"
15 :
16 0 : SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
17 : {
18 0 : common::HandledArgs aArgs;
19 0 : if( !common::handleArguments(argc, argv, aArgs) )
20 : {
21 0 : common::writeUsage("stringex","string.xml");
22 0 : return 1;
23 : }
24 :
25 0 : StringParser aParser(aArgs.m_sInputFile, aArgs.m_sLanguage);
26 0 : if( !aParser.isInitialized() )
27 : {
28 0 : return 1;
29 : }
30 :
31 0 : if( aArgs.m_bMergeMode )
32 : {
33 0 : aParser.Merge( aArgs.m_sMergeSrc, aArgs.m_sOutputFile );
34 : }
35 : else
36 : {
37 0 : aParser.Extract( aArgs.m_sOutputFile );
38 : }
39 0 : return 0;
40 0 : }
41 :
42 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|