From 11d2decf8103dc94c131c7aedcd54408a3abad97 Mon Sep 17 00:00:00 2001 From: jcarsey Date: Mon, 7 Dec 2009 18:04:03 +0000 Subject: Adding StringNoCaseCompare to SortLib git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9535 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Include/Library/SortLib.h | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) (limited to 'ShellPkg/Include') diff --git a/ShellPkg/Include/Library/SortLib.h b/ShellPkg/Include/Library/SortLib.h index 2761994572..e213b7a40e 100644 --- a/ShellPkg/Include/Library/SortLib.h +++ b/ShellPkg/Include/Library/SortLib.h @@ -63,16 +63,35 @@ PerformQuickSort ( /** Function to compare 2 device paths for use as CompareFunction. - @param[in] Buffer1 pointer to Device Path to compare - @param[in] Buffer2 pointer to second DevicePath to compare + @param[in] Buffer1 Pointer to Device Path to compare. + @param[in] Buffer2 Pointer to second DevicePath to compare. - @retval 0 Buffer1 equal to Buffer2 - @return < 0 Buffer1 is less than Buffer2 - @return > 0 Buffer1 is greater than Buffer2 + @retval 0 Buffer1 equal to Buffer2. + @return < 0 Buffer1 is less than Buffer2. + @return > 0 Buffer1 is greater than Buffer2. **/ INTN +EFIAPI DevicePathCompare ( IN VOID *Buffer1, IN VOID *Buffer2 ); + +/** + Function to compare 2 strings without regard to case of the characters. + + @param[in] Buffer1 Pointer to String to compare (CHAR16**). + @param[in] Buffer2 Pointer to second String to compare (CHAR16**). + + @retval 0 Buffer1 equal to Buffer2. + @return < 0 Buffer1 is less than Buffer2. + @return > 0 Buffer1 is greater than Buffer2. +**/ +INTN +EFIAPI +StringNoCaseCompare ( + IN VOID *Buffer1, + IN VOID *Buffer2 + ); + #endif //__SORT_LIB_H__ -- cgit v1.2.3