]>
Commit | Line | Data |
---|---|---|
1 | /*++\r | |
2 | \r | |
3 | Copyright (c) 2004-2006 Intel Corporation. All rights reserved\r | |
4 | This program and the accompanying materials are licensed and made available\r | |
5 | under the terms and conditions of the BSD License which accompanies this\r | |
6 | distribution. The full text of the license may be found at\r | |
7 | http://opensource.org/licenses/bsd-license.php\r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
11 | \r | |
12 | \r | |
13 | Module Name:\r | |
14 | \r | |
15 | PrintLibInternal.h\r | |
16 | \r | |
17 | Abstract:\r | |
18 | \r | |
19 | Print Library.\r | |
20 | \r | |
21 | --*/\r | |
22 | \r | |
23 | \r | |
24 | \r | |
25 | //\r | |
26 | // Print primitives\r | |
27 | //\r | |
28 | //#define LEFT_JUSTIFY 0x01\r | |
29 | #define PREFIX_SIGN 0x02\r | |
30 | #define PREFIX_BLANK 0x04\r | |
31 | //#define COMMA_TYPE 0x08\r | |
32 | #define LONG_TYPE 0x10\r | |
33 | //#define PREFIX_ZERO 0x20\r | |
34 | #define OUTPUT_UNICODE 0x40\r | |
35 | #define RADIX_HEX 0x80\r | |
36 | #define FORMAT_UNICODE 0x100\r | |
37 | #define PAD_TO_WIDTH 0x200\r | |
38 | #define ARGUMENT_UNICODE 0x400\r | |
39 | #define PRECISION 0x800\r | |
40 | #define ARGUMENT_REVERSED 0x1000\r | |
41 | \r | |
42 | ///\r | |
43 | /// Define the maximum number of characters that are required to encode\r | |
44 | /// a decimal, hexidecimal, GUID, or TIME value with a Nll terminator.\r | |
45 | /// Maximum Length Decimal String = 28 "-9,223,372,036,854,775,808"\r | |
46 | /// Maximum Length Hexidecimal String = 17 "FFFFFFFFFFFFFFFF"\r | |
47 | /// Maximum Length GUID = 37 "00000000-0000-0000-0000-000000000000"\r | |
48 | /// Maximum Length TIME = 18 "12/12/2006 12:12"\r | |
49 | ///\r | |
50 | #define MAXIMUM_VALUE_CHARACTERS 38\r | |
51 | \r | |
52 | //\r | |
53 | //\r | |
54 | //\r | |
55 | typedef struct {\r | |
56 | UINT16 Year;\r | |
57 | UINT8 Month;\r | |
58 | UINT8 Day;\r | |
59 | UINT8 Hour;\r | |
60 | UINT8 Minute;\r | |
61 | UINT8 Second;\r | |
62 | UINT8 Pad1;\r | |
63 | UINT32 Nanosecond;\r | |
64 | INT16 TimeZone;\r | |
65 | UINT8 Daylight;\r | |
66 | UINT8 Pad2;\r | |
67 | } TIME;\r | |
68 | \r | |
69 | UINTN\r | |
70 | BasePrintLibSPrint (\r | |
71 | OUT CHAR8 *Buffer,\r | |
72 | IN UINTN BufferSize,\r | |
73 | IN UINTN Flags,\r | |
74 | IN CONST CHAR8 *FormatString,\r | |
75 | ...\r | |
76 | );\r | |
77 | \r | |
78 | CHAR8 *\r | |
79 | BasePrintLibFillBuffer (\r | |
80 | CHAR8 *Buffer,\r | |
81 | INTN Length,\r | |
82 | UINTN Character,\r | |
83 | INTN Increment\r | |
84 | );\r | |
85 | \r | |
86 | UINTN\r | |
87 | EFIAPI\r | |
88 | BasePrintLibValueToString (\r | |
89 | IN OUT CHAR8 *Buffer,\r | |
90 | IN INT64 Value,\r | |
91 | IN UINTN Radix\r | |
92 | );\r | |
93 | \r | |
94 | UINTN\r | |
95 | BasePrintLibConvertValueToString (\r | |
96 | IN OUT CHAR8 *Buffer,\r | |
97 | IN UINTN Flags,\r | |
98 | IN INT64 Value,\r | |
99 | IN UINTN Width,\r | |
100 | IN UINTN Increment\r | |
101 | );\r |