summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/String.c
diff options
context:
space:
mode:
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2008-09-09 06:22:30 +0000
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2008-09-09 06:22:30 +0000
commit1106ffe1c04bfb1984d3233bd156d2b975429625 (patch)
treeab6961c275f5af15eb7d5fca12008281490bf069 /MdePkg/Library/BaseLib/String.c
parentc0a23f8c370ad671fa8c67cf5047e9f8df5306c6 (diff)
downloadedk2-platforms-1106ffe1c04bfb1984d3233bd156d2b975429625.tar.xz
Function description in baselib.h is not clear. change it to comply with Doxgen format.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5862 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseLib/String.c')
-rw-r--r--MdePkg/Library/BaseLib/String.c34
1 files changed, 19 insertions, 15 deletions
diff --git a/MdePkg/Library/BaseLib/String.c b/MdePkg/Library/BaseLib/String.c
index 6b68bb2eec..2379c23450 100644
--- a/MdePkg/Library/BaseLib/String.c
+++ b/MdePkg/Library/BaseLib/String.c
@@ -229,8 +229,8 @@ StrSize (
@param FirstString Pointer to a Null-terminated Unicode string.
@param SecondString Pointer to a Null-terminated Unicode string.
- @retval 0 FirstString is identical to SecondString.
- @retval !=0 FirstString is not identical to SecondString.
+ @retval 0 FirstString is identical to SecondString.
+ @return others FirstString is not identical to SecondString.
**/
INTN
@@ -279,8 +279,8 @@ StrCmp (
@param SecondString Pointer to a Null-terminated Unicode string.
@param Length Maximum number of Unicode characters to compare.
- @retval 0 FirstString is identical to SecondString.
- @retval !=0 FirstString is not identical to SecondString.
+ @retval 0 FirstString is identical to SecondString.
+ @return others FirstString is not identical to SecondString.
**/
INTN
@@ -438,7 +438,7 @@ StrnCat (
@param SearchString Pointer to a Null-terminated Unicode string to search for.
@retval NULL If the SearchString does not appear in String.
- @retval !NULL If there is a match.
+ @return others If there is a match.
**/
CHAR16 *
@@ -1265,8 +1265,8 @@ AsciiStrSize (
@param FirstString Pointer to a Null-terminated ASCII string.
@param SecondString Pointer to a Null-terminated ASCII string.
- @retval 0 FirstString is identical to SecondString.
- @retval !=0 FirstString is not identical to SecondString.
+ @retval 0 FirstString is identical to SecondString.
+ @return others FirstString is not identical to SecondString.
**/
INTN
@@ -1362,10 +1362,10 @@ InternalAsciiHexCharToUintn (
@param FirstString Pointer to a Null-terminated ASCII string.
@param SecondString Pointer to a Null-terminated ASCII string.
- @retval 0 FirstString is identical to SecondString using case insensitive
- comparisons.
- @retval !=0 FirstString is not identical to SecondString using case
- insensitive comparisons.
+ @retval 0 FirstString is identical to SecondString using case insensitive
+ comparisons.
+ @return others FirstString is not identical to SecondString using case
+ insensitive comparisons.
**/
INTN
@@ -1420,8 +1420,8 @@ AsciiStriCmp (
@param SecondString Pointer to a Null-terminated ASCII string.
@param Length Maximum number of ASCII characters to compare.
- @retval 0 FirstString is identical to SecondString.
- @retval !=0 FirstString is not identical to SecondString.
+ @retval 0 FirstString is identical to SecondString.
+ @return others FirstString is not identical to SecondString.
**/
INTN
@@ -1568,7 +1568,7 @@ AsciiStrnCat (
@param SearchString Pointer to a Null-terminated ASCII string to search for.
@retval NULL If the SearchString does not appear in String.
- @retval !NULL If there is a match.
+ @return others If there is a match.
**/
CHAR8 *
@@ -2103,7 +2103,7 @@ NibbleToHexChar (
/**
Convert binary buffer to a Unicode String in a specified sequence.
- This function converts bytes in the binary Buffer Buf to a Unicode String Str.
+ This function converts bytes in the memory block pointed by Buffer to a Unicode String Str.
Each byte will be represented by two Unicode characters. For example, byte 0xA1 will
be converted into two Unicode character L'A' and L'1'. In the output String, the Unicode Character
for the Most Significant Nibble will be put before the Unicode Character for the Least Significant
@@ -2278,6 +2278,10 @@ HexStringToBuf (
L'A' will be converted to 0x0A.
If Digit is NULL, then ASSERT.
+
+ @param Digit The output hexadecimal digit.
+
+ @param Char The input Unicode character.
@retval TRUE Char is in the range of Hexadecimal number. Digit is updated
to the byte value of the number.