| 118 | } |
| 119 | |
| 120 | bool CPhraseCollection::FormatString(char *buffer, |
| 121 | size_t maxlength, |
| 122 | const char *format, |
| 123 | void **params, |
| 124 | unsigned int numparams, |
| 125 | size_t *pOutLength, |
| 126 | const char **pFailPhrase) |
| 127 | { |
| 128 | unsigned int arg; |
| 129 | |
| 130 | arg = 0; |
| 131 | if (!gnprintf(buffer, maxlength, format, this, params, numparams, arg, pOutLength, pFailPhrase)) |
| 132 | { |
| 133 | return false; |
| 134 | } |
| 135 | |
| 136 | if (arg != numparams) |
| 137 | { |
| 138 | if (pFailPhrase != NULL) |
| 139 | { |
| 140 | *pFailPhrase = NULL; |
| 141 | } |
| 142 | return false; |
| 143 | } |
| 144 | |
| 145 | return true; |
| 146 | } |
nothing calls this directly
no test coverage detected