]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - Tools/Source/TianoTools/String/PrintLibInternal.h
Add new OSS License
[mirror_edk2.git] / Tools / Source / TianoTools / String / PrintLibInternal.h
... / ...
CommitLineData
1/** @file\r
2 Print Library.\r
3\r
4Copyright (c) 2004-2006 Intel Corporation. All rights reserved\r
5This software and associated documentation (if any) is furnished\r
6under a license and may only be used or copied in accordance\r
7with the terms of the license. Except as permitted by such\r
8license, no part of this software or documentation may be\r
9reproduced, stored in a retrieval system, or transmitted in any\r
10form or by any means without the express written consent of\r
11Intel Corporation.\r
12\r
13 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
14 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
15\r
16 Module Name: PrintLibInternal.h\r
17\r
18**/\r
19\r
20\r
21\r
22//\r
23// Print primitives\r
24//\r
25//#define LEFT_JUSTIFY 0x01\r
26#define PREFIX_SIGN 0x02\r
27#define PREFIX_BLANK 0x04\r
28//#define COMMA_TYPE 0x08\r
29#define LONG_TYPE 0x10\r
30//#define PREFIX_ZERO 0x20\r
31#define OUTPUT_UNICODE 0x40\r
32#define RADIX_HEX 0x80\r
33#define FORMAT_UNICODE 0x100\r
34#define PAD_TO_WIDTH 0x200\r
35#define ARGUMENT_UNICODE 0x400\r
36#define PRECISION 0x800\r
37#define ARGUMENT_REVERSED 0x1000\r
38\r
39///\r
40/// Define the maximum number of characters that are required to encode\r
41/// a decimal, hexidecimal, GUID, or TIME value with a Nll terminator.\r
42/// Maximum Length Decimal String = 28 "-9,223,372,036,854,775,808"\r
43/// Maximum Length Hexidecimal String = 17 "FFFFFFFFFFFFFFFF"\r
44/// Maximum Length GUID = 37 "00000000-0000-0000-0000-000000000000"\r
45/// Maximum Length TIME = 18 "12/12/2006 12:12"\r
46///\r
47#define MAXIMUM_VALUE_CHARACTERS 38\r
48\r
49//\r
50//\r
51//\r
52typedef struct {\r
53 UINT16 Year;\r
54 UINT8 Month;\r
55 UINT8 Day;\r
56 UINT8 Hour;\r
57 UINT8 Minute;\r
58 UINT8 Second;\r
59 UINT8 Pad1;\r
60 UINT32 Nanosecond;\r
61 INT16 TimeZone;\r
62 UINT8 Daylight;\r
63 UINT8 Pad2;\r
64} TIME;\r
65\r
66UINTN\r
67BasePrintLibSPrint (\r
68 OUT CHAR8 *Buffer,\r
69 IN UINTN BufferSize,\r
70 IN UINTN Flags,\r
71 IN CONST CHAR8 *FormatString,\r
72 ...\r
73 );\r
74\r
75CHAR8 *\r
76BasePrintLibFillBuffer (\r
77 CHAR8 *Buffer,\r
78 INTN Length,\r
79 UINTN Character,\r
80 INTN Increment\r
81 );\r
82\r
83UINTN\r
84EFIAPI\r
85BasePrintLibValueToString (\r
86 IN OUT CHAR8 *Buffer, \r
87 IN INT64 Value, \r
88 IN UINTN Radix\r
89 );\r
90\r
91UINTN\r
92BasePrintLibConvertValueToString (\r
93 IN OUT CHAR8 *Buffer,\r
94 IN UINTN Flags,\r
95 IN INT64 Value,\r
96 IN UINTN Width,\r
97 IN UINTN Increment\r
98 );\r