]>
git.proxmox.com Git - mirror_edk2.git/blob - ShellPkg/Include/Library/PathLib.h
2 Provides interface to path manipulation functions.
4 Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php.
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 #include <Library/BaseMemoryLib.h>
21 Removes the last directory or file entry in a path by changing the last
24 @param[in, out] Path The pointer to the path to modify.
26 @retval FALSE Nothing was found to remove.
27 @retval TRUE A directory or file was removed.
36 Function to clean up paths.
38 - Single periods in the path are removed.
39 - Double periods in the path are removed along with a single parent directory.
40 - Forward slashes L'/' are converted to backward slashes L'\'.
42 This will be done inline and the existing buffer may be larger than required
45 @param[in] Path The pointer to the string containing the path.
47 @retval NULL An error occured.
48 @return Path in all other instances.
52 PathCleanUpDirectories(