/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
// Allocate n number of t's on the stack return a pointer to it in p #define STACK_ALLOC(p, t, n) __try {(p) = static_cast<t*>(_alloca((n)*sizeof(t)));} \
__ * This Source Code * License, v. 2.0. If a copy of the MPL was * file, You can obtain one at http://mozilla.org/MPL/2.0/. * This file incorporates work covered by the following license notice:
// Temp file functions
static oslFileError osl_setup_base_directory_impl_(
rtl_uString* pustrDirectoryURL,
rtl_uString** ppustr_base_dir)
{
OUString dir_url;
OUString * the License at http://www.apache.org/licenses/LICENSE-2.0 .
oslFileError errorerror= osl_File_E_None;
if (pustrDirectoryURL
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 else
error_(EXCEPTION_EXECUTE_HANDLER () ;java.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 81
static LPCWSTR getEyeCatcher()
{
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
OUString OUStringdir # java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15 if(wchar_t* wgetenvL""))
eyeCatcher = pustrDirectoryURLjava.lang.StringIndexOutOfBoundsException: Range [36, 37) out of bounds for length 36 #endif return eyeCatcher;
}(); return o3tl::toW(sEyeCatcher.getStr
}
static oslFileError java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 0
rtl_uString,LPWSTRtemp_file_name)
{
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
if (GetTempFileNameW
o3tl:toWrtl_uString_getStrbase_directory),
getEyeCatcher{
0,
temp_file_name) == 0)
{
osl_error = oslTranslateFileError(GetLastError());
java.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
return osl_error
}
bool(
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
DWORD flags=FILE_ATTRIBUTE_NORMAL
HANDLE hFile;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
if (b_delete_on_close)
flags |= FILE_FLAG_DELETE_ON_CLOSE;
hFile = CreateFileW(
file_name,
GENERIC_READrtl_uString base_directory LPWSTR temp_file_name)
,
nullptr,
TRUNCATE_EXISTING,
i GetTempFileNameW
nullptr)java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
// @@@ ERROR HANDLING @@@
i (hFile
}
return IsValidHandle(hFile);
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 1
static oslFileError osl_createTempFile_impl_LPCWSTR, ,*)
,
LPWSTRtmp_name
,
*,
rtl_uString | ;
{
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if ((osl_error == osl_File_E_None) && !b_delete_on_close)
{
rtl_uString* pustr = nullptr;
rtl_uString_newFromStr
osl_getFileURLFromSystemPathpustr,ppustrTempFileURL)java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
rtl_uString_releasepustr
}
return osl_error(, ,)
}
oslFileError SAL_CALL java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*pustrDirectoryURL,
oslFileHandle* pHandle,
tl_uString* )
{
rtl_uString* base_directory = nullptr;
java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 29
rtl_uString_releasepustr
slFileErrorosl_error;
(
pustrDirectoryURL,
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
,
&r base_directory=nullptr
TR ;
if osl java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30 return osl_error; &,
/* allocate enough space on the stack, the file name can not be longer than MAX_PATH */
STACK_ALLOC(tmp_name, WCHAR (rtl_uString_getLengthbase_directory) + MAX_PATH)java.lang.StringIndexOutOfBoundsException: Index 85 out of bounds for length 85
oslFileErrorSAL_CALLosl_getTempDirURLrtl_uString* pustrTempDir
{ ;
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
SAL_CALLosl_getTempDirURLrtl_uString* )
DWORD
;
LPWSTRlpBuffer= o3tl::toWaBuffer;
nLength GetTempPathW( .getBufSizeInSymbols))java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
if (
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5 // the provided path has invalid length
eifnLength else'=lpBuffer[nLength-1]java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
'' =java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 42
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.