Home | History | Annotate | Download | only in UefiLib

Lines Matching defs:String

2   This module provide help function for displaying unicode string.

252 Computes the display length of a Null-terminated Unicode String.
255 Unicode string specified by String. If String is NULL then 0 is returned. If
256 any of the widths of the Unicode characters in String can not be determined,
257 then 0 is returned. The display width of String can be computed by summing the
258 display widths of each Unicode character in String. Unicode characters that
260 have a width of 2. If String is not aligned on a 16-bit boundary, then ASSERT().
262 @param String A pointer to a Null-terminated Unicode string.
264 @return The display length of the Null-terminated Unicode string specified by String.
270 IN CONST CHAR16 *String
276 if (String == NULL) {
281 while (*String != 0) {
282 Width = GetGlyphWidth (*String);
288 String++;
295 Count the storage space of a Unicode string.
297 This function handles the Unicode string with NARROW_CHAR
303 @param String The input string to be counted.
304 @param LimitLen Whether need to limit the string length.
306 @param Offset The max index of the string can be show out.
308 @return Storage space for the input string.
313 IN CHAR16 *String,
323 if (String == NULL) {
335 for (;(String[Index] != NARROW_CHAR) && (String[Index] != WIDE_CHAR) && (String[Index] != 0); Index++) {
346 if (String[Index] == 0) {
359 if (String[Index] == NARROW_CHAR) {
372 } while (String[Index] != 0);
413 CHAR16 *String;
426 while ((String = VA_ARG (Args, CHAR16 *)) != NULL) {
427 MaxLength = MAX (MaxLength, UefiLibGetStringWidth (String, FALSE, 0, NULL) / 2);
499 while ((String = VA_ARG (Args, CHAR16 *)) != NULL && NumberOfLines > 0) {
506 Length = UefiLibGetStringWidth (String, FALSE, 0, NULL) / 2;
512 ConOut->OutputString (ConOut, String);
517 UefiLibGetStringWidth (String, TRUE, MaxLength, &Length);
520 StrnCpyS (TmpString, Length + 1, String, Length - 3);