# Message strings may include certain special character sequences to
# denote that the program must provide parameters to insert into a
# message when the message is printed. These sequences are:
+# %d = an integer
+# %s = an ASCII string
# %S = The letter 'S' or nothing (if a given value is exactly 1)
-# %W = A word (up to 10 characters)
-# %L = A word mapped to lower-case letters
-# %U = A word mapped to upper-case letters
-# %C = A word mapped to lower-case, first letter capitalised
-# %T = Several words of text, ending with a word of -1
-# %1 = A 1-digit number
-# %2 = A 2-digit number
-# ...
-# %9 = A 9-digit number
-# %B = Variable number of blanks
-# %! = The entire message should be suppressed
# %V = substitute program version string
motions: !!omap
size -= len;
}
- // All-lowercase specifier.
- if (msg[i] == 'L' ||
- msg[i] == 'C') {
- packed_to_token(arg, renderp); /* unpack directly to destination */
- int len = strlen(renderp);
- for (int j = 0; j < len; ++j) {
- renderp[j] = tolower(renderp[j]);
- }
- if (msg[i] == 'C') // First char uppercase, rest lowercase.
- renderp[0] = toupper(renderp[0]);
- renderp += len;
- size -= len;
- }
-
previous_arg = arg;
}
}