mirror of https://github.com/acidanthera/audk.git
Update to use DOS format
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6327 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
de22b69836
commit
488ee64192
|
@ -1,477 +1,477 @@
|
||||||
/** @file
|
/** @file
|
||||||
Library header file that defines print services
|
Library header file that defines print services
|
||||||
|
|
||||||
Copyright (c) 2006 - 2008, Intel Corporation
|
Copyright (c) 2006 - 2008, 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
|
||||||
http://opensource.org/licenses/bsd-license.php
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#ifndef __PRINT_LIB_H__
|
#ifndef __PRINT_LIB_H__
|
||||||
#define __PRINT_LIB_H__
|
#define __PRINT_LIB_H__
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Define the maximum number of characters that are required to
|
/// Define the maximum number of characters that are required to
|
||||||
/// encode a decimal, hexidecimal, GUID, or TIME value with a NULL
|
/// encode a decimal, hexidecimal, GUID, or TIME value with a NULL
|
||||||
/// terminator.
|
/// terminator.
|
||||||
///
|
///
|
||||||
/// Maximum Length Decimal String = 28
|
/// Maximum Length Decimal String = 28
|
||||||
/// "-9,223,372,036,854,775,808"
|
/// "-9,223,372,036,854,775,808"
|
||||||
/// Maximum Length Hexidecimal String = 17
|
/// Maximum Length Hexidecimal String = 17
|
||||||
/// "FFFFFFFFFFFFFFFF"
|
/// "FFFFFFFFFFFFFFFF"
|
||||||
/// Maximum Length GUID = 37
|
/// Maximum Length GUID = 37
|
||||||
/// "00000000-0000-0000-0000-000000000000"
|
/// "00000000-0000-0000-0000-000000000000"
|
||||||
/// Maximum Length TIME = 18
|
/// Maximum Length TIME = 18
|
||||||
/// "12/12/2006 12:12"
|
/// "12/12/2006 12:12"
|
||||||
///
|
///
|
||||||
#define MAXIMUM_VALUE_CHARACTERS 38
|
#define MAXIMUM_VALUE_CHARACTERS 38
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Flags bitmask values use in UnicodeValueToString() and
|
/// Flags bitmask values use in UnicodeValueToString() and
|
||||||
/// AsciiValueToString()
|
/// AsciiValueToString()
|
||||||
///
|
///
|
||||||
#define LEFT_JUSTIFY 0x01
|
#define LEFT_JUSTIFY 0x01
|
||||||
#define COMMA_TYPE 0x08
|
#define COMMA_TYPE 0x08
|
||||||
#define PREFIX_ZERO 0x20
|
#define PREFIX_ZERO 0x20
|
||||||
#define RADIX_HEX 0x80
|
#define RADIX_HEX 0x80
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Produces a Null-terminated Unicode string in an output buffer based on
|
Produces a Null-terminated Unicode string in an output buffer based on
|
||||||
a Null-terminated Unicode format string and a VA_LIST argument list
|
a Null-terminated Unicode format string and a VA_LIST argument list
|
||||||
|
|
||||||
Produces a Null-terminated Unicode string in the output buffer specified by StartOfBuffer
|
Produces a Null-terminated Unicode string in the output buffer specified by StartOfBuffer
|
||||||
and BufferSize.
|
and BufferSize.
|
||||||
The Unicode string is produced by parsing the format string specified by FormatString.
|
The Unicode string is produced by parsing the format string specified by FormatString.
|
||||||
Arguments are pulled from the variable argument list specified by Marker based on the
|
Arguments are pulled from the variable argument list specified by Marker based on the
|
||||||
contents of the format string.
|
contents of the format string.
|
||||||
The number of Unicode characters in the produced output buffer is returned not including
|
The number of Unicode characters in the produced output buffer is returned not including
|
||||||
the Null-terminator.
|
the Null-terminator.
|
||||||
If BufferSize is 0 or 1, then no output buffer is produced and 0 is returned.
|
If BufferSize is 0 or 1, then no output buffer is produced and 0 is returned.
|
||||||
|
|
||||||
If BufferSize > 1 and StartOfBuffer is NULL, then ASSERT().
|
If BufferSize > 1 and StartOfBuffer is NULL, then ASSERT().
|
||||||
If BufferSize > 1 and StartOfBuffer is not aligned on a 16-bit boundary, then ASSERT().
|
If BufferSize > 1 and StartOfBuffer is not aligned on a 16-bit boundary, then ASSERT().
|
||||||
If BufferSize > 1 and FormatString is NULL, then ASSERT().
|
If BufferSize > 1 and FormatString is NULL, then ASSERT().
|
||||||
If BufferSize > 1 and FormatString is not aligned on a 16-bit boundary, then ASSERT().
|
If BufferSize > 1 and FormatString is not aligned on a 16-bit boundary, then ASSERT().
|
||||||
If PcdMaximumUnicodeStringLength is not zero, and FormatString contains more than
|
If PcdMaximumUnicodeStringLength is not zero, and FormatString contains more than
|
||||||
PcdMaximumUnicodeStringLength Unicode characters not including the Null-terminator, then
|
PcdMaximumUnicodeStringLength Unicode characters not including the Null-terminator, then
|
||||||
ASSERT().
|
ASSERT().
|
||||||
If PcdMaximumUnicodeStringLength is not zero, and produced Null-terminated Unicode string
|
If PcdMaximumUnicodeStringLength is not zero, and produced Null-terminated Unicode string
|
||||||
contains more than PcdMaximumUnicodeStringLength Unicode characters not including the
|
contains more than PcdMaximumUnicodeStringLength Unicode characters not including the
|
||||||
Null-terminator, then ASSERT().
|
Null-terminator, then ASSERT().
|
||||||
|
|
||||||
@param StartOfBuffer A pointer to the output buffer for the produced Null-terminated
|
@param StartOfBuffer A pointer to the output buffer for the produced Null-terminated
|
||||||
Unicode string.
|
Unicode string.
|
||||||
@param BufferSize The size, in bytes, of the output buffer specified by StartOfBuffer.
|
@param BufferSize The size, in bytes, of the output buffer specified by StartOfBuffer.
|
||||||
@param FormatString Null-terminated Unicode format string.
|
@param FormatString Null-terminated Unicode format string.
|
||||||
@param Marker VA_LIST marker for the variable argument list.
|
@param Marker VA_LIST marker for the variable argument list.
|
||||||
|
|
||||||
@return The number of Unicode characters in the produced output buffer not including the
|
@return The number of Unicode characters in the produced output buffer not including the
|
||||||
Null-terminator.
|
Null-terminator.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
UnicodeVSPrint (
|
UnicodeVSPrint (
|
||||||
OUT CHAR16 *StartOfBuffer,
|
OUT CHAR16 *StartOfBuffer,
|
||||||
IN UINTN BufferSize,
|
IN UINTN BufferSize,
|
||||||
IN CONST CHAR16 *FormatString,
|
IN CONST CHAR16 *FormatString,
|
||||||
IN VA_LIST Marker
|
IN VA_LIST Marker
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Produces a Null-terminated Unicode string in an output buffer based on a Null-terminated
|
Produces a Null-terminated Unicode string in an output buffer based on a Null-terminated
|
||||||
Unicode format string and variable argument list.
|
Unicode format string and variable argument list.
|
||||||
|
|
||||||
Produces a Null-terminated Unicode string in the output buffer specified by StartOfBuffer
|
Produces a Null-terminated Unicode string in the output buffer specified by StartOfBuffer
|
||||||
and BufferSize.
|
and BufferSize.
|
||||||
The Unicode string is produced by parsing the format string specified by FormatString.
|
The Unicode string is produced by parsing the format string specified by FormatString.
|
||||||
Arguments are pulled from the variable argument list based on the contents of the format string.
|
Arguments are pulled from the variable argument list based on the contents of the format string.
|
||||||
The number of Unicode characters in the produced output buffer is returned not including
|
The number of Unicode characters in the produced output buffer is returned not including
|
||||||
the Null-terminator.
|
the Null-terminator.
|
||||||
If BufferSize is 0 or 1, then no output buffer is produced and 0 is returned.
|
If BufferSize is 0 or 1, then no output buffer is produced and 0 is returned.
|
||||||
|
|
||||||
If BufferSize > 1 and StartOfBuffer is NULL, then ASSERT().
|
If BufferSize > 1 and StartOfBuffer is NULL, then ASSERT().
|
||||||
If BufferSize > 1 and StartOfBuffer is not aligned on a 16-bit boundary, then ASSERT().
|
If BufferSize > 1 and StartOfBuffer is not aligned on a 16-bit boundary, then ASSERT().
|
||||||
If BufferSize > 1 and FormatString is NULL, then ASSERT().
|
If BufferSize > 1 and FormatString is NULL, then ASSERT().
|
||||||
If BufferSize > 1 and FormatString is not aligned on a 16-bit boundary, then ASSERT().
|
If BufferSize > 1 and FormatString is not aligned on a 16-bit boundary, then ASSERT().
|
||||||
If PcdMaximumUnicodeStringLength is not zero, and FormatString contains more than
|
If PcdMaximumUnicodeStringLength is not zero, and FormatString contains more than
|
||||||
PcdMaximumUnicodeStringLength Unicode characters not including the Null-terminator, then
|
PcdMaximumUnicodeStringLength Unicode characters not including the Null-terminator, then
|
||||||
ASSERT().
|
ASSERT().
|
||||||
If PcdMaximumUnicodeStringLength is not zero, and produced Null-terminated Unicode string
|
If PcdMaximumUnicodeStringLength is not zero, and produced Null-terminated Unicode string
|
||||||
contains more than PcdMaximumUnicodeStringLength Unicode characters not including the
|
contains more than PcdMaximumUnicodeStringLength Unicode characters not including the
|
||||||
Null-terminator, then ASSERT().
|
Null-terminator, then ASSERT().
|
||||||
|
|
||||||
@param StartOfBuffer A pointer to the output buffer for the produced Null-terminated
|
@param StartOfBuffer A pointer to the output buffer for the produced Null-terminated
|
||||||
Unicode string.
|
Unicode string.
|
||||||
@param BufferSize The size, in bytes, of the output buffer specified by StartOfBuffer.
|
@param BufferSize The size, in bytes, of the output buffer specified by StartOfBuffer.
|
||||||
@param FormatString Null-terminated Unicode format string.
|
@param FormatString Null-terminated Unicode format string.
|
||||||
@param ... The variable argument list.
|
@param ... The variable argument list.
|
||||||
|
|
||||||
@return The number of Unicode characters in the produced output buffer not including the
|
@return The number of Unicode characters in the produced output buffer not including the
|
||||||
Null-terminator.
|
Null-terminator.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
UnicodeSPrint (
|
UnicodeSPrint (
|
||||||
OUT CHAR16 *StartOfBuffer,
|
OUT CHAR16 *StartOfBuffer,
|
||||||
IN UINTN BufferSize,
|
IN UINTN BufferSize,
|
||||||
IN CONST CHAR16 *FormatString,
|
IN CONST CHAR16 *FormatString,
|
||||||
...
|
...
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Produces a Null-terminated Unicode string in an output buffer based on a Null-terminated
|
Produces a Null-terminated Unicode string in an output buffer based on a Null-terminated
|
||||||
ASCII format string and a VA_LIST argument list
|
ASCII format string and a VA_LIST argument list
|
||||||
|
|
||||||
Produces a Null-terminated Unicode string in the output buffer specified by StartOfBuffer
|
Produces a Null-terminated Unicode string in the output buffer specified by StartOfBuffer
|
||||||
and BufferSize.
|
and BufferSize.
|
||||||
The Unicode string is produced by parsing the format string specified by FormatString.
|
The Unicode string is produced by parsing the format string specified by FormatString.
|
||||||
Arguments are pulled from the variable argument list specified by Marker based on the
|
Arguments are pulled from the variable argument list specified by Marker based on the
|
||||||
contents of the format string.
|
contents of the format string.
|
||||||
The number of Unicode characters in the produced output buffer is returned not including
|
The number of Unicode characters in the produced output buffer is returned not including
|
||||||
the Null-terminator.
|
the Null-terminator.
|
||||||
If BufferSize is 0 or 1, then no output buffer is produced and 0 is returned.
|
If BufferSize is 0 or 1, then no output buffer is produced and 0 is returned.
|
||||||
|
|
||||||
If BufferSize > 1 and StartOfBuffer is NULL, then ASSERT().
|
If BufferSize > 1 and StartOfBuffer is NULL, then ASSERT().
|
||||||
If BufferSize > 1 and StartOfBuffer is not aligned on a 16-bit boundary, then ASSERT().
|
If BufferSize > 1 and StartOfBuffer is not aligned on a 16-bit boundary, then ASSERT().
|
||||||
If BufferSize > 1 and FormatString is NULL, then ASSERT().
|
If BufferSize > 1 and FormatString is NULL, then ASSERT().
|
||||||
If PcdMaximumAsciiStringLength is not zero, and FormatString contains more than
|
If PcdMaximumAsciiStringLength is not zero, and FormatString contains more than
|
||||||
PcdMaximumAsciiStringLength ASCII characters not including the Null-terminator, then
|
PcdMaximumAsciiStringLength ASCII characters not including the Null-terminator, then
|
||||||
ASSERT().
|
ASSERT().
|
||||||
If PcdMaximumUnicodeStringLength is not zero, and produced Null-terminated Unicode string
|
If PcdMaximumUnicodeStringLength is not zero, and produced Null-terminated Unicode string
|
||||||
contains more than PcdMaximumUnicodeStringLength Unicode characters not including the
|
contains more than PcdMaximumUnicodeStringLength Unicode characters not including the
|
||||||
Null-terminator, then ASSERT().
|
Null-terminator, then ASSERT().
|
||||||
|
|
||||||
@param StartOfBuffer A pointer to the output buffer for the produced Null-terminated
|
@param StartOfBuffer A pointer to the output buffer for the produced Null-terminated
|
||||||
Unicode string.
|
Unicode string.
|
||||||
@param BufferSize The size, in bytes, of the output buffer specified by StartOfBuffer.
|
@param BufferSize The size, in bytes, of the output buffer specified by StartOfBuffer.
|
||||||
@param FormatString Null-terminated ASCII format string.
|
@param FormatString Null-terminated ASCII format string.
|
||||||
@param Marker VA_LIST marker for the variable argument list.
|
@param Marker VA_LIST marker for the variable argument list.
|
||||||
|
|
||||||
@return The number of Unicode characters in the produced output buffer not including the
|
@return The number of Unicode characters in the produced output buffer not including the
|
||||||
Null-terminator.
|
Null-terminator.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
UnicodeVSPrintAsciiFormat (
|
UnicodeVSPrintAsciiFormat (
|
||||||
OUT CHAR16 *StartOfBuffer,
|
OUT CHAR16 *StartOfBuffer,
|
||||||
IN UINTN BufferSize,
|
IN UINTN BufferSize,
|
||||||
IN CONST CHAR8 *FormatString,
|
IN CONST CHAR8 *FormatString,
|
||||||
IN VA_LIST Marker
|
IN VA_LIST Marker
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Produces a Null-terminated Unicode string in an output buffer based on a Null-terminated
|
Produces a Null-terminated Unicode string in an output buffer based on a Null-terminated
|
||||||
ASCII format string and variable argument list.
|
ASCII format string and variable argument list.
|
||||||
|
|
||||||
Produces a Null-terminated Unicode string in the output buffer specified by StartOfBuffer
|
Produces a Null-terminated Unicode string in the output buffer specified by StartOfBuffer
|
||||||
and BufferSize.
|
and BufferSize.
|
||||||
The Unicode string is produced by parsing the format string specified by FormatString.
|
The Unicode string is produced by parsing the format string specified by FormatString.
|
||||||
Arguments are pulled from the variable argument list based on the contents of the
|
Arguments are pulled from the variable argument list based on the contents of the
|
||||||
format string.
|
format string.
|
||||||
The number of Unicode characters in the produced output buffer is returned not including
|
The number of Unicode characters in the produced output buffer is returned not including
|
||||||
the Null-terminator.
|
the Null-terminator.
|
||||||
If BufferSize is 0 or 1, then no output buffer is produced and 0 is returned.
|
If BufferSize is 0 or 1, then no output buffer is produced and 0 is returned.
|
||||||
|
|
||||||
If BufferSize > 1 and StartOfBuffer is NULL, then ASSERT().
|
If BufferSize > 1 and StartOfBuffer is NULL, then ASSERT().
|
||||||
If BufferSize > 1 and StartOfBuffer is not aligned on a 16-bit boundary, then ASSERT().
|
If BufferSize > 1 and StartOfBuffer is not aligned on a 16-bit boundary, then ASSERT().
|
||||||
If BufferSize > 1 and FormatString is NULL, then ASSERT().
|
If BufferSize > 1 and FormatString is NULL, then ASSERT().
|
||||||
If PcdMaximumAsciiStringLength is not zero, and FormatString contains more than
|
If PcdMaximumAsciiStringLength is not zero, and FormatString contains more than
|
||||||
PcdMaximumAsciiStringLength ASCII characters not including the Null-terminator, then
|
PcdMaximumAsciiStringLength ASCII characters not including the Null-terminator, then
|
||||||
ASSERT().
|
ASSERT().
|
||||||
If PcdMaximumUnicodeStringLength is not zero, and produced Null-terminated Unicode string
|
If PcdMaximumUnicodeStringLength is not zero, and produced Null-terminated Unicode string
|
||||||
contains more than PcdMaximumUnicodeStringLength Unicode characters not including the
|
contains more than PcdMaximumUnicodeStringLength Unicode characters not including the
|
||||||
Null-terminator, then ASSERT().
|
Null-terminator, then ASSERT().
|
||||||
|
|
||||||
@param StartOfBuffer A pointer to the output buffer for the produced Null-terminated
|
@param StartOfBuffer A pointer to the output buffer for the produced Null-terminated
|
||||||
Unicode string.
|
Unicode string.
|
||||||
@param BufferSize The size, in bytes, of the output buffer specified by StartOfBuffer.
|
@param BufferSize The size, in bytes, of the output buffer specified by StartOfBuffer.
|
||||||
@param FormatString Null-terminated ASCII format string.
|
@param FormatString Null-terminated ASCII format string.
|
||||||
@param ... The variable argument list.
|
@param ... The variable argument list.
|
||||||
|
|
||||||
@return The number of Unicode characters in the produced output buffer not including the
|
@return The number of Unicode characters in the produced output buffer not including the
|
||||||
Null-terminator.
|
Null-terminator.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
UnicodeSPrintAsciiFormat (
|
UnicodeSPrintAsciiFormat (
|
||||||
OUT CHAR16 *StartOfBuffer,
|
OUT CHAR16 *StartOfBuffer,
|
||||||
IN UINTN BufferSize,
|
IN UINTN BufferSize,
|
||||||
IN CONST CHAR8 *FormatString,
|
IN CONST CHAR8 *FormatString,
|
||||||
...
|
...
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Converts a decimal value to a Null-terminated Unicode string.
|
Converts a decimal value to a Null-terminated Unicode string.
|
||||||
|
|
||||||
Converts the decimal number specified by Value to a Null-terminated Unicode
|
Converts the decimal number specified by Value to a Null-terminated Unicode
|
||||||
string specified by Buffer containing at most Width characters. No padding of spaces
|
string specified by Buffer containing at most Width characters. No padding of spaces
|
||||||
is ever performed. If Width is 0 then a width of MAXIMUM_VALUE_CHARACTERS is assumed.
|
is ever performed. If Width is 0 then a width of MAXIMUM_VALUE_CHARACTERS is assumed.
|
||||||
The number of Unicode characters in Buffer is returned not including the Null-terminator.
|
The number of Unicode characters in Buffer is returned not including the Null-terminator.
|
||||||
If the conversion contains more than Width characters, then only the first
|
If the conversion contains more than Width characters, then only the first
|
||||||
Width characters are returned, and the total number of characters
|
Width characters are returned, and the total number of characters
|
||||||
required to perform the conversion is returned.
|
required to perform the conversion is returned.
|
||||||
Additional conversion parameters are specified in Flags.
|
Additional conversion parameters are specified in Flags.
|
||||||
|
|
||||||
The Flags bit LEFT_JUSTIFY is always ignored.
|
The Flags bit LEFT_JUSTIFY is always ignored.
|
||||||
All conversions are left justified in Buffer.
|
All conversions are left justified in Buffer.
|
||||||
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 HEX_RADIX 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 HEX_RADIX 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 HEX_RADIX 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 HEX_RADIX 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
|
||||||
Unicode string.
|
Unicode string.
|
||||||
@param Flags The bitmask of flags that specify left justification, zero pad, and commas.
|
@param Flags The bitmask of flags that specify left justification, zero pad, and commas.
|
||||||
@param Value The 64-bit signed value to convert to a string.
|
@param Value The 64-bit signed value to convert to a string.
|
||||||
@param Width The maximum number of Unicode characters to place in Buffer, not including
|
@param Width The maximum number of Unicode characters to place in Buffer, not including
|
||||||
the Null-terminator.
|
the Null-terminator.
|
||||||
|
|
||||||
@return The number of Unicode characters in Buffer not including the Null-terminator.
|
@return The number of Unicode characters in Buffer not including the Null-terminator.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
UnicodeValueToString (
|
UnicodeValueToString (
|
||||||
IN OUT CHAR16 *Buffer,
|
IN OUT CHAR16 *Buffer,
|
||||||
IN UINTN Flags,
|
IN UINTN Flags,
|
||||||
IN INT64 Value,
|
IN INT64 Value,
|
||||||
IN UINTN Width
|
IN UINTN Width
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Produces a Null-terminated ASCII string in an output buffer based on a Null-terminated
|
Produces a Null-terminated ASCII string in an output buffer based on a Null-terminated
|
||||||
ASCII format string and a VA_LIST argument list.
|
ASCII format string and a VA_LIST argument list.
|
||||||
|
|
||||||
Produces a Null-terminated ASCII string in the output buffer specified by StartOfBuffer
|
Produces a Null-terminated ASCII string in the output buffer specified by StartOfBuffer
|
||||||
and BufferSize.
|
and BufferSize.
|
||||||
The ASCII string is produced by parsing the format string specified by FormatString.
|
The ASCII string is produced by parsing the format string specified by FormatString.
|
||||||
Arguments are pulled from the variable argument list specified by Marker based on
|
Arguments are pulled from the variable argument list specified by Marker based on
|
||||||
the contents of the format string.
|
the contents of the format string.
|
||||||
The number of ASCII characters in the produced output buffer is returned not including
|
The number of ASCII characters in the produced output buffer is returned not including
|
||||||
the Null-terminator.
|
the Null-terminator.
|
||||||
If BufferSize is 0, then no output buffer is produced and 0 is returned.
|
If BufferSize is 0, then no output buffer is produced and 0 is returned.
|
||||||
|
|
||||||
If BufferSize > 0 and StartOfBuffer is NULL, then ASSERT().
|
If BufferSize > 0 and StartOfBuffer is NULL, then ASSERT().
|
||||||
If BufferSize > 0 and FormatString is NULL, then ASSERT().
|
If BufferSize > 0 and FormatString is NULL, then ASSERT().
|
||||||
If PcdMaximumAsciiStringLength is not zero, and FormatString contains more than
|
If PcdMaximumAsciiStringLength is not zero, and FormatString contains more than
|
||||||
PcdMaximumAsciiStringLength ASCII characters not including the Null-terminator, then
|
PcdMaximumAsciiStringLength ASCII characters not including the Null-terminator, then
|
||||||
ASSERT().
|
ASSERT().
|
||||||
If PcdMaximumAsciiStringLength is not zero, and produced Null-terminated ASCII string
|
If PcdMaximumAsciiStringLength is not zero, and produced Null-terminated ASCII string
|
||||||
contains more than PcdMaximumAsciiStringLength ASCII characters not including the
|
contains more than PcdMaximumAsciiStringLength ASCII characters not including the
|
||||||
Null-terminator, then ASSERT().
|
Null-terminator, then ASSERT().
|
||||||
|
|
||||||
@param StartOfBuffer A pointer to the output buffer for the produced Null-terminated
|
@param StartOfBuffer A pointer to the output buffer for the produced Null-terminated
|
||||||
ASCII string.
|
ASCII string.
|
||||||
@param BufferSize The size, in bytes, of the output buffer specified by StartOfBuffer.
|
@param BufferSize The size, in bytes, of the output buffer specified by StartOfBuffer.
|
||||||
@param FormatString Null-terminated ASCII format string.
|
@param FormatString Null-terminated ASCII format string.
|
||||||
@param Marker VA_LIST marker for the variable argument list.
|
@param Marker VA_LIST marker for the variable argument list.
|
||||||
|
|
||||||
@return The number of ASCII characters in the produced output buffer not including the
|
@return The number of ASCII characters in the produced output buffer not including the
|
||||||
Null-terminator.
|
Null-terminator.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsciiVSPrint (
|
AsciiVSPrint (
|
||||||
OUT CHAR8 *StartOfBuffer,
|
OUT CHAR8 *StartOfBuffer,
|
||||||
IN UINTN BufferSize,
|
IN UINTN BufferSize,
|
||||||
IN CONST CHAR8 *FormatString,
|
IN CONST CHAR8 *FormatString,
|
||||||
IN VA_LIST Marker
|
IN VA_LIST Marker
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Produces a Null-terminated ASCII string in an output buffer based on a Null-terminated
|
Produces a Null-terminated ASCII string in an output buffer based on a Null-terminated
|
||||||
ASCII format string and variable argument list.
|
ASCII format string and variable argument list.
|
||||||
|
|
||||||
Produces a Null-terminated ASCII string in the output buffer specified by StartOfBuffer
|
Produces a Null-terminated ASCII string in the output buffer specified by StartOfBuffer
|
||||||
and BufferSize.
|
and BufferSize.
|
||||||
The ASCII string is produced by parsing the format string specified by FormatString.
|
The ASCII string is produced by parsing the format string specified by FormatString.
|
||||||
Arguments are pulled from the variable argument list based on the contents of the
|
Arguments are pulled from the variable argument list based on the contents of the
|
||||||
format string.
|
format string.
|
||||||
The number of ASCII characters in the produced output buffer is returned not including
|
The number of ASCII characters in the produced output buffer is returned not including
|
||||||
the Null-terminator.
|
the Null-terminator.
|
||||||
If BufferSize is 0, then no output buffer is produced and 0 is returned.
|
If BufferSize is 0, then no output buffer is produced and 0 is returned.
|
||||||
|
|
||||||
If BufferSize > 0 and StartOfBuffer is NULL, then ASSERT().
|
If BufferSize > 0 and StartOfBuffer is NULL, then ASSERT().
|
||||||
If BufferSize > 0 and FormatString is NULL, then ASSERT().
|
If BufferSize > 0 and FormatString is NULL, then ASSERT().
|
||||||
If PcdMaximumAsciiStringLength is not zero, and FormatString contains more than
|
If PcdMaximumAsciiStringLength is not zero, and FormatString contains more than
|
||||||
PcdMaximumAsciiStringLength ASCII characters not including the Null-terminator, then
|
PcdMaximumAsciiStringLength ASCII characters not including the Null-terminator, then
|
||||||
ASSERT().
|
ASSERT().
|
||||||
If PcdMaximumAsciiStringLength is not zero, and produced Null-terminated ASCII string
|
If PcdMaximumAsciiStringLength is not zero, and produced Null-terminated ASCII string
|
||||||
contains more than PcdMaximumAsciiStringLength ASCII characters not including the
|
contains more than PcdMaximumAsciiStringLength ASCII characters not including the
|
||||||
Null-terminator, then ASSERT().
|
Null-terminator, then ASSERT().
|
||||||
|
|
||||||
@param StartOfBuffer A pointer to the output buffer for the produced Null-terminated
|
@param StartOfBuffer A pointer to the output buffer for the produced Null-terminated
|
||||||
ASCII string.
|
ASCII string.
|
||||||
@param BufferSize The size, in bytes, of the output buffer specified by StartOfBuffer.
|
@param BufferSize The size, in bytes, of the output buffer specified by StartOfBuffer.
|
||||||
@param FormatString Null-terminated ASCII format string.
|
@param FormatString Null-terminated ASCII format string.
|
||||||
@param ... The variable argument list.
|
@param ... The variable argument list.
|
||||||
|
|
||||||
@return The number of ASCII characters in the produced output buffer not including the
|
@return The number of ASCII characters in the produced output buffer not including the
|
||||||
Null-terminator.
|
Null-terminator.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsciiSPrint (
|
AsciiSPrint (
|
||||||
OUT CHAR8 *StartOfBuffer,
|
OUT CHAR8 *StartOfBuffer,
|
||||||
IN UINTN BufferSize,
|
IN UINTN BufferSize,
|
||||||
IN CONST CHAR8 *FormatString,
|
IN CONST CHAR8 *FormatString,
|
||||||
...
|
...
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Produces a Null-terminated ASCII string in an output buffer based on a Null-terminated
|
Produces a Null-terminated ASCII string in an output buffer based on a Null-terminated
|
||||||
Unicode format string and a VA_LIST argument list.
|
Unicode format string and a VA_LIST argument list.
|
||||||
|
|
||||||
Produces a Null-terminated ASCII string in the output buffer specified by StartOfBuffer
|
Produces a Null-terminated ASCII string in the output buffer specified by StartOfBuffer
|
||||||
and BufferSize.
|
and BufferSize.
|
||||||
The ASCII string is produced by parsing the format string specified by FormatString.
|
The ASCII string is produced by parsing the format string specified by FormatString.
|
||||||
Arguments are pulled from the variable argument list specified by Marker based on
|
Arguments are pulled from the variable argument list specified by Marker based on
|
||||||
the contents of the format string.
|
the contents of the format string.
|
||||||
The number of ASCII characters in the produced output buffer is returned not including
|
The number of ASCII characters in the produced output buffer is returned not including
|
||||||
the Null-terminator.
|
the Null-terminator.
|
||||||
If BufferSize is 0, then no output buffer is produced and 0 is returned.
|
If BufferSize is 0, then no output buffer is produced and 0 is returned.
|
||||||
|
|
||||||
If BufferSize > 0 and StartOfBuffer is NULL, then ASSERT().
|
If BufferSize > 0 and StartOfBuffer is NULL, then ASSERT().
|
||||||
If BufferSize > 0 and FormatString is NULL, then ASSERT().
|
If BufferSize > 0 and FormatString is NULL, then ASSERT().
|
||||||
If BufferSize > 0 and FormatString is not aligned on a 16-bit boundary, then ASSERT().
|
If BufferSize > 0 and FormatString is not aligned on a 16-bit boundary, then ASSERT().
|
||||||
If PcdMaximumUnicodeStringLength is not zero, and FormatString contains more than
|
If PcdMaximumUnicodeStringLength is not zero, and FormatString contains more than
|
||||||
PcdMaximumUnicodeStringLength Unicode characters not including the Null-terminator, then
|
PcdMaximumUnicodeStringLength Unicode characters not including the Null-terminator, then
|
||||||
ASSERT().
|
ASSERT().
|
||||||
If PcdMaximumAsciiStringLength is not zero, and produced Null-terminated ASCII string
|
If PcdMaximumAsciiStringLength is not zero, and produced Null-terminated ASCII string
|
||||||
contains more than PcdMaximumAsciiStringLength ASCII characters not including the
|
contains more than PcdMaximumAsciiStringLength ASCII characters not including the
|
||||||
Null-terminator, then ASSERT().
|
Null-terminator, then ASSERT().
|
||||||
|
|
||||||
@param StartOfBuffer A pointer to the output buffer for the produced Null-terminated
|
@param StartOfBuffer A pointer to the output buffer for the produced Null-terminated
|
||||||
ASCII string.
|
ASCII string.
|
||||||
@param BufferSize The size, in bytes, of the output buffer specified by StartOfBuffer.
|
@param BufferSize The size, in bytes, of the output buffer specified by StartOfBuffer.
|
||||||
@param FormatString Null-terminated Unicode format string.
|
@param FormatString Null-terminated Unicode format string.
|
||||||
@param Marker VA_LIST marker for the variable argument list.
|
@param Marker VA_LIST marker for the variable argument list.
|
||||||
|
|
||||||
@return The number of ASCII characters in the produced output buffer not including the
|
@return The number of ASCII characters in the produced output buffer not including the
|
||||||
Null-terminator.
|
Null-terminator.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsciiVSPrintUnicodeFormat (
|
AsciiVSPrintUnicodeFormat (
|
||||||
OUT CHAR8 *StartOfBuffer,
|
OUT CHAR8 *StartOfBuffer,
|
||||||
IN UINTN BufferSize,
|
IN UINTN BufferSize,
|
||||||
IN CONST CHAR16 *FormatString,
|
IN CONST CHAR16 *FormatString,
|
||||||
IN VA_LIST Marker
|
IN VA_LIST Marker
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Produces a Null-terminated ASCII string in an output buffer based on a Null-terminated
|
Produces a Null-terminated ASCII string in an output buffer based on a Null-terminated
|
||||||
Unicode format string and variable argument list.
|
Unicode format string and variable argument list.
|
||||||
|
|
||||||
Produces a Null-terminated ASCII string in the output buffer specified by StartOfBuffer
|
Produces a Null-terminated ASCII string in the output buffer specified by StartOfBuffer
|
||||||
and BufferSize.
|
and BufferSize.
|
||||||
The ASCII string is produced by parsing the format string specified by FormatString.
|
The ASCII string is produced by parsing the format string specified by FormatString.
|
||||||
Arguments are pulled from the variable argument list based on the contents of the
|
Arguments are pulled from the variable argument list based on the contents of the
|
||||||
format string.
|
format string.
|
||||||
The number of ASCII characters in the produced output buffer is returned not including
|
The number of ASCII characters in the produced output buffer is returned not including
|
||||||
the Null-terminator.
|
the Null-terminator.
|
||||||
If BufferSize is 0, then no output buffer is produced and 0 is returned.
|
If BufferSize is 0, then no output buffer is produced and 0 is returned.
|
||||||
|
|
||||||
If BufferSize > 0 and StartOfBuffer is NULL, then ASSERT().
|
If BufferSize > 0 and StartOfBuffer is NULL, then ASSERT().
|
||||||
If BufferSize > 0 and FormatString is NULL, then ASSERT().
|
If BufferSize > 0 and FormatString is NULL, then ASSERT().
|
||||||
If BufferSize > 0 and FormatString is not aligned on a 16-bit boundary, then ASSERT().
|
If BufferSize > 0 and FormatString is not aligned on a 16-bit boundary, then ASSERT().
|
||||||
If PcdMaximumUnicodeStringLength is not zero, and FormatString contains more than
|
If PcdMaximumUnicodeStringLength is not zero, and FormatString contains more than
|
||||||
PcdMaximumUnicodeStringLength Unicode characters not including the Null-terminator, then
|
PcdMaximumUnicodeStringLength Unicode characters not including the Null-terminator, then
|
||||||
ASSERT().
|
ASSERT().
|
||||||
If PcdMaximumAsciiStringLength is not zero, and produced Null-terminated ASCII string
|
If PcdMaximumAsciiStringLength is not zero, and produced Null-terminated ASCII string
|
||||||
contains more than PcdMaximumAsciiStringLength ASCII characters not including the
|
contains more than PcdMaximumAsciiStringLength ASCII characters not including the
|
||||||
Null-terminator, then ASSERT().
|
Null-terminator, then ASSERT().
|
||||||
|
|
||||||
@param StartOfBuffer A pointer to the output buffer for the produced Null-terminated
|
@param StartOfBuffer A pointer to the output buffer for the produced Null-terminated
|
||||||
ASCII string.
|
ASCII string.
|
||||||
@param BufferSize The size, in bytes, of the output buffer specified by StartOfBuffer.
|
@param BufferSize The size, in bytes, of the output buffer specified by StartOfBuffer.
|
||||||
@param FormatString Null-terminated Unicode format string.
|
@param FormatString Null-terminated Unicode format string.
|
||||||
@param ... The variable argument list.
|
@param ... The variable argument list.
|
||||||
|
|
||||||
@return The number of ASCII characters in the produced output buffer not including the
|
@return The number of ASCII characters in the produced output buffer not including the
|
||||||
Null-terminator.
|
Null-terminator.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsciiSPrintUnicodeFormat (
|
AsciiSPrintUnicodeFormat (
|
||||||
OUT CHAR8 *StartOfBuffer,
|
OUT CHAR8 *StartOfBuffer,
|
||||||
IN UINTN BufferSize,
|
IN UINTN BufferSize,
|
||||||
IN CONST CHAR16 *FormatString,
|
IN CONST CHAR16 *FormatString,
|
||||||
...
|
...
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Converts a decimal value to a Null-terminated ASCII string.
|
Converts a decimal value to a Null-terminated ASCII string.
|
||||||
|
|
||||||
Converts the decimal number specified by Value to a Null-terminated ASCII string
|
Converts the decimal number specified by Value to a Null-terminated ASCII string
|
||||||
specified by Buffer containing at most Width characters. No padding of spaces
|
specified by Buffer containing at most Width characters. No padding of spaces
|
||||||
is ever performed.
|
is ever performed.
|
||||||
If Width is 0 then a width of MAXIMUM_VALUE_CHARACTERS is assumed.
|
If Width is 0 then a width of MAXIMUM_VALUE_CHARACTERS is assumed.
|
||||||
The number of ASCII characters in Buffer is returned not including the Null-terminator.
|
The number of ASCII characters in Buffer is returned not including the Null-terminator.
|
||||||
If the conversion contains more than Width characters, then only the first Width
|
If the conversion contains more than Width characters, then only the first Width
|
||||||
characters are returned, and the total number of characters required to perform
|
characters are returned, and the total number of characters required to perform
|
||||||
the conversion is returned.
|
the conversion is returned.
|
||||||
Additional conversion parameters are specified in Flags.
|
Additional conversion parameters are specified in Flags.
|
||||||
The Flags bit LEFT_JUSTIFY is always ignored.
|
The Flags bit LEFT_JUSTIFY is always ignored.
|
||||||
All conversions are left justified in Buffer.
|
All conversions are left justified in Buffer.
|
||||||
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 HEX_RADIX 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 HEX_RADIX 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 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 HEX_RADIX 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
|
||||||
ASCII string.
|
ASCII string.
|
||||||
@param Flags The bitmask of flags that specify left justification, zero pad, and commas.
|
@param Flags The bitmask of flags that specify left justification, zero pad, and commas.
|
||||||
@param Value The 64-bit signed value to convert to a string.
|
@param Value The 64-bit signed value to convert to a string.
|
||||||
@param Width The maximum number of ASCII characters to place in Buffer, not including
|
@param Width The maximum number of ASCII characters to place in Buffer, not including
|
||||||
the Null-terminator.
|
the Null-terminator.
|
||||||
|
|
||||||
@return The number of ASCII characters in Buffer not including the Null-terminator.
|
@return The number of ASCII characters in Buffer not including the Null-terminator.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsciiValueToString (
|
AsciiValueToString (
|
||||||
IN OUT CHAR8 *Buffer,
|
IN OUT CHAR8 *Buffer,
|
||||||
IN UINTN Flags,
|
IN UINTN Flags,
|
||||||
IN INT64 Value,
|
IN INT64 Value,
|
||||||
IN UINTN Width
|
IN UINTN Width
|
||||||
);
|
);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue