Use base::Split to replace tokenize() function.
Test: libvintf_test
Test: vintf_object_test
Change-Id: I8a416d8690162c1ee84c02aad01501b6ccb6b43f
diff --git a/AssembleVintf.cpp b/AssembleVintf.cpp
index a624157..4665f68 100644
--- a/AssembleVintf.cpp
+++ b/AssembleVintf.cpp
@@ -25,6 +25,7 @@
#include <android-base/file.h>
#include <android-base/parseint.h>
+#include <android-base/strings.h>
#include <vintf/AssembleVintf.h>
#include <vintf/KernelConfigParser.h>
@@ -633,7 +634,7 @@
}
bool AssembleVintf::addKernel(const std::string& kernelArg) {
- auto tokens = details::tokenize(kernelArg);
+ auto tokens = base::Split(kernelArg, ":");
if (tokens.size() <= 1) {
std::cerr << "Unrecognized --kernel option '" << kernelArg << "'" << std::endl;
return false;