string.cxx (dde7d3fa) | string.cxx (49b34792) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 95 unchanged lines hidden (view full) --- 104 convertCommaSeparated( ::rtl::OUString const& i_rString ) 105{ 106 std::vector< ::rtl::OUString > vec; 107 sal_Int32 idx = 0; 108 do { 109 ::rtl::OUString kw = 110 i_rString.getToken(0, static_cast<sal_Unicode> (','), idx); 111 kw = kw.trim(); | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 95 unchanged lines hidden (view full) --- 104 convertCommaSeparated( ::rtl::OUString const& i_rString ) 105{ 106 std::vector< ::rtl::OUString > vec; 107 sal_Int32 idx = 0; 108 do { 109 ::rtl::OUString kw = 110 i_rString.getToken(0, static_cast<sal_Unicode> (','), idx); 111 kw = kw.trim(); |
112 if (kw.getLength() > 0) { | 112 if ( !kw.isEmpty() ) { |
113 vec.push_back(kw); 114 } 115 } while (idx >= 0); 116 ::com::sun::star::uno::Sequence< ::rtl::OUString > kws(vec.size()); 117 std::copy(vec.begin(), vec.end(), stl_begin(kws)); 118 return kws; 119} 120 121} } | 113 vec.push_back(kw); 114 } 115 } while (idx >= 0); 116 ::com::sun::star::uno::Sequence< ::rtl::OUString > kws(vec.size()); 117 std::copy(vec.begin(), vec.end(), stl_begin(kws)); 118 return kws; 119} 120 121} } |