MCPcopy Create free account
hub / github.com/chen3feng/toft / DoFillSpeciationFromArg

Function DoFillSpeciationFromArg

base/string/format/vprint.cpp:31–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29#endif
30
31static int DoFillSpeciationFromArg(int* value,
32 const FormatPrintArg** args, int nargs,
33 int* arg_index)
34{
35 if (*arg_index >= nargs) {
36 LOG(DFATAL) << "Arg out of bound";
37 return -1;
38 }
39 *value = args[*arg_index ]->AsInt();
40 if (*value < -'*') {
41 LOG(ERROR) << "Can't convert arg " << *arg_index << " to int";
42 return -1;
43 }
44 ++*arg_index;
45 return 1;
46}
47
48static inline int FillSpeciationFromArg(int* value,
49 const FormatPrintArg** args, int nargs,

Callers 1

FillSpeciationFromArgFunction · 0.85

Calls 1

AsIntMethod · 0.80

Tested by

no test coverage detected