]>
Commit | Line | Data |
---|---|---|
3eb9473e | 1 | /*++\r |
2 | \r | |
4ea9375a HT |
3 | Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>\r |
4 | This program and the accompanying materials \r | |
3eb9473e | 5 | are licensed and made available under the terms and conditions of the BSD License \r |
6 | which accompanies this 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 | Module Name:\r | |
13 | \r | |
14 | PrintWidth.h\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | Unicde option for generic width.\r | |
19 | CHAR_W is Ascii\r | |
20 | STRING_W is ""\r | |
21 | \r | |
22 | --*/\r | |
23 | \r | |
24 | #ifndef _PRINT_WIDTH_H_\r | |
25 | #define _PRINT_WIDTH_H_\r | |
26 | \r | |
27 | typedef CHAR8 CHAR_W;\r | |
28 | #define STRING_W(_s) _s\r | |
29 | \r | |
30 | #define ASPrint(Buffer, BufferSize, Format) SPrint (Buffer, BufferSize, Format)\r | |
31 | #define AvSPrint(Buffer, BufferSize, Format, Marker) VSPrint (Buffer, BufferSize, Format, Marker)\r | |
32 | \r | |
33 | UINTN\r | |
34 | UvSPrint (\r | |
35 | OUT CHAR16 *StartOfBuffer,\r | |
36 | IN UINTN StrLen,\r | |
37 | IN CONST CHAR16 *Format,\r | |
38 | IN VA_LIST Marker\r | |
39 | )\r | |
40 | /*++\r | |
41 | \r | |
42 | Routine Description:\r | |
43 | \r | |
44 | Internal implementation of USPrint. \r | |
45 | Process format and place the results in Buffer for wide chars.\r | |
46 | \r | |
47 | Arguments:\r | |
48 | \r | |
49 | StartOfBuffer - Wide char buffer to print the results of the parsing of Format into.\r | |
50 | StrLen - Maximum number of characters to put into buffer.\r | |
51 | Format - Format string\r | |
52 | Marker - Vararg list consumed by processing Format.\r | |
53 | \r | |
54 | Returns:\r | |
55 | \r | |
56 | Number of characters printed.\r | |
57 | \r | |
58 | --*/\r | |
59 | ;\r | |
60 | \r | |
61 | UINTN\r | |
62 | USPrint (\r | |
63 | OUT CHAR16 *Buffer,\r | |
64 | IN UINTN BufferSize,\r | |
65 | IN CONST CHAR16 *Format,\r | |
66 | ...\r | |
67 | )\r | |
68 | /*++\r | |
69 | \r | |
70 | Routine Description:\r | |
71 | \r | |
72 | Process format and place the results in Buffer for wide chars.\r | |
73 | \r | |
74 | Arguments:\r | |
75 | \r | |
76 | Buffer - Wide char buffer to print the results of the parsing of Format into.\r | |
77 | BufferSize - Maximum number of characters to put into buffer.\r | |
78 | Format - Format string\r | |
79 | ... - Vararg list consumed by processing Format.\r | |
80 | \r | |
81 | Returns:\r | |
82 | \r | |
83 | Number of characters printed.\r | |
84 | \r | |
85 | --*/\r | |
86 | ;\r | |
87 | \r | |
88 | #endif\r |