]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Include/Library/SortLib.h
Adding StringNoCaseCompare to SortLib
[mirror_edk2.git] / ShellPkg / Include / Library / SortLib.h
index 276199457234f5e4473b2921496be1d23753076f..e213b7a40e569f10e188ac13f3230eb4007d0ade 100644 (file)
@@ -63,16 +63,35 @@ PerformQuickSort (
 /**\r
   Function to compare 2 device paths for use as CompareFunction.\r
 \r
-  @param[in] Buffer1            pointer to Device Path to compare\r
-  @param[in] Buffer2            pointer to second DevicePath to compare\r
+  @param[in] Buffer1            Pointer to Device Path to compare.\r
+  @param[in] Buffer2            Pointer to second DevicePath to compare.\r
 \r
-  @retval 0                           Buffer1 equal to Buffer2\r
-  @return < 0                         Buffer1 is less than Buffer2\r
-  @return > 0                         Buffer1 is greater than Buffer2                     \r
+  @retval 0                     Buffer1 equal to Buffer2.\r
+  @return < 0                   Buffer1 is less than Buffer2.\r
+  @return > 0                   Buffer1 is greater than Buffer2.                 \r
 **/\r
 INTN\r
+EFIAPI\r
 DevicePathCompare (\r
   IN  VOID             *Buffer1,\r
   IN  VOID             *Buffer2\r
   );\r
+\r
+/**\r
+  Function to compare 2 strings without regard to case of the characters.\r
+\r
+  @param[in] Buffer1            Pointer to String to compare (CHAR16**). \r
+  @param[in] Buffer2            Pointer to second String to compare (CHAR16**).\r
+\r
+  @retval 0                     Buffer1 equal to Buffer2.\r
+  @return < 0                   Buffer1 is less than Buffer2.\r
+  @return > 0                   Buffer1 is greater than Buffer2.                 \r
+**/\r
+INTN\r
+EFIAPI\r
+StringNoCaseCompare (\r
+  IN  VOID             *Buffer1,\r
+  IN  VOID             *Buffer2\r
+  );\r
+\r
 #endif //__SORT_LIB_H__\r