1 /*++ 2 3 Copyright (c) 2004, Intel Corporation. All rights reserved.<BR> 4 This program and the accompanying materials 5 are licensed and made available under the terms and conditions of the BSD License 6 which accompanies this distribution. The full text of the license may be found at 7 http://opensource.org/licenses/bsd-license.php 8 9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 11 12 Module Name: 13 14 PrintWidth.h 15 16 Abstract: 17 18 Unicde option for generic width. 19 CHAR_W is Ascii 20 STRING_W is "" 21 22 --*/ 23 24 #ifndef _PRINT_WIDTH_H_ 25 #define _PRINT_WIDTH_H_ 26 27 typedef CHAR8 CHAR_W; 28 #define STRING_W(_s) _s 29 30 #define ASPrint(Buffer, BufferSize, Format) SPrint (Buffer, BufferSize, Format) 31 #define AvSPrint(Buffer, BufferSize, Format, Marker) VSPrint (Buffer, BufferSize, Format, Marker) 32 33 UINTN 34 UvSPrint ( 35 OUT CHAR16 *StartOfBuffer, 36 IN UINTN StrLen, 37 IN CONST CHAR16 *Format, 38 IN VA_LIST Marker 39 ) 40 /*++ 41 42 Routine Description: 43 44 Internal implementation of USPrint. 45 Process format and place the results in Buffer for wide chars. 46 47 Arguments: 48 49 StartOfBuffer - Wide char buffer to print the results of the parsing of Format into. 50 StrLen - Maximum number of characters to put into buffer. 51 Format - Format string 52 Marker - Vararg list consumed by processing Format. 53 54 Returns: 55 56 Number of characters printed. 57 58 --*/ 59 ; 60 61 UINTN 62 USPrint ( 63 OUT CHAR16 *Buffer, 64 IN UINTN BufferSize, 65 IN CONST CHAR16 *Format, 66 ... 67 ) 68 /*++ 69 70 Routine Description: 71 72 Process format and place the results in Buffer for wide chars. 73 74 Arguments: 75 76 Buffer - Wide char buffer to print the results of the parsing of Format into. 77 BufferSize - Maximum number of characters to put into buffer. 78 Format - Format string 79 ... - Vararg list consumed by processing Format. 80 81 Returns: 82 83 Number of characters printed. 84 85 --*/ 86 ; 87 88 #endif 89