Lines Matching refs:StringView
30 } StringView; typedef
33 static const StringView kEmptyStringView = {NULL, 0};
35 static const StringView kEmptyStringView;
40 static inline StringView view(const char* str, const size_t size) { in view()
41 StringView view; in view()
47 static inline StringView str(const char* str) { return view(str, strlen(str)); } in str()
50 int CpuFeatures_StringView_IndexOfChar(const StringView view, char c);
54 int CpuFeatures_StringView_IndexOf(const StringView view,
55 const StringView sub_view);
58 bool CpuFeatures_StringView_IsEquals(const StringView a, const StringView b);
61 bool CpuFeatures_StringView_StartsWith(const StringView a, const StringView b);
65 StringView CpuFeatures_StringView_PopFront(const StringView str_view,
70 StringView CpuFeatures_StringView_PopBack(const StringView str_view,
75 StringView CpuFeatures_StringView_KeepFront(const StringView str_view,
80 char CpuFeatures_StringView_Front(const StringView view);
84 char CpuFeatures_StringView_Back(const StringView view);
87 StringView CpuFeatures_StringView_TrimWhitespace(StringView view);
91 int CpuFeatures_StringView_ParsePositiveNumber(const StringView view);
94 void CpuFeatures_StringView_CopyString(const StringView src, char* dst,
98 bool CpuFeatures_StringView_HasWord(const StringView line,
103 bool CpuFeatures_StringView_GetAttributeKeyValue(const StringView line,
104 StringView* key,
105 StringView* value);