1
0
mirror of https://github.com/google/cpu_features.git synced 2025-07-01 13:21:13 +02:00

Add separator to CpuFeatures_StringView_HasWord (#174)

This commit is contained in:
Guillaume Chatelet
2021-10-18 12:52:14 +02:00
committed by GitHub
parent 628c50e92d
commit f70dc46cd5
8 changed files with 65 additions and 58 deletions

View File

@ -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.