Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: compiled/Utils.h

Issue 29595633: Issue 5870 - Implement the new ElemHideEmulation filter type (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Last comment addressed. Created Feb. 13, 2018, 4:22 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: compiled/Utils.h
===================================================================
--- a/compiled/Utils.h
+++ b/compiled/Utils.h
@@ -19,11 +19,18 @@
#include <string>
#include "base.h"
#include "String.h"
ABP_NS_BEGIN
+// the length of a null terminated character sequence (string)
+template<typename T, size_t N>
+constexpr size_t str_length_of(T (&)[N])
+{
+ return N - 1;
+}
+
std::wstring StdWStringFromString(const String& str);
ABP_NS_END

Powered by Google App Engine
This is Rietveld