summaryrefslogtreecommitdiffstats
path: root/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2018-01-24 22:36:22 -3407
committerRuiyu Ni <ruiyu.ni@intel.com>2018-01-29 09:41:48 +0800
commit630cb8507b2f1d7d7af3ac0f992d40f209dc1cee (patch)
treeadc4917b2cc0810d217f82675a9159f9b07cc07d /ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h
parentd65f2cea36d17092302e49c5109ea21f1878ab6f (diff)
downloadedk2-630cb8507b2f1d7d7af3ac0f992d40f209dc1cee.tar.gz
edk2-630cb8507b2f1d7d7af3ac0f992d40f209dc1cee.tar.bz2
edk2-630cb8507b2f1d7d7af3ac0f992d40f209dc1cee.zip
ShellPkg/Level2Command: Use UnicodeCollation in StrinCmp
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Diffstat (limited to 'ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h')
-rw-r--r--ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h b/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h
index 857487fd80..fef6adc3e1 100644
--- a/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h
+++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h
@@ -280,16 +280,17 @@ VerifyIntermediateDirectories (
);
/**
- CaseInsensitive length limited string comparison.
+ String comparison without regard to case for a limited number of characters.
- @param[in] Source Pointer to first string.
- @param[in] Target Pointer to second string.
- @param[in] Count Number of characters to compare.
+ @param[in] Source The first item to compare.
+ @param[in] Target The second item to compare.
+ @param[in] Count How many characters to compare.
- @retval 0 The strings are the same.
- @return non-zero if the strings are different.
+ @retval 0 Source and Target are identical strings without regard to case.
+ @retval !=0 Source is not identical to Target.
+
**/
-CONST CHAR16*
+INTN
StrniCmp(
IN CONST CHAR16 *Source,
IN CONST CHAR16 *Target,