Branch data 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 : : * This file incorporates work covered by the following license notice:
10 : : *
11 : : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : : * contributor license agreements. See the NOTICE file distributed
13 : : * with this work for additional information regarding copyright
14 : : * ownership. The ASF licenses this file to you under the Apache
15 : : * License, Version 2.0 (the "License"); you may not use this file
16 : : * except in compliance with the License. You may obtain a copy of
17 : : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : : */
19 : :
20 : :
21 : : #include "jvmargs.hxx"
22 : : #include <rtl/ustring.hxx>
23 : :
24 : :
25 : : using ::rtl::OUString;
26 : : namespace stoc_javavm {
27 : :
28 : 8 : JVM::JVM() throw()//: _enabled(sal_False)
29 : : {
30 : 8 : }
31 : :
32 : 8 : void JVM::pushProp(const OUString & property)
33 : : {
34 : 8 : sal_Int32 index = property.indexOf((sal_Unicode)'=');
35 [ + - ]: 8 : if(index > 0)
36 : : {
37 : 8 : OUString left = property.copy(0, index).trim();
38 : 8 : OUString right(property.copy(index + 1).trim());
39 [ + - ]: 8 : _props.push_back(property);
40 : : }
41 : : else
42 : : { // no '=', could be -X
43 : 0 : _props.push_back(property);
44 : : }
45 : 8 : }
46 : :
47 : :
48 : 4 : const ::std::vector< ::rtl::OUString > & JVM::getProperties() const
49 : : {
50 : 4 : return _props;
51 : : }
52 : :
53 : : }
54 : :
55 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|