xref: /aoo41x/main/stoc/source/javavm/jvmargs.cxx (revision 647a425c)
1*647a425cSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*647a425cSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*647a425cSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*647a425cSAndrew Rist  * distributed with this work for additional information
6*647a425cSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*647a425cSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*647a425cSAndrew Rist  * "License"); you may not use this file except in compliance
9*647a425cSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*647a425cSAndrew Rist  *
11*647a425cSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*647a425cSAndrew Rist  *
13*647a425cSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*647a425cSAndrew Rist  * software distributed under the License is distributed on an
15*647a425cSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*647a425cSAndrew Rist  * KIND, either express or implied.  See the License for the
17*647a425cSAndrew Rist  * specific language governing permissions and limitations
18*647a425cSAndrew Rist  * under the License.
19*647a425cSAndrew Rist  *
20*647a425cSAndrew Rist  *************************************************************/
21*647a425cSAndrew Rist 
22*647a425cSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_stoc.hxx"
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include "jvmargs.hxx"
28cdf0e10cSrcweir #include <rtl/ustring.hxx>
29cdf0e10cSrcweir 
30cdf0e10cSrcweir 
31cdf0e10cSrcweir #define OUSTR(x) rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( x ))
32cdf0e10cSrcweir 
33cdf0e10cSrcweir using namespace rtl;
34cdf0e10cSrcweir 
35cdf0e10cSrcweir namespace stoc_javavm {
36cdf0e10cSrcweir 
JVM()37cdf0e10cSrcweir JVM::JVM() throw()//: _enabled(sal_False)
38cdf0e10cSrcweir {
39cdf0e10cSrcweir }
40cdf0e10cSrcweir 
pushProp(const OUString & property)41cdf0e10cSrcweir void JVM::pushProp(const OUString & property)
42cdf0e10cSrcweir {
43cdf0e10cSrcweir     sal_Int32 index = property.indexOf((sal_Unicode)'=');
44cdf0e10cSrcweir     if(index > 0)
45cdf0e10cSrcweir     {
46cdf0e10cSrcweir         OUString left = property.copy(0, index).trim();
47cdf0e10cSrcweir         OUString right(property.copy(index + 1).trim());
48cdf0e10cSrcweir         _props.push_back(property);
49cdf0e10cSrcweir     }
50cdf0e10cSrcweir     else
51cdf0e10cSrcweir     { // no '=', could be -X
52cdf0e10cSrcweir         _props.push_back(property);
53cdf0e10cSrcweir     }
54cdf0e10cSrcweir }
55cdf0e10cSrcweir 
56cdf0e10cSrcweir 
getProperties() const57cdf0e10cSrcweir const ::std::vector< ::rtl::OUString > & JVM::getProperties() const
58cdf0e10cSrcweir {
59cdf0e10cSrcweir     return _props;
60cdf0e10cSrcweir }
61cdf0e10cSrcweir 
62cdf0e10cSrcweir }
63