psputil.cxx (c82f2877) psputil.cxx (24c56ab9)
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

--- 167 unchanged lines hidden (view full) ---

176
177sal_Bool
178WritePS (osl::File* pFile, const rtl::OString &rString)
179{
180 sal_uInt64 nInLength = rString.getLength();
181 sal_uInt64 nOutLength = 0;
182
183 if (nInLength > 0 && pFile)
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

--- 167 unchanged lines hidden (view full) ---

176
177sal_Bool
178WritePS (osl::File* pFile, const rtl::OString &rString)
179{
180 sal_uInt64 nInLength = rString.getLength();
181 sal_uInt64 nOutLength = 0;
182
183 if (nInLength > 0 && pFile)
184 pFile->write (rString, nInLength, nOutLength);
184 pFile->write( rString.getStr(), nInLength, nOutLength);
185
186 return nInLength == nOutLength;
187}
188
189sal_Bool
190WritePS (osl::File* pFile, const rtl::OUString &rString)
191{
192 return WritePS (pFile, rtl::OUStringToOString(rString, RTL_TEXTENCODING_ASCII_US));

--- 72 unchanged lines hidden ---
185
186 return nInLength == nOutLength;
187}
188
189sal_Bool
190WritePS (osl::File* pFile, const rtl::OUString &rString)
191{
192 return WritePS (pFile, rtl::OUStringToOString(rString, RTL_TEXTENCODING_ASCII_US));

--- 72 unchanged lines hidden ---