14 const char* formatString,
17 va_start(args, formatString);
26 const char* formatString,
31 if (formatString ==
nullptr) {
35 else if (maximumSize > std::numeric_limits<size_t>::max()) {
42 const int scannedFields = vsscanf(source, formatString, args);
43 if (scannedFields < 0) {
46 count =
static_cast<FwSizeType>(scannedFields);
An error was returned from an underlying call.
PlatformSizeType FwSizeType
FwSizeType overflowed the range of size_t.
ScanStatus stringScan(FwSizeType &count, const char *source, FwSizeType maximumSize, const char *formatString,...)
scan a c-string
ScanStatus
status of string scan calls
Format provided invalid format string.
The source string was not null-terminated within the maximum size.
FwSizeType string_length(const CHAR *source, FwSizeType buffer_size)
get the length of the source string