diff options
author | David Monahan <david.monahan@arm.com> | 2020-04-16 10:01:56 +0100 |
---|---|---|
committer | David Monahan <david.monahan@arm.com> | 2020-04-20 12:20:18 +0100 |
commit | a8837bfcf45136f178a9884b7c6f6449b3e6ed41 (patch) | |
tree | 0fa2c4de3646d27f1029d5ebd2cf966c3005522c /tests/DeepSpeechV1Database.hpp | |
parent | 9b89e0a5e4398672c3b9423b02b3a9257e0ea95f (diff) | |
download | armnn-a8837bfcf45136f178a9884b7c6f6449b3e6ed41.tar.gz |
IVGCVSW-4513 Remove boost/algorithm/string *
* Removed split, classification, trim, string, join, contains
* Added StringUtils.hpp to replace the removed Boost String functionality
Signed-off-by: David Monahan <david.monahan@arm.com>
Change-Id: I8aa938dc3942cb65c512cccb2c069da66aa24668
Diffstat (limited to 'tests/DeepSpeechV1Database.hpp')
-rw-r--r-- | tests/DeepSpeechV1Database.hpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/tests/DeepSpeechV1Database.hpp b/tests/DeepSpeechV1Database.hpp index 81523775db..85654b6beb 100644 --- a/tests/DeepSpeechV1Database.hpp +++ b/tests/DeepSpeechV1Database.hpp @@ -30,17 +30,7 @@ std::vector<T> ParseArrayImpl(std::istream& stream, TParseElementFunc parseEleme std::string line; while (std::getline(stream, line)) { - std::vector<std::string> tokens; - try - { - // Coverity fix: boost::split() may throw an exception of type boost::bad_function_call. - boost::split(tokens, line, boost::algorithm::is_any_of(chars), boost::token_compress_on); - } - catch (const std::exception& e) - { - ARMNN_LOG(error) << "An error occurred when splitting tokens: " << e.what(); - continue; - } + std::vector<std::string> tokens = armnn::stringUtils::StringTokenizer(line, chars); for (const std::string& token : tokens) { if (!token.empty()) // See https://stackoverflow.com/questions/10437406/ |