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:

committed by
GitHub

parent
628c50e92d
commit
f70dc46cd5
@ -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.
|
||||
|
Reference in New Issue
Block a user