]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/CodeTools/Source/String/PrintLibInternal.h
More renames for Tool Packages
[mirror_edk2.git] / Tools / CodeTools / Source / String / PrintLibInternal.h
CommitLineData
56fe62ce 1/*++\r
d2ec0d9e 2\r
cf171110 3Copyright (c) 2004-2006 Intel Corporation. All rights reserved\r
56fe62ce 4This program and the accompanying materials are licensed and made available\r
5under the terms and conditions of the BSD License which accompanies this\r
6distribution. The full text of the license may be found at\r
7http://opensource.org/licenses/bsd-license.php\r
8\r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11\r
d2ec0d9e 12\r
56fe62ce 13Module Name:\r
d2ec0d9e 14\r
56fe62ce 15 PrintLibInternal.h\r
16\r
17Abstract:\r
18\r
19 Print Library.\r
d2ec0d9e 20\r
56fe62ce 21--*/\r
d2ec0d9e 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
55typedef 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
69UINTN\r
70BasePrintLibSPrint (\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
78CHAR8 *\r
79BasePrintLibFillBuffer (\r
80 CHAR8 *Buffer,\r
81 INTN Length,\r
82 UINTN Character,\r
83 INTN Increment\r
84 );\r
85\r
86UINTN\r
87EFIAPI\r
88BasePrintLibValueToString (\r
56fe62ce 89 IN OUT CHAR8 *Buffer,\r
90 IN INT64 Value,\r
d2ec0d9e 91 IN UINTN Radix\r
92 );\r
93\r
94UINTN\r
95BasePrintLibConvertValueToString (\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