Returns the number of args in arg_array which were passed explicitly to Substitute().
| 18 | // Returns the number of args in arg_array which were passed explicitly |
| 19 | // to Substitute(). |
| 20 | static int CountSubstituteArgs(const SubstituteArg* const* args_array) { |
| 21 | int count = 0; |
| 22 | while (args_array[count] != &SubstituteArg::kNoArg) { |
| 23 | ++count; |
| 24 | } |
| 25 | return count; |
| 26 | } |
| 27 | |
| 28 | namespace internal { |
| 29 | int SubstitutedSize(StringPiece format, |