file.cxx (dcc6e752) file.cxx (336e7b3a)
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

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

2859
2860 return eRet;
2861}
2862
2863//#############################################
2864int path_make_parent(sal_Unicode* path)
2865{
2866 int i = rtl_ustr_lastIndexOfChar(path, '/');
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

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

2859
2860 return eRet;
2861}
2862
2863//#############################################
2864int path_make_parent(sal_Unicode* path)
2865{
2866 int i = rtl_ustr_lastIndexOfChar(path, '/');
2867 if (i == -1)
2868 i = rtl_ustr_lastIndexOfChar(path, '\\');
2867
2868 if (i > 0)
2869 {
2870 *(path + i) = 0;
2871 return i;
2872 }
2873 else
2874 return 0;

--- 447 unchanged lines hidden ---
2869
2870 if (i > 0)
2871 {
2872 *(path + i) = 0;
2873 return i;
2874 }
2875 else
2876 return 0;

--- 447 unchanged lines hidden ---