Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/google/cpu_features.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2021-10-18 13:52:14 +0300
committerGitHub <noreply@github.com>2021-10-18 13:52:14 +0300
commitf70dc46cd56afbeb66976d47f3439cbd739e82cb (patch)
tree41792386e5e0b45131c045f55fda12b5cfc8638f /include
parent628c50e92d7b2223a3159fb53dbc49835233a84a (diff)
Add separator to CpuFeatures_StringView_HasWord (#174)
Diffstat (limited to 'include')
-rw-r--r--include/internal/string_view.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/internal/string_view.h b/include/internal/string_view.h
index 64fed40..a109d45 100644
--- a/include/internal/string_view.h
+++ b/include/internal/string_view.h
@@ -96,7 +96,8 @@ void CpuFeatures_StringView_CopyString(const StringView src, char* dst,
// Checks if line contains the specified whitespace separated word.
bool CpuFeatures_StringView_HasWord(const StringView line,
- const char* const word);
+ const char* const word,
+ const char separator);
// Get key/value from line. key and value are separated by ": ".
// key and value are cleaned up from leading and trailing whitespaces.