mirror of https://github.com/acidanthera/audk.git
Update function description to be consistent with code definition: HEX_RADIX => RADIX_HEX.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9434 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
c16243d8e6
commit
df8d0595dc
|
@ -1,6 +1,6 @@
|
||||||
/*++
|
/*++
|
||||||
|
|
||||||
Copyright (c) 2004 - 2006, Intel Corporation
|
Copyright (c) 2004 - 2009, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -232,18 +232,18 @@ UnicodeSPrintAsciiFormat (
|
||||||
If Width is 0, PREFIX_ZERO is ignored in Flags.
|
If Width is 0, PREFIX_ZERO is ignored in Flags.
|
||||||
If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas
|
If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas
|
||||||
are inserted every 3rd digit starting from the right.
|
are inserted every 3rd digit starting from the right.
|
||||||
If HEX_RADIX is set in Flags, then the output buffer will be
|
If RADIX_HEX is set in Flags, then the output buffer will be
|
||||||
formatted in hexadecimal format.
|
formatted in hexadecimal format.
|
||||||
If Value is < 0 and HEX_RADIX is not set in Flags, then the fist character in Buffer is a '-'.
|
If Value is < 0 and RADIX_HEX is not set in Flags, then the fist character in Buffer is a '-'.
|
||||||
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
||||||
then Buffer is padded with '0' characters so the combination of the optional '-'
|
then Buffer is padded with '0' characters so the combination of the optional '-'
|
||||||
sign character, '0' characters, digit characters for Value, and the Null-terminator
|
sign character, '0' characters, digit characters for Value, and the Null-terminator
|
||||||
add up to Width characters.
|
add up to Width characters.
|
||||||
If both COMMA_TYPE and HEX_RADIX are set in Flags, then ASSERT().
|
If both COMMA_TYPE and RADIX_HEX are set in Flags, then ASSERT().
|
||||||
If Buffer is NULL, then ASSERT().
|
If Buffer is NULL, then ASSERT().
|
||||||
If Buffer is not aligned on a 16-bit boundary, then ASSERT().
|
If Buffer is not aligned on a 16-bit boundary, then ASSERT().
|
||||||
If unsupported bits are set in Flags, then ASSERT().
|
If unsupported bits are set in Flags, then ASSERT().
|
||||||
If both COMMA_TYPE and HEX_RADIX are set in Flags, then ASSERT().
|
If both COMMA_TYPE and RADIX_HEX are set in Flags, then ASSERT().
|
||||||
If Width >= MAXIMUM_VALUE_CHARACTERS, then ASSERT()
|
If Width >= MAXIMUM_VALUE_CHARACTERS, then ASSERT()
|
||||||
|
|
||||||
@param Buffer Pointer to the output buffer for the produced Null-terminated
|
@param Buffer Pointer to the output buffer for the produced Null-terminated
|
||||||
|
@ -446,9 +446,9 @@ AsciiSPrintUnicodeFormat (
|
||||||
If Width is 0, PREFIX_ZERO is ignored in Flags.
|
If Width is 0, PREFIX_ZERO is ignored in Flags.
|
||||||
If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas
|
If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas
|
||||||
are inserted every 3rd digit starting from the right.
|
are inserted every 3rd digit starting from the right.
|
||||||
If HEX_RADIX is set in Flags, then the output buffer will be
|
If RADIX_HEX is set in Flags, then the output buffer will be
|
||||||
formatted in hexadecimal format.
|
formatted in hexadecimal format.
|
||||||
If Value is < 0 and HEX_RADIX is not set in Flags, then the fist character in Buffer is a '-'.
|
If Value is < 0 and RADIX_HEX is not set in Flags, then the fist character in Buffer is a '-'.
|
||||||
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
||||||
then Buffer is padded with '0' characters so the combination of the optional '-'
|
then Buffer is padded with '0' characters so the combination of the optional '-'
|
||||||
sign character, '0' characters, digit characters for Value, and the Null-terminator
|
sign character, '0' characters, digit characters for Value, and the Null-terminator
|
||||||
|
@ -456,7 +456,7 @@ AsciiSPrintUnicodeFormat (
|
||||||
|
|
||||||
If Buffer is NULL, then ASSERT().
|
If Buffer is NULL, then ASSERT().
|
||||||
If unsupported bits are set in Flags, then ASSERT().
|
If unsupported bits are set in Flags, then ASSERT().
|
||||||
If both COMMA_TYPE and HEX_RADIX are set in Flags, then ASSERT().
|
If both COMMA_TYPE and RADIX_HEX are set in Flags, then ASSERT().
|
||||||
If Width >= MAXIMUM_VALUE_CHARACTERS, then ASSERT()
|
If Width >= MAXIMUM_VALUE_CHARACTERS, then ASSERT()
|
||||||
|
|
||||||
@param Buffer Pointer to the output buffer for the produced Null-terminated
|
@param Buffer Pointer to the output buffer for the produced Null-terminated
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*++
|
/*++
|
||||||
|
|
||||||
Copyright (c) 2004 - 2006, Intel Corporation
|
Copyright (c) 2004 - 2009, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -811,18 +811,18 @@ UnicodeSPrintAsciiFormat (
|
||||||
If Width is 0, PREFIX_ZERO is ignored in Flags.
|
If Width is 0, PREFIX_ZERO is ignored in Flags.
|
||||||
If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas
|
If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas
|
||||||
are inserted every 3rd digit starting from the right.
|
are inserted every 3rd digit starting from the right.
|
||||||
If HEX_RADIX is set in Flags, then the output buffer will be
|
If RADIX_HEX is set in Flags, then the output buffer will be
|
||||||
formatted in hexadecimal format.
|
formatted in hexadecimal format.
|
||||||
If Value is < 0 and HEX_RADIX is not set in Flags, then the fist character in Buffer is a '-'.
|
If Value is < 0 and RADIX_HEX is not set in Flags, then the fist character in Buffer is a '-'.
|
||||||
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
||||||
then Buffer is padded with '0' characters so the combination of the optional '-'
|
then Buffer is padded with '0' characters so the combination of the optional '-'
|
||||||
sign character, '0' characters, digit characters for Value, and the Null-terminator
|
sign character, '0' characters, digit characters for Value, and the Null-terminator
|
||||||
add up to Width characters.
|
add up to Width characters.
|
||||||
If both COMMA_TYPE and HEX_RADIX are set in Flags, then ASSERT().
|
If both COMMA_TYPE and RADIX_HEX are set in Flags, then ASSERT().
|
||||||
If Buffer is NULL, then ASSERT().
|
If Buffer is NULL, then ASSERT().
|
||||||
If Buffer is not aligned on a 16-bit boundary, then ASSERT().
|
If Buffer is not aligned on a 16-bit boundary, then ASSERT().
|
||||||
If unsupported bits are set in Flags, then ASSERT().
|
If unsupported bits are set in Flags, then ASSERT().
|
||||||
If both COMMA_TYPE and HEX_RADIX are set in Flags, then ASSERT().
|
If both COMMA_TYPE and RADIX_HEX are set in Flags, then ASSERT().
|
||||||
If Width >= MAXIMUM_VALUE_CHARACTERS, then ASSERT()
|
If Width >= MAXIMUM_VALUE_CHARACTERS, then ASSERT()
|
||||||
|
|
||||||
@param Buffer Pointer to the output buffer for the produced Null-terminated
|
@param Buffer Pointer to the output buffer for the produced Null-terminated
|
||||||
|
@ -1049,9 +1049,9 @@ AsciiSPrintUnicodeFormat (
|
||||||
If Width is 0, PREFIX_ZERO is ignored in Flags.
|
If Width is 0, PREFIX_ZERO is ignored in Flags.
|
||||||
If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas
|
If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas
|
||||||
are inserted every 3rd digit starting from the right.
|
are inserted every 3rd digit starting from the right.
|
||||||
If HEX_RADIX is set in Flags, then the output buffer will be
|
If RADIX_HEX is set in Flags, then the output buffer will be
|
||||||
formatted in hexadecimal format.
|
formatted in hexadecimal format.
|
||||||
If Value is < 0 and HEX_RADIX is not set in Flags, then the fist character in Buffer is a '-'.
|
If Value is < 0 and RADIX_HEX is not set in Flags, then the fist character in Buffer is a '-'.
|
||||||
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
||||||
then Buffer is padded with '0' characters so the combination of the optional '-'
|
then Buffer is padded with '0' characters so the combination of the optional '-'
|
||||||
sign character, '0' characters, digit characters for Value, and the Null-terminator
|
sign character, '0' characters, digit characters for Value, and the Null-terminator
|
||||||
|
@ -1059,7 +1059,7 @@ AsciiSPrintUnicodeFormat (
|
||||||
|
|
||||||
If Buffer is NULL, then ASSERT().
|
If Buffer is NULL, then ASSERT().
|
||||||
If unsupported bits are set in Flags, then ASSERT().
|
If unsupported bits are set in Flags, then ASSERT().
|
||||||
If both COMMA_TYPE and HEX_RADIX are set in Flags, then ASSERT().
|
If both COMMA_TYPE and RADIX_HEX are set in Flags, then ASSERT().
|
||||||
If Width >= MAXIMUM_VALUE_CHARACTERS, then ASSERT()
|
If Width >= MAXIMUM_VALUE_CHARACTERS, then ASSERT()
|
||||||
|
|
||||||
@param Buffer Pointer to the output buffer for the produced Null-terminated
|
@param Buffer Pointer to the output buffer for the produced Null-terminated
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*++
|
/*++
|
||||||
|
|
||||||
Copyright (c) 2004 - 2006, Intel Corporation
|
Copyright (c) 2004 - 2009, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -111,13 +111,13 @@ BasePrintLibValueToString (
|
||||||
If Width is 0, PREFIX_ZERO is ignored in Flags.
|
If Width is 0, PREFIX_ZERO is ignored in Flags.
|
||||||
If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas
|
If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas
|
||||||
are inserted every 3rd digit starting from the right.
|
are inserted every 3rd digit starting from the right.
|
||||||
If HEX_RADIX is set in Flags, then the output buffer will be formatted in hexadecimal format.
|
If RADIX_HEX is set in Flags, then the output buffer will be formatted in hexadecimal format.
|
||||||
If Value is < 0 and HEX_RADIX is not set in Flags, then the fist character in Buffer is a '-'.
|
If Value is < 0 and RADIX_HEX is not set in Flags, then the fist character in Buffer is a '-'.
|
||||||
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
||||||
then Buffer is padded with '0' characters so the combination of the optional '-'
|
then Buffer is padded with '0' characters so the combination of the optional '-'
|
||||||
sign character, '0' characters, digit characters for Value, and the Null-terminator
|
sign character, '0' characters, digit characters for Value, and the Null-terminator
|
||||||
add up to Width characters.
|
add up to Width characters.
|
||||||
If both COMMA_TYPE and HEX_RADIX are set in Flags, then ASSERT().
|
If both COMMA_TYPE and RADIX_HEX are set in Flags, then ASSERT().
|
||||||
|
|
||||||
If Buffer is NULL, then ASSERT().
|
If Buffer is NULL, then ASSERT().
|
||||||
If unsupported bits are set in Flags, then ASSERT().
|
If unsupported bits are set in Flags, then ASSERT().
|
||||||
|
@ -160,7 +160,7 @@ BasePrintLibConvertValueToString (
|
||||||
ASSERT ((Flags & ~(LEFT_JUSTIFY | COMMA_TYPE | PREFIX_ZERO | RADIX_HEX)) == 0);
|
ASSERT ((Flags & ~(LEFT_JUSTIFY | COMMA_TYPE | PREFIX_ZERO | RADIX_HEX)) == 0);
|
||||||
|
|
||||||
//
|
//
|
||||||
// If both COMMA_TYPE and HEX_RADIX are set, then ASSERT ()
|
// If both COMMA_TYPE and RADIX_HEX are set, then ASSERT ()
|
||||||
//
|
//
|
||||||
ASSERT (((Flags & COMMA_TYPE) != 0 && (Flags & RADIX_HEX) != 0) == FALSE);
|
ASSERT (((Flags & COMMA_TYPE) != 0 && (Flags & RADIX_HEX) != 0) == FALSE);
|
||||||
|
|
||||||
|
|
|
@ -208,18 +208,18 @@ UINTN
|
||||||
If Width is 0, PREFIX_ZERO is ignored in Flags.
|
If Width is 0, PREFIX_ZERO is ignored in Flags.
|
||||||
If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas
|
If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas
|
||||||
are inserted every 3rd digit starting from the right.
|
are inserted every 3rd digit starting from the right.
|
||||||
If HEX_RADIX is set in Flags, then the output buffer will be
|
If RADIX_HEX is set in Flags, then the output buffer will be
|
||||||
formatted in hexadecimal format.
|
formatted in hexadecimal format.
|
||||||
If Value is < 0 and HEX_RADIX is not set in Flags, then the fist character in Buffer is a '-'.
|
If Value is < 0 and RADIX_HEX is not set in Flags, then the fist character in Buffer is a '-'.
|
||||||
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
||||||
then Buffer is padded with '0' characters so the combination of the optional '-'
|
then Buffer is padded with '0' characters so the combination of the optional '-'
|
||||||
sign character, '0' characters, digit characters for Value, and the Null-terminator
|
sign character, '0' characters, digit characters for Value, and the Null-terminator
|
||||||
add up to Width characters.
|
add up to Width characters.
|
||||||
If both COMMA_TYPE and HEX_RADIX are set in Flags, then ASSERT().
|
If both COMMA_TYPE and RADIX_HEX are set in Flags, then ASSERT().
|
||||||
If Buffer is NULL, then ASSERT().
|
If Buffer is NULL, then ASSERT().
|
||||||
If Buffer is not aligned on a 16-bit boundary, then ASSERT().
|
If Buffer is not aligned on a 16-bit boundary, then ASSERT().
|
||||||
If unsupported bits are set in Flags, then ASSERT().
|
If unsupported bits are set in Flags, then ASSERT().
|
||||||
If both COMMA_TYPE and HEX_RADIX are set in Flags, then ASSERT().
|
If both COMMA_TYPE and RADIX_HEX are set in Flags, then ASSERT().
|
||||||
If Width >= MAXIMUM_VALUE_CHARACTERS, then ASSERT()
|
If Width >= MAXIMUM_VALUE_CHARACTERS, then ASSERT()
|
||||||
|
|
||||||
@param Buffer Pointer to the output buffer for the produced Null-terminated
|
@param Buffer Pointer to the output buffer for the produced Null-terminated
|
||||||
|
@ -419,9 +419,9 @@ UINTN
|
||||||
If Width is 0, PREFIX_ZERO is ignored in Flags.
|
If Width is 0, PREFIX_ZERO is ignored in Flags.
|
||||||
If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas
|
If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas
|
||||||
are inserted every 3rd digit starting from the right.
|
are inserted every 3rd digit starting from the right.
|
||||||
If HEX_RADIX is set in Flags, then the output buffer will be
|
If RADIX_HEX is set in Flags, then the output buffer will be
|
||||||
formatted in hexadecimal format.
|
formatted in hexadecimal format.
|
||||||
If Value is < 0 and HEX_RADIX is not set in Flags, then the fist character in Buffer is a '-'.
|
If Value is < 0 and RADIX_HEX is not set in Flags, then the fist character in Buffer is a '-'.
|
||||||
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
||||||
then Buffer is padded with '0' characters so the combination of the optional '-'
|
then Buffer is padded with '0' characters so the combination of the optional '-'
|
||||||
sign character, '0' characters, digit characters for Value, and the Null-terminator
|
sign character, '0' characters, digit characters for Value, and the Null-terminator
|
||||||
|
@ -429,7 +429,7 @@ UINTN
|
||||||
|
|
||||||
If Buffer is NULL, then ASSERT().
|
If Buffer is NULL, then ASSERT().
|
||||||
If unsupported bits are set in Flags, then ASSERT().
|
If unsupported bits are set in Flags, then ASSERT().
|
||||||
If both COMMA_TYPE and HEX_RADIX are set in Flags, then ASSERT().
|
If both COMMA_TYPE and RADIX_HEX are set in Flags, then ASSERT().
|
||||||
If Width >= MAXIMUM_VALUE_CHARACTERS, then ASSERT()
|
If Width >= MAXIMUM_VALUE_CHARACTERS, then ASSERT()
|
||||||
|
|
||||||
@param Buffer Pointer to the output buffer for the produced Null-terminated
|
@param Buffer Pointer to the output buffer for the produced Null-terminated
|
||||||
|
|
|
@ -538,18 +538,18 @@ UnicodeSPrintAsciiFormat (
|
||||||
If Width is 0, PREFIX_ZERO is ignored in Flags.
|
If Width is 0, PREFIX_ZERO is ignored in Flags.
|
||||||
If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas
|
If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas
|
||||||
are inserted every 3rd digit starting from the right.
|
are inserted every 3rd digit starting from the right.
|
||||||
If HEX_RADIX is set in Flags, then the output buffer will be
|
If RADIX_HEX is set in Flags, then the output buffer will be
|
||||||
formatted in hexadecimal format.
|
formatted in hexadecimal format.
|
||||||
If Value is < 0 and HEX_RADIX is not set in Flags, then the fist character in Buffer is a '-'.
|
If Value is < 0 and RADIX_HEX is not set in Flags, then the fist character in Buffer is a '-'.
|
||||||
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
||||||
then Buffer is padded with '0' characters so the combination of the optional '-'
|
then Buffer is padded with '0' characters so the combination of the optional '-'
|
||||||
sign character, '0' characters, digit characters for Value, and the Null-terminator
|
sign character, '0' characters, digit characters for Value, and the Null-terminator
|
||||||
add up to Width characters.
|
add up to Width characters.
|
||||||
If both COMMA_TYPE and HEX_RADIX are set in Flags, then ASSERT().
|
If both COMMA_TYPE and RADIX_HEX are set in Flags, then ASSERT().
|
||||||
If Buffer is NULL, then ASSERT().
|
If Buffer is NULL, then ASSERT().
|
||||||
If Buffer is not aligned on a 16-bit boundary, then ASSERT().
|
If Buffer is not aligned on a 16-bit boundary, then ASSERT().
|
||||||
If unsupported bits are set in Flags, then ASSERT().
|
If unsupported bits are set in Flags, then ASSERT().
|
||||||
If both COMMA_TYPE and HEX_RADIX are set in Flags, then ASSERT().
|
If both COMMA_TYPE and RADIX_HEX are set in Flags, then ASSERT().
|
||||||
If Width >= MAXIMUM_VALUE_CHARACTERS, then ASSERT()
|
If Width >= MAXIMUM_VALUE_CHARACTERS, then ASSERT()
|
||||||
|
|
||||||
@param Buffer Pointer to the output buffer for the produced Null-terminated
|
@param Buffer Pointer to the output buffer for the produced Null-terminated
|
||||||
|
@ -887,9 +887,9 @@ AsciiSPrintUnicodeFormat (
|
||||||
If Width is 0, PREFIX_ZERO is ignored in Flags.
|
If Width is 0, PREFIX_ZERO is ignored in Flags.
|
||||||
If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas
|
If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas
|
||||||
are inserted every 3rd digit starting from the right.
|
are inserted every 3rd digit starting from the right.
|
||||||
If HEX_RADIX is set in Flags, then the output buffer will be
|
If RADIX_HEX is set in Flags, then the output buffer will be
|
||||||
formatted in hexadecimal format.
|
formatted in hexadecimal format.
|
||||||
If Value is < 0 and HEX_RADIX is not set in Flags, then the fist character in Buffer is a '-'.
|
If Value is < 0 and RADIX_HEX is not set in Flags, then the fist character in Buffer is a '-'.
|
||||||
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
||||||
then Buffer is padded with '0' characters so the combination of the optional '-'
|
then Buffer is padded with '0' characters so the combination of the optional '-'
|
||||||
sign character, '0' characters, digit characters for Value, and the Null-terminator
|
sign character, '0' characters, digit characters for Value, and the Null-terminator
|
||||||
|
@ -897,7 +897,7 @@ AsciiSPrintUnicodeFormat (
|
||||||
|
|
||||||
If Buffer is NULL, then ASSERT().
|
If Buffer is NULL, then ASSERT().
|
||||||
If unsupported bits are set in Flags, then ASSERT().
|
If unsupported bits are set in Flags, then ASSERT().
|
||||||
If both COMMA_TYPE and HEX_RADIX are set in Flags, then ASSERT().
|
If both COMMA_TYPE and RADIX_HEX are set in Flags, then ASSERT().
|
||||||
If Width >= MAXIMUM_VALUE_CHARACTERS, then ASSERT()
|
If Width >= MAXIMUM_VALUE_CHARACTERS, then ASSERT()
|
||||||
|
|
||||||
@param Buffer Pointer to the output buffer for the produced Null-terminated
|
@param Buffer Pointer to the output buffer for the produced Null-terminated
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Provides services to print a formatted string to a buffer. All combinations of
|
Provides services to print a formatted string to a buffer. All combinations of
|
||||||
Unicode and ASCII strings are supported.
|
Unicode and ASCII strings are supported.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
Copyright (c) 2006 - 2009, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -473,18 +473,18 @@ UnicodeSPrintAsciiFormat (
|
||||||
If Width is 0, PREFIX_ZERO is ignored in Flags.
|
If Width is 0, PREFIX_ZERO is ignored in Flags.
|
||||||
If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas
|
If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas
|
||||||
are inserted every 3rd digit starting from the right.
|
are inserted every 3rd digit starting from the right.
|
||||||
If HEX_RADIX is set in Flags, then the output buffer will be
|
If RADIX_HEX is set in Flags, then the output buffer will be
|
||||||
formatted in hexadecimal format.
|
formatted in hexadecimal format.
|
||||||
If Value is < 0 and HEX_RADIX is not set in Flags, then the fist character in Buffer is a '-'.
|
If Value is < 0 and RADIX_HEX is not set in Flags, then the fist character in Buffer is a '-'.
|
||||||
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
||||||
then Buffer is padded with '0' characters so the combination of the optional '-'
|
then Buffer is padded with '0' characters so the combination of the optional '-'
|
||||||
sign character, '0' characters, digit characters for Value, and the Null-terminator
|
sign character, '0' characters, digit characters for Value, and the Null-terminator
|
||||||
add up to Width characters.
|
add up to Width characters.
|
||||||
If both COMMA_TYPE and HEX_RADIX are set in Flags, then ASSERT().
|
If both COMMA_TYPE and RADIX_HEX are set in Flags, then ASSERT().
|
||||||
If Buffer is NULL, then ASSERT().
|
If Buffer is NULL, then ASSERT().
|
||||||
If Buffer is not aligned on a 16-bit boundary, then ASSERT().
|
If Buffer is not aligned on a 16-bit boundary, then ASSERT().
|
||||||
If unsupported bits are set in Flags, then ASSERT().
|
If unsupported bits are set in Flags, then ASSERT().
|
||||||
If both COMMA_TYPE and HEX_RADIX are set in Flags, then ASSERT().
|
If both COMMA_TYPE and RADIX_HEX are set in Flags, then ASSERT().
|
||||||
If Width >= MAXIMUM_VALUE_CHARACTERS, then ASSERT()
|
If Width >= MAXIMUM_VALUE_CHARACTERS, then ASSERT()
|
||||||
|
|
||||||
@param Buffer Pointer to the output buffer for the produced Null-terminated
|
@param Buffer Pointer to the output buffer for the produced Null-terminated
|
||||||
|
@ -774,9 +774,9 @@ AsciiSPrintUnicodeFormat (
|
||||||
If Width is 0, PREFIX_ZERO is ignored in Flags.
|
If Width is 0, PREFIX_ZERO is ignored in Flags.
|
||||||
If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas
|
If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas
|
||||||
are inserted every 3rd digit starting from the right.
|
are inserted every 3rd digit starting from the right.
|
||||||
If HEX_RADIX is set in Flags, then the output buffer will be
|
If RADIX_HEX is set in Flags, then the output buffer will be
|
||||||
formatted in hexadecimal format.
|
formatted in hexadecimal format.
|
||||||
If Value is < 0 and HEX_RADIX is not set in Flags, then the fist character in Buffer is a '-'.
|
If Value is < 0 and RADIX_HEX is not set in Flags, then the fist character in Buffer is a '-'.
|
||||||
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
||||||
then Buffer is padded with '0' characters so the combination of the optional '-'
|
then Buffer is padded with '0' characters so the combination of the optional '-'
|
||||||
sign character, '0' characters, digit characters for Value, and the Null-terminator
|
sign character, '0' characters, digit characters for Value, and the Null-terminator
|
||||||
|
@ -784,7 +784,7 @@ AsciiSPrintUnicodeFormat (
|
||||||
|
|
||||||
If Buffer is NULL, then ASSERT().
|
If Buffer is NULL, then ASSERT().
|
||||||
If unsupported bits are set in Flags, then ASSERT().
|
If unsupported bits are set in Flags, then ASSERT().
|
||||||
If both COMMA_TYPE and HEX_RADIX are set in Flags, then ASSERT().
|
If both COMMA_TYPE and RADIX_HEX are set in Flags, then ASSERT().
|
||||||
If Width >= MAXIMUM_VALUE_CHARACTERS, then ASSERT()
|
If Width >= MAXIMUM_VALUE_CHARACTERS, then ASSERT()
|
||||||
|
|
||||||
@param Buffer Pointer to the output buffer for the produced Null-terminated
|
@param Buffer Pointer to the output buffer for the produced Null-terminated
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
Base Print Library instance implementation.
|
Base Print Library instance implementation.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation<BR>
|
Copyright (c) 2006 - 2009, Intel Corporation<BR>
|
||||||
Portions copyright (c) 2008-2009 Apple Inc. All rights reserved.<BR>
|
Portions copyright (c) 2008-2009 Apple Inc. All rights reserved.<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
|
@ -328,18 +328,18 @@ UnicodeSPrintAsciiFormat (
|
||||||
If Width is 0, PREFIX_ZERO is ignored in Flags.
|
If Width is 0, PREFIX_ZERO is ignored in Flags.
|
||||||
If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas
|
If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas
|
||||||
are inserted every 3rd digit starting from the right.
|
are inserted every 3rd digit starting from the right.
|
||||||
If HEX_RADIX is set in Flags, then the output buffer will be
|
If RADIX_HEX is set in Flags, then the output buffer will be
|
||||||
formatted in hexadecimal format.
|
formatted in hexadecimal format.
|
||||||
If Value is < 0 and HEX_RADIX is not set in Flags, then the fist character in Buffer is a '-'.
|
If Value is < 0 and RADIX_HEX is not set in Flags, then the fist character in Buffer is a '-'.
|
||||||
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
||||||
then Buffer is padded with '0' characters so the combination of the optional '-'
|
then Buffer is padded with '0' characters so the combination of the optional '-'
|
||||||
sign character, '0' characters, digit characters for Value, and the Null-terminator
|
sign character, '0' characters, digit characters for Value, and the Null-terminator
|
||||||
add up to Width characters.
|
add up to Width characters.
|
||||||
If both COMMA_TYPE and HEX_RADIX are set in Flags, then ASSERT().
|
If both COMMA_TYPE and RADIX_HEX are set in Flags, then ASSERT().
|
||||||
If Buffer is NULL, then ASSERT().
|
If Buffer is NULL, then ASSERT().
|
||||||
If Buffer is not aligned on a 16-bit boundary, then ASSERT().
|
If Buffer is not aligned on a 16-bit boundary, then ASSERT().
|
||||||
If unsupported bits are set in Flags, then ASSERT().
|
If unsupported bits are set in Flags, then ASSERT().
|
||||||
If both COMMA_TYPE and HEX_RADIX are set in Flags, then ASSERT().
|
If both COMMA_TYPE and RADIX_HEX are set in Flags, then ASSERT().
|
||||||
If Width >= MAXIMUM_VALUE_CHARACTERS, then ASSERT()
|
If Width >= MAXIMUM_VALUE_CHARACTERS, then ASSERT()
|
||||||
|
|
||||||
@param Buffer Pointer to the output buffer for the produced Null-terminated
|
@param Buffer Pointer to the output buffer for the produced Null-terminated
|
||||||
|
@ -660,9 +660,9 @@ AsciiSPrintUnicodeFormat (
|
||||||
If Width is 0, PREFIX_ZERO is ignored in Flags.
|
If Width is 0, PREFIX_ZERO is ignored in Flags.
|
||||||
If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas
|
If COMMA_TYPE is set in Flags, then PREFIX_ZERO is ignored in Flags, and commas
|
||||||
are inserted every 3rd digit starting from the right.
|
are inserted every 3rd digit starting from the right.
|
||||||
If HEX_RADIX is set in Flags, then the output buffer will be
|
If RADIX_HEX is set in Flags, then the output buffer will be
|
||||||
formatted in hexadecimal format.
|
formatted in hexadecimal format.
|
||||||
If Value is < 0 and HEX_RADIX is not set in Flags, then the fist character in Buffer is a '-'.
|
If Value is < 0 and RADIX_HEX is not set in Flags, then the fist character in Buffer is a '-'.
|
||||||
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
If PREFIX_ZERO is set in Flags and PREFIX_ZERO is not being ignored,
|
||||||
then Buffer is padded with '0' characters so the combination of the optional '-'
|
then Buffer is padded with '0' characters so the combination of the optional '-'
|
||||||
sign character, '0' characters, digit characters for Value, and the Null-terminator
|
sign character, '0' characters, digit characters for Value, and the Null-terminator
|
||||||
|
@ -670,7 +670,7 @@ AsciiSPrintUnicodeFormat (
|
||||||
|
|
||||||
If Buffer is NULL, then ASSERT().
|
If Buffer is NULL, then ASSERT().
|
||||||
If unsupported bits are set in Flags, then ASSERT().
|
If unsupported bits are set in Flags, then ASSERT().
|
||||||
If both COMMA_TYPE and HEX_RADIX are set in Flags, then ASSERT().
|
If both COMMA_TYPE and RADIX_HEX are set in Flags, then ASSERT().
|
||||||
If Width >= MAXIMUM_VALUE_CHARACTERS, then ASSERT()
|
If Width >= MAXIMUM_VALUE_CHARACTERS, then ASSERT()
|
||||||
|
|
||||||
@param Buffer Pointer to the output buffer for the produced Null-terminated
|
@param Buffer Pointer to the output buffer for the produced Null-terminated
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
Print Library internal worker functions.
|
Print Library internal worker functions.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation<BR>
|
Copyright (c) 2006 - 2009, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -193,7 +193,7 @@ BasePrintLibConvertValueToString (
|
||||||
ASSERT ((Flags & ~(LEFT_JUSTIFY | COMMA_TYPE | PREFIX_ZERO | RADIX_HEX)) == 0);
|
ASSERT ((Flags & ~(LEFT_JUSTIFY | COMMA_TYPE | PREFIX_ZERO | RADIX_HEX)) == 0);
|
||||||
|
|
||||||
//
|
//
|
||||||
// If both COMMA_TYPE and HEX_RADIX are set, then ASSERT ()
|
// If both COMMA_TYPE and RADIX_HEX are set, then ASSERT ()
|
||||||
//
|
//
|
||||||
ASSERT (((Flags & COMMA_TYPE) == 0) || ((Flags & RADIX_HEX) == 0));
|
ASSERT (((Flags & COMMA_TYPE) == 0) || ((Flags & RADIX_HEX) == 0));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue