============================================================================= Tokenizer Interface =============================================================================
| 174 | // Tokenizer Interface |
| 175 | //============================================================================= |
| 176 | _Use_decl_annotations_ |
| 177 | SIZE_T |
| 178 | StrSplitStringByDelimiter( |
| 179 | CHAR Delimiter, |
| 180 | const std::string& Input, |
| 181 | std::vector<std::string>& Output |
| 182 | ) |
| 183 | { |
| 184 | std::string Token = {}; |
| 185 | std::stringstream Stream(Input); |
| 186 | |
| 187 | // |
| 188 | // Zero out parameters. |
| 189 | // |
| 190 | Output.clear(); |
| 191 | |
| 192 | while (std::getline(Stream, Token, Delimiter)) |
| 193 | { |
| 194 | Output.emplace_back(Token); |
| 195 | } |
| 196 | |
| 197 | return Output.size(); |
| 198 | } |
| 199 | |
| 200 | |
| 201 | _Use_decl_annotations_ |
no outgoing calls
no test coverage detected