summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/UefiLib/Console.c
diff options
context:
space:
mode:
authorjji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-25 07:38:54 +0000
committerjji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-25 07:38:54 +0000
commitcf8ae2f6fe7795c3ebe2792401d0ee839393dae8 (patch)
treec64ab84f8aa1eb4c5784d5e70b44141c5ba0dcf1 /MdePkg/Library/UefiLib/Console.c
parenteb1c78dbb988654f46cc111d5b4a9dabd5578c1f (diff)
downloadedk2-cf8ae2f6fe7795c3ebe2792401d0ee839393dae8.tar.gz
edk2-cf8ae2f6fe7795c3ebe2792401d0ee839393dae8.tar.bz2
edk2-cf8ae2f6fe7795c3ebe2792401d0ee839393dae8.zip
Function headers in .h and .c files synchronized with spec
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6722 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/UefiLib/Console.c')
-rw-r--r--MdePkg/Library/UefiLib/Console.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/MdePkg/Library/UefiLib/Console.c b/MdePkg/Library/UefiLib/Console.c
index 110b19029f..fd223f42f3 100644
--- a/MdePkg/Library/UefiLib/Console.c
+++ b/MdePkg/Library/UefiLib/Console.c
@@ -189,8 +189,10 @@ GLOBAL_REMOVE_IF_UNREFERENCED CONST UNICODE_WIDTH_ENTRY mUnicodeWidthTable[] = {
};
/**
- This function computes and returns the width of the Unicode character
- specified by UnicodeChar.
+ Retrieves the width of a Unicode character.
+
+ This function computes and returns the width of the Unicode character specified
+ by UnicodeChar.
@param UnicodeChar A Unicode character.
@@ -246,11 +248,13 @@ GetGlyphWidth (
/**
Computes the display length of a Null-terminated Unicode String.
- This function computes and returns the display length of
- the Null-terminated Unicode string specified by String.
- If String is NULL, then 0 is returned.
- If any of the widths of the Unicode characters in String
- can not be determined, then 0 is returned.
+ This function computes and returns the display length of the Null-terminated Unicode
+ string specified by String. If String is NULL then 0 is returned. If any of the widths
+ of the Unicode characters in String can not be determined, then 0 is returned. The display
+ width of String can be computed by summing the display widths of each Unicode character
+ in String. Unicode characters that are narrow glyphs have a width of 1, and Unicode
+ characters that are width glyphs have a width of 2.
+ If String is not aligned on a 16-bit boundary, then ASSERT().
@param String A pointer to a Null-terminated Unicode string.